Ansible: Up and Running. Automating Configuration Management and Deployment the Easy Way. 2nd Edition

- Autorzy:
- Lorin Hochstein, Rene Moser


- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 430
- Dostępne formaty:
-
ePubMobi
Opis książki: Ansible: Up and Running. Automating Configuration Management and Deployment the Easy Way. 2nd Edition
Among the many configuration management tools available, Ansible has some distinct advantages—it’s minimal in nature, you don’t need to install anything on your nodes, and it has an easy learning curve. With this updated second edition, you’ll learn how to be productive with this tool quickly, whether you’re a developer deploying code to production or a system administrator looking for a better automation solution.
Authors Lorin Hochstein and René Moser show you how to write playbooks (Ansible’s configuration management scripts), manage remote servers, and explore the tool’s real power: built-in declarative modules. You’ll discover that Ansible has the functionality you need—and the simplicity you desire.
- Manage Windows machines, and automate network device configuration
- Manage your fleet from your web browser with Ansible Tower
- Understand how Ansible differs from other configuration management systems
- Use the YAML file format to write your own playbooks
- Work with a complete example to deploy a non-trivial application
- Deploy applications to Amazon EC2 and other cloud platforms
- Create Docker images and deploy Docker containers with Ansible
This book is best read start to finish, with later chapters building on earlier ones. Because it’s written in a tutorial style, you can follow along on your own machine. Most examples focus on web applications.
Wybrane bestsellery
-
Among the many configuration management tools available, Ansible has some distinct advantages: It's minimal in nature. You don't need to install agents on your nodes. And there's an easy learning curve. With this updated third edition, you'll quickly learn how to be productive with Ansible whethe...(0,00 zł najniższa cena z 30 dni)
203.15 zł
239.00 zł(-15%) -
Zarządzanie konfiguracją oprogramowania w systemach sieciowych jest niebanalnym zadaniem. Nawet zwykła aktualizacja czy wdrożenie nowego oprogramowania mogą się skończyć katastrofą, zwłaszcza w przypadku serwerów pracujących pod kontrolą systemów Linux czy Unix. Konieczność pilnowania ustawień w ...
Ansible w praktyce. Automatyzacja konfiguracji i proste instalowanie systemów. Wydanie II Ansible w praktyce. Automatyzacja konfiguracji i proste instalowanie systemów. Wydanie II
(0,00 zł najniższa cena z 30 dni)41.30 zł
59.00 zł(-30%) -
In 2016, Google’s Site Reliability Engineering book ignited an industry discussion on what it means to run production services today—and why reliability considerations are fundamental to service design. Now, Google engineers who worked on that bestseller introduce The Site Reliability...
The Site Reliability Workbook. Practical Ways to Implement SRE The Site Reliability Workbook. Practical Ways to Implement SRE
(0,00 zł najniższa cena z 30 dni)169.15 zł
199.00 zł(-15%) -
Discover advanced virtualization techniques and strategies to deliver centralized desktop and application services Key Features Leverage advanced desktop virtualization techniques and strategies to transform your organization Build better virtualized services for your users with VMware Horizon...
-
Effectively implement features and components for any computing environment
-
Discover how to build your own Intelligent Internet of Things projects and bring a new degree of interconnectivity to your world.About This BookBuild intelligent and unusual IoT projects in just 7 days,Create home automation, smart home, and robotic projects and allow your devices to do smart wor...
-
Over 60 recipes to install, configure, and manage your IIS 10.0About This BookProvide a secure, easy-to-manage extensible platform for hosting your websitesLeverage IIS 10.0 in order to deploy web site in secondsIntegrate Windows and Nano Server 2016 and automate it with PowerShellRecipes to Mana...
-
Learn to leverage the power of PowerCLI to automate your VMware vSphere environment with easeAbout This BookThis is first book on the market that will enlighten you on the latest version of PowerCLI and how to implement itEffectively manage virtual machines, networks, and reports with the latest ...
-
Imagine a set of simple principles that could help you to understand how parts combine to become a whole, and how each part sees the whole from its own perspective. If such principles were any good, it shouldn’t matter whether we’re talking about humans on a team, birds in a flock, co...
Thinking in Promises. Designing Systems for Cooperation Thinking in Promises. Designing Systems for Cooperation
(0,00 zł najniższa cena z 30 dni)135.15 zł
159.00 zł(-15%) -
Develop microservice-based enterprise applications with expert guidance to avoid failures and technological debt with the help of real-world examples
Kup polskie wydanie:
Ansible w praktyce. Automatyzacja konfiguracji i proste instalowanie systemów. Wydanie II
- Autor:
- Lorin Hochstein, Rene Moser
41,30 zł
59,00 zł
(35.40 zł najniższa cena z 30 dni)
Ebooka przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video zobaczysz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP4 (pliki spakowane w ZIP)
Szczegóły książki
- ISBN Ebooka:
- 978-14-919-7975-4, 9781491979754
- Data wydania ebooka:
-
2017-07-20
Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@helion.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 3.3MB
- Rozmiar pliku Mobi:
- 3.3MB
- Kategorie:
Systemy operacyjne
Spis treści książki
- Foreword
- Preface to the Second Edition
- A Note About Language
- Acknowledgments
- From Lorin
- From René
- Preface to the First Edition
- Why I Wrote This Book
- Who Should Read This Book
- Navigating This Book
- Conventions Used in This Book
- Online Resources
- Safari Books Online
- How to Contact Us
- 1. Introduction
- A Note About Versions
- Ansible: What Is It Good For?
- How Ansible Works
- Whats So Great About Ansible?
- Easy-to-Read Syntax
- Nothing to Install on the Remote Hosts
- Push Based
- Ansible Scales Down
- Built-in Modules
- Very Thin Layer of Abstraction
- Is Ansible Too Simple?
- What Do I Need to Know?
- What Isnt Covered
- Installing Ansible
- Setting Up a Server for Testing
- Using Vagrant to Set Up a Test Server
- Telling Ansible About Your Test Server
- Simplifying with the ansible.cfg File
- Moving Forward
- 2. Playbooks: A Beginning
- Some Preliminaries
- A Very Simple Playbook
- Specifying an Nginx Config File
- Creating a Custom Home Page
- Creating a Webservers Group
- Running the Playbook
- Playbooks Are YAML
- Start of File
- Comments
- Strings
- Booleans
- Lists
- Dictionaries
- Line Folding
- Anatomy of a Playbook
- Plays
- Tasks
- Modules
- Putting It All Together
- Did Anything Change? Tracking Host State
- Getting Fancier: TLS Support
- Generating a TLS Certificate
- Variables
- Generating the Nginx Configuration Template
- Handlers
- A few things to keep in mind about handlers
- Running the Playbook
- 3. Inventory: Describing Your Servers
- The Inventory File
- Preliminaries: Multiple Vagrant Machines
- Behavioral Inventory Parameters
- ansible_connection
- ansible_shell_type
- ansible_python_interpreter
- ansible_*_interpreter
- Changing Behavioral Parameter Defaults
- Groups and Groups and Groups
- Example: Deploying a Django App
- Aliases and Ports
- Groups of Groups
- Numbered Hosts (Pets versus Cattle)
- Hosts and Group Variables: Inside the Inventory
- Host and Group Variables: In Their Own Files
- Dynamic Inventory
- The Interface for a Dynamic Inventory Script
- Showing host details
- Listing groups
- The Interface for a Dynamic Inventory Script
- Writing a Dynamic Inventory Script
- Preexisting Inventory Scripts
- Breaking the Inventory into Multiple Files
- Adding Entries at Runtime with add_host and group_by
- add_host
- group_by
- 4. Variables and Facts
- Defining Variables in Playbooks
- Viewing the Values of Variables
- Registering Variables
- Facts
- Viewing All Facts Associated with a Server
- Viewing a Subset of Facts
- Any Module Can Return Facts
- Local Facts
- Using set_fact to Define a New Variable
- Built-in Variables
- hostvars
- inventory_hostname
- Groups
- Setting Variables on the Command Line
- Precedence
- 5. Introducing Mezzanine: Our Test Application
- Why Deploying to Production Is Complicated
- PostgreSQL: The Database
- Gunicorn: The Application Server
- Nginx: The Web Server
- Supervisor: The Process Manager
- Why Deploying to Production Is Complicated
- 6. Deploying Mezzanine with Ansible
- Listing Tasks in a Playbook
- Organization of Deployed Files
- Variables and Secret Variables
- Using Iteration (with_items) to Install Multiple Packages
- Adding the Become Clause to a Task
- Updating the Apt Cache
- Checking Out the Project by Using Git
- Installing Mezzanine and Other Packages into a virtualenv
- Complex Arguments in Tasks: A Brief Digression
- Configuring the Database
- Generating the local_settings.py File from a Template
- Running django-manage Commands
- Running Custom Python Scripts in the Context of the Application
- Setting Service Configuration Files
- Enabling the Nginx Configuration
- Installing TLS Certificates
- Installing Twitter Cron Job
- The Full Playbook
- Running the Playbook Against a Vagrant Machine
- Troubleshooting
- Cannot Check Out Git Repository
- Cannot Reach 192.168.33.10.xip.io
- Bad Request (400)
- Deploying Mezzanine on Multiple Machines
- 7. Roles: Scaling Up Your Playbooks
- Basic Structure of a Role
- Example: Database and Mezzanine Roles
- Using Roles in Your Playbooks
- Pre-Tasks and Post-Tasks
- A database Role for Deploying the Database
- A mezzanine Role for Deploying Mezzanine
- Creating Role Files and Directories with ansible-galaxy
- Dependent Roles
- Ansible Galaxy
- Web Interface
- Command-Line Interface
- Installing a role
- Listing installed roles
- Uninstalling a role
- Contributing Your Own Role
- 8. Complex Playbooks
- Dealing with Badly Behaved Commands: changed_when and failed_when
- Filters
- The Default Filter
- Filters for Registered Variables
- Filters That Apply to File Paths
- Writing Your Own Filter
- Lookups
- file
- pipe
- env
- password
- template
- csvfile
- dnstxt
- redis_kv
- etcd
- Writing Your Own Lookup Plugin
- More Complicated Loops
- with_lines
- with_fileglob
- with_dict
- Looping Constructs as Lookup Plugins
- Loop Controls
- Setting the Variable Name
- Labeling the Output
- Includes
- Dynamic Includes
- Role Includes
- Blocks
- Error Handling with Blocks
- Encrypting Sensitive Data with Vault
- 9. Customizing Hosts, Runs, and Handlers
- Patterns for Specifying Hosts
- Limiting Which Hosts Run
- Running a Task on the Control Machine
- Running a Task on a Machine Other Than the Host
- Running on One Host at a Time
- Running on a Batch of Hosts at a Time
- Running Only Once
- Running Strategies
- Linear
- Free
- Advanced Handlers
- Handlers in Pre and Post Tasks
- Flush Handlers
- Handlers Listen
- Handlers listen: The SSL case
- Manually Gathering Facts
- Retrieving the IP Address from the Host
- 10. Callback Plugins
- Stdout Plugins
- actionable
- debug
- dense
- json
- minimal
- oneline
- selective
- skippy
- Stdout Plugins
- Other Plugins
- foreman
- hipchat
- jabber
- junit
- log_plays
- logentries
- logstash
- osx_say
- profile_tasks
- slack
- timer
- 11. Making Ansible Go Even Faster
- SSH Multiplexing and ControlPersist
- Manually Enabling SSH Multiplexing
- SSH Multiplexing Options in Ansible
- SSH Multiplexing and ControlPersist
- Pipelining
- Enabling Pipelining
- Configuring Hosts for Pipelining
- Fact Caching
- JSON File Fact-Caching Backend
- Redis Fact-Caching Backend
- Memcached Fact-Caching Backend
- Parallelism
- Concurrent Tasks with Async
- 12. Custom Modules
- Example: Checking That We Can Reach a Remote Server
- Using the Script Module Instead of Writing Your Own
- can_reach as a Module
- Where to Put Custom Modules
- How Ansible Invokes Modules
- Generate a Standalone Python Script with the Arguments (Python Only)
- Copy the Module to the Host
- Create an Arguments File on the Host (Non-Python Only)
- Invoke the Module
- Expected Outputs
- Output Variables that Ansible Expects
- changed
- failed
- msg
- Output Variables that Ansible Expects
- Implementing Modules in Python
- Parsing Arguments
- Accessing Parameters
- Importing the AnsibleModule Helper Class
- Argument Options
- required
- default
- choices
- aliases
- type
- AnsibleModule Initializer Parameters
- argument_spec
- no_log
- check_invalid_arguments
- mutually_exclusive
- required_one_of
- add_file_common_args
- bypass_checks
- Returning Success or Failure
- Invoking External Commands
- Check Mode (Dry Run)
- Documenting Your Module
- Debugging Your Module
- Implementing the Module in Bash
- Specifying an Alternative Location for Bash
- Example Modules
- 13. Vagrant
- Convenient Vagrant Configuration Options
- Port Forwarding and Private IP Addresses
- Enabling Agent Forwarding
- Convenient Vagrant Configuration Options
- The Ansible Provisioner
- When the Provisioner Runs
- Inventory Generated by Vagrant
- Provisioning in Parallel
- Specifying Groups
- Ansible Local Provisioner
- 14. Amazon EC2
- Terminology
- Instance
- Amazon Machine Image
- Tags
- Terminology
- Specifying Credentials
- Environment Variables
- Configuration Files
- Prerequisite: Boto Python Library
- Dynamic Inventory
- Inventory Caching
- Other Configuration Options
- Autogenerated Groups
- Defining Dynamic Groups with Tags
- Applying Tags to Existing Resources
- Nicer Group Names
- EC2 Virtual Private Cloud and EC2 Classic
- Configuring ansible.cfg for Use with ec2
- Launching New Instances
- EC2 Key Pairs
- Creating a New Key
- Uploading an Existing Key
- Security Groups
- Permitted IP Addresses
- Security Group Ports
- Getting the Latest AMI
- Adding a New Instance to a Group
- Waiting for the Server to Come Up
- Creating Instances the Idempotent Way
- Putting It All Together
- Specifying a Virtual Private Cloud
- Dynamic Inventory and VPC
- Building AMIs
- With the ec2_ami Module
- With Packer
- Ansible Remote Provisioner
- Ansible Local Provisioner
- Other Modules
- 15. Docker
- The Case for Pairing Docker with Ansible
- Docker Application Life Cycle
- Example Application: Ghost
- Connecting to the Docker Daemon
- Running a Container on Our Local Machine
- Building an Image from a Dockerfile
- Orchestrating Multiple Containers on Our Local Machine
- Pushing Our Image to the Docker Registry
- Querying Local Images
- Deploying the Dockerized Application
- Backend: Postgres
- Frontend
- Frontend: Ghost
- Frontend: Nginx
- Cleaning Out Containers
- Connecting Directly to Containers
- Ansible Container
- The Conductor
- Creating Docker Images
- Creating the initial files
- Creating the roles
- Configuring container.yml
- Building the containers
- Troubleshooting builds
- Running Locally
- Publishing Images to Registries
- Authenticating
- Multiple registries
- Deploying Containers to Production
- 16. Debugging Ansible Playbooks
- Humane Error Messages
- Debugging SSH Issues
- The Debug Module
- Playbook Debugger
- The Assert Module
- Checking Your Playbook Before Execution
- Syntax Check
- List Hosts
- List Tasks
- Check Mode
- Diff (Show File Changes)
- Limiting Which Tasks Run
- Step
- Start-at-Task
- Tags
- 17. Managing Windows Hosts
- Connection to Windows
- PowerShell
- Windows Modules
- Our First Playbook
- Updating Windows
- Adding Local Users
- Conclusion
- 18. Ansible for Network Devices
- Status of Network Modules
- List of Network Vendors Supported
- Preparing Our Network Device
- Enable SSH Authentication
- How the Modules Work
- Our First Playbook
- Inventory and Variables for Network Modules
- Local Connection
- Host Connection
- Authentication Variables
- Save the Config
- Use Configs from a File
- Templates, Templates, Templates
- Gathering Facts
- Conclusion
- 19. Ansible Tower: Ansible for the Enterprise
- Subscription Models
- Try Ansible Tower
- Subscription Models
- What Ansible Tower Solves
- Access Control
- Projects
- Inventory Management
- Run Jobs by Job Templates
- RESTful API
- Ansible Tower CLI
- Installation
- Create a User
- Launch a Job
- Onward
- A. SSH
- Native SSH
- SSH Agent
- Starting Up ssh-agent
- macOS
- Linux
- Agent Forwarding
- Sudo and Agent Forwarding
- Host Keys
- B. Using IAM Roles for EC2 Credentials
- AWS Management Console
- Command-Line
- Glossary
- Bibliography
- Index
O'Reilly Media - inne książki
-
FinOps brings financial accountability to the variable spend model of cloud. Used by the majority of global enterprises, this management practice has grown from a fringe activity to the de facto discipline managing cloud spend. In this book, authors J.R. Storment and Mike Fuller outline the proce...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Edge AI is transforming the way computers interact with the real world, allowing IoT devices to make decisions using the 99% of sensor data that was previously discarded due to cost, bandwidth, or power limitations. With techniques like embedded machine learning, developers can capture human intu...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Why is it difficult for so many companies to get digital identity right? If you're still wrestling with even simple identity problems like modern website authentication, this practical book has the answers you need. Author Phil Windley provides conceptual frameworks to help you make sense of all ...(0,00 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
Python was recently ranked as today's most popular programming language on the TIOBE index, thanks to its broad applicability to design and prototyping to testing, deployment, and maintenance. With this updated fourth edition, you'll learn how to get the most out of Python, whether you're a profe...(0,00 zł najniższa cena z 30 dni)
305.15 zł
359.00 zł(-15%) -
With the accelerating speed of business and the increasing dependence on technology, companies today are significantly changing the way they build in-house business solutions. Many now use low-code and no code technologies to help them deal with specific issues, but that's just the beginning. Wit...
Building Solutions with the Microsoft Power Platform Building Solutions with the Microsoft Power Platform
(0,00 zł najniższa cena z 30 dni)262.65 zł
309.00 zł(-15%) -
Companies are scrambling to integrate AI into their systems and operations. But to build truly successful solutions, you need a firm grasp of the underlying mathematics. This accessible guide walks you through the math necessary to thrive in the AI field such as focusing on real-world application...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
DevOps engineers, developers, and security engineers have ever-changing roles to play in today's cloud native world. In order to build secure and resilient applications, you have to be equipped with security knowledge. Enter security as code.In this book, authors BK Sarthak Das and Virginia Chu d...(0,00 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
With the increasing use of AI in high-stakes domains such as medicine, law, and defense, organizations spend a lot of time and money to make ML models trustworthy. Many books on the subject offer deep dives into theories and concepts. This guide provides a practical starting point to help develop...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Why are so many companies adopting GitOps for their DevOps and cloud native strategy? This reliable framework is quickly becoming the standard method for deploying apps to Kubernetes. With this practical, developer-oriented book, DevOps engineers, developers, IT architects, and SREs will learn th...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Learn the essentials of working with Flutter and Dart to build full stack applications that meet the needs of a cloud-driven world. Together, the Flutter open source UI software development kit and the Dart programming language for client development provide a unified solution to building applica...(0,00 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł(-15%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
W przypadku usługi "Druk na żądanie" termin dostarczenia przesyłki może obejmować także czas potrzebny na dodruk (do 10 dni roboczych)
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.


Oceny i opinie klientów: Ansible: Up and Running. Automating Configuration Management and Deployment the Easy Way. 2nd Edition Lorin Hochstein, Rene Moser (0)
Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.