Download e-book for iPad: Ansible for DevOps: Server and configuration management for by Jeff Geerling

By Jeff Geerling

ISBN-10: 098639341X

ISBN-13: 9780986393419

Covers Ansible 2.0!

Ansible is a straightforward, yet robust, server and configuration administration device (with a couple of different tips up its sleeve). This ebook is helping these accustomed to the command line and uncomplicated shell scripting begin utilizing Ansible to provision and deal with at any place from one to millions of servers.

The publication starts with basics, like fitting Ansible, developing a uncomplicated stock dossier, and uncomplicated thoughts, then courses you thru Ansible's many makes use of, together with ad-hoc instructions, simple and complicated playbooks, software deployments, multiple-provider server provisioning, or even Docker orchestration! every little thing is defined with pertinent real-world examples, usually utilizing Vagrant-managed digital machines.

Show description

Read or Download Ansible for DevOps: Server and configuration management for humans PDF

Similar linux books

Read e-book online Ubuntu Linux secrets PDF

Сами авторы, Брайан Керниган и Роб Пайк, пишут в предисловии: "Наша задача - показать философию программирования под UNIX. Поскольку эта философия базируется на отношениях между программами, мы должны большую часть этой книги посвятить обсуждению индивидуальных инструментов, но в контексте их совместного использования, в том числе и для построения новых программ.

Get SUSE Linux toolbox : 1000+ commands for openSUSE and SUSE PDF

During this convenient, compact advisor, you’ll discover a ton of strong SUSE Linux instructions once you learn how to use SUSE Linux because the specialists do: from the command line. test greater than 1,000 instructions to discover and get software program, display screen procedure well-being and defense, and entry community assets. Then, observe the talents you examine from this ebook to take advantage of and administer computers and servers operating openSUSE and SUSE Linux company or the other Linux distribution.

Get Linux Operations and Administration PDF

LINUX OPERATIONS AND management introduces readers to Linux operations and process management via a unified deploy, utilizing digital machines. this article is more beneficial than those who take a qualified technique since it removes confusion from operating with differing configurations, whereas permitting clients to check interoperability among Linux and home windows.

New PDF release: Tarsnap Mastery: Online Backups for the Truly Paranoid

Tarsnap, the safe on-line backup provider for Unix-like structures, raised the bar for on-line backups. It’s reasonably cheap. It’s trustworthy. and also you don’t have to belief the Tarsnap service--they can’t entry your backups no matter if they desired to. With Tarsnap Mastery you’ll learn how to: * set up and deal with Tarsnap on Linux, Unix, home windows, and OS X * absolutely take advantage of gains like encryption and deduplication * create and recuperate files * customise backups to exactly your necessities * passphrase safeguard keys * create and deal with special-purpose keys * instantly again up and rotate data * comprehend and get to the bottom of functionality concerns * speedy restoration entire platforms Ditch the tape room.

Additional resources for Ansible for DevOps: Server and configuration management for humans

Example text

The fourth block adds variables to the multi group that will be applied to all servers within multi and all its children. We’ll dive deeper into variables, group definitions, group hierarchy, and other Inventory file topics later. For now, we just want Ansible to know about our servers, so we can start managing them quickly. Save the updated inventory file, and then check to see if Vagrant has finished building the three VMs. Once Vagrant has finished, we can start managing the servers with Ansible.

Try to reserve the --limit option for running commands on single servers. If you often find yourself running commands on the same set of servers using --limit, consider instead adding them to a group in your inventory file. That way you can enter ansible [my-new-group-name] [command], and save yourself a few keystrokes. Manage users and groups One of the most common uses for Ansible’s ad-hoc commands in my day-to-day usage is user and group management. I don’t know how many times I’ve had to reread the man pages or do a Google search just to remember which arguments I need to create a user with or without a home folder, add the user to certain groups, etc.

This will work fine with our Vagrant VMs, but if you’re running commands against a server where your user account requires a sudo password, you should also pass in -K (alias for --ask-sudo-pass), so you can enter your sudo password when Ansible needs it. Now we’ll make sure the NTP daemon is started and set to run on boot. We could use two separate commands, service ntpd start and chkconfig ntpd on, but we’ll use Ansible’s service module instead. Chapter 3 - Ad-Hoc Commands 28 $ ansible multi -s -m service -a "name=ntpd state=started \ enabled=yes" All three servers should show a success message like: "changed": true, "enabled": true, "name": "ntpd", "state": "started" If you run the exact same command again, everything will be the same, but Ansible will report that nothing has changed, so the "changed" value becomes false.

Download PDF sample

Ansible for DevOps: Server and configuration management for humans by Jeff Geerling

by Joseph

Rated 4.71 of 5 – based on 37 votes