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

By Jeff Geerling

Covers Ansible 2.0!

Ansible is a straightforward, yet robust, server and configuration administration instrument (with a couple of different methods up its sleeve). This e-book is helping these acquainted with the command line and uncomplicated shell scripting begin utilizing Ansible to provision and deal with anyplace from one to hundreds of thousands of servers.

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

Show description

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

Best linux books

Learning the vi Editor (6th Edition)

For plenty of clients, operating within the Unix atmosphere capability utilizing vi, a full-screen textual content editor on hand on so much Unix platforms. Even those that understand vi usually utilize just a small variety of its gains. The 6th version of studying the vi Editor is an entire advisor to textual content enhancing with vi. Early chapters disguise the fundamentals; later chapters clarify extra complicated enhancing instruments, similar to ex instructions and international seek and alternative, in addition to a brand new characteristic, multiscreen modifying.

A Practical Guide to Ubuntu Linux (4th Edition)

The main entire, Easy-to-Follow consultant to Ubuntu Linux

“As an in-depth consultant to Ubuntu, this ebook does an outstanding task of protecting every little thing from utilizing the team spirit machine to exploring key server configurations. ”

–Elizabeth okay. Joseph, platforms Administrator & Ubuntu neighborhood Member

the number 1 Ubuntu source, absolutely up to date for Ubuntu 14. 04 (Trusty Tahr)–the long-term aid (LTS) unencumber Canonical will aid into 2019
vast new insurance of set up, protection, virtualization, MariaDB, Python Programming, and lots more and plenty extra
up to date JumpStarts assist you manage many advanced servers in mins
countless numbers of updated examples, plus 4 up-to-date indexes convey speedy entry to trustworthy solutions

Mark Sobell’s a realistic advisor to Ubuntu Linux®, Fourth version, is the main thorough and updated connection with fitting, configuring, securing, and dealing with Ubuntu computers and servers.

This variation has been absolutely up-to-date for Ubuntu 14. 04 (Trusty Tahr), a milestone LTS (Long time period help) free up, which Canonical will aid on either pcs and servers into 2019.

Sobell walks you thru each crucial function and procedure, from fitting Ubuntu to operating with the newest Ubuntu team spirit laptop, and from configuring servers and tracking networks to dealing with day by day process management. His exceedingly transparent factors demystify every thing from Apache, Samba, and postfix, to ufw, virtualization, and MariaDB/MySQL database administration. PLUS a brand new bankruptcy on programming in Python, today’s most well liked process automation tool!

Fully up-to-date JumpStart sections quick assist you get advanced servers running–often in mins. You’ll additionally locate up to date assistance on new LPI and CompTIA Linux certification pathways for Linux professionals.

Sobell attracts on his vast Linux wisdom to provide an explanation for either the “hows” and the “whys” of Ubuntu. He’s taught millions of readers and not forgets what it’s prefer to be new to Linux. even if you’re a consumer, administrator, or programmer, you’ll locate every thing you would like here–now, and for years to come.

The world’s so much sensible Ubuntu Linux booklet is now much more useful!

This ebook delivers

thoroughly remodeled install assurance reflecting Ubuntu 14. 04’s greater ubiquity (graphical) and debian-installer (textual) installers
up to date JumpStarts for fast constructing Samba, Apache, postfix, FTP, NFS, CUPS, OpenSSH, DNS, and different advanced servers
remodeled and up to date factors of the ufw, gufw, and iptables firewall instruments
An all-new bankruptcy on developing VMs (virtual machines) in the community and within the cloud
New assurance of the MariaDB open resource plug-in substitute for MySQL
entire networking assurance, together with DNS/BIND, NFS, NIS, FTP, LDAP, and Cacti community tracking
professional insurance of web server configuration and customization, together with apache2 (Web) and postfix (mail)
a brand new bankruptcy protecting cutting-edge protection innovations, together with sudo, cryptography, hash services, SSL certificate, plus a piece on utilizing GPG (GNU privateness defend) to guard files in transit
Deep insurance of crucial management tasks–from coping with clients to CUPS printing, and from configuring LANs and LDAP to construction VMs (virtual machines)
whole directions on protecting platforms modern utilizing apt-get, dpkg, and different instruments
and masses extra . . . together with a revised 500+ time period word list and 4 indexes

Ansible for DevOps: Server and configuration management for humans

Covers Ansible 2. zero!

Ansible is a straightforward, yet robust, server and configuration administration instrument (with a couple of different methods up its sleeve). This publication is helping these conversant in the command line and easy shell scripting commence utilizing Ansible to provision and deal with anyplace from one to hundreds of thousands of servers.

The e-book starts off with basics, like fitting Ansible, establishing a uncomplicated stock dossier, and uncomplicated techniques, then courses you thru Ansible's many makes use of, together with ad-hoc instructions, uncomplicated and complex playbooks, program deployments, multiple-provider server provisioning, or even Docker orchestration! every little thing is defined with pertinent real-world examples, frequently utilizing Vagrant-managed digital machines.

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

Example text

Com | success >>, then the result of your ping. If it didn’t work, run the command again with -vvvv on the end to see verbose output. com and that works, the above Ansible command should work, too. g. com and don’t have to type a password). If you’re still logging into your remote servers with a username and password, or if you need a primer on Linux remote authentication and security best practices, please read Chapter 10 - Server Security and Ansible. If you insist on using passwords, add the --ask-pass (-k) flag to Ansible commands (you may also need to install the sshpass package for this to work).

Chapter 3 - Ad-Hoc Commands 30 Configure the Database servers We configured the application servers using the app group defined in Ansible’s main inventory, and we can configure the database server (currently the only server in the db group) using the similarly-defined db group. Let’s install MariaDB, start it, and configure the server’s firewall to allow access on MariaDB’s default port, 3306. 0/24 -p tcp \ -m tcp --dport 3306 -j ACCEPT" If you try connecting to the database from the app servers (or your host machine) at this point, you won’t be able to connect, since MariaDB still needs to be set up.

You can also run vagrant provision after the VM has been created to explicitly run the provisioner again. It’s this last feature that is most important for us. Ansible is one of many provisioners integrated with Vagrant (others include basic shell scripts, Chef, Docker, Puppet, and Salt). When you call vagrant provision (or vagrant up) the first time, Vagrant passes off the VM to Ansible, and tells Ansible to run a defined Ansible playbook. We’ll get into the details of Ansible playbooks later, but for now, we’re going to edit our Vagrantfile to use Ansible to provision our virtual machine.

Download PDF sample

Rated 4.16 of 5 – based on 37 votes