LEADER 04877nam 2200565 450 001 9910798073703321 005 20170822145923.0 010 $a1-78439-561-7 035 $a(CKB)3710000000459841 035 $a(EBL)2130075 035 $a(MiAaPQ)EBC2130075 035 $a(CaSebORM)9781784398293 035 $a(PPN)228038316 035 $a(EXLCZ)993710000000459841 100 $a20150820h20152015 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $2rdacontent 182 $2rdamedia 183 $2rdacarrier 200 10$aAnsible playbook essentials $edesign automation blueprints using Ansible's playbooks to orchestrate and manage your multitier infrastructure /$fGourav Shah 205 $a1st edition 210 1$aBirmingham, England :$cPackt Publishing,$d2015. 210 4$dİ2015 215 $a1 online resource (168 p.) 225 1 $aCommunity Experience Distilled 300 $aDescription based upon print version of record. 311 $a1-78439-829-2 320 $aIncludes bibliographical references and index. 327 $aCover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Setting Up the Learning Environment; Chapter 1: Blueprinting Your Infrastructure; Getting introduced to Ansible; Plays; YAML - the playbook language; Our first playbook; Creating a host inventory; Patterns; Tasks; Modules; Running the playbook; Review questions; Summary; Chapter 2: Going Modular with Ansible Roles; Understanding roles; Naming roles; The directory layout for roles; Creating a site-wide playbook, nesting, and using include statements 327 $aCreating the www playbookThe default and custom role paths; Parameterizing the roles; Creating a base role; Refactoring our code - creating a base role; Creating an Nginx role; Adding role dependencies; Managing files for Nginx; Automating events and actions with handlers; Adding pre-tasks and post-tasks to playbooks; Running playbooks with roles; Review questions; Summary; Chapter 3: Separating Code and Data - Variables, Facts, and Templates; Static content explosion; Separating code and data; Jinja2 templates; The template formation; Facts and variables; Automatic variables - facts 327 $aUser-defined variablesWhere to define a variable; How to define a variable; Templating the Nginx configurations; Adding another layer - the MySQL role; Creating the scaffolding for the roles with Ansible-Galaxy; Adding metadata to the role; Using variables in tasks and handlers; Creating variables; Creating tasks; Using variables in playbooks; Applying a MySQL role to the DB servers; Variable precedence; The best practices for variable usage; Review questions; Summary; Chapter 4: Bringing In Your Code - Custom Commands and Scripts; The command modules; Using the raw module 327 $aUsing the command moduleUsing the shell module; Using the script module; Deploying a WordPress application - a hands-on approach; Installing WordPress; Controlling the idempotence of command modules; The registered variables; Extracting WordPress with a shell module; Configuring WordPress; Review questions; Summary; Chapter 5: Controlling Execution Flow - Conditionals; The conditional control structure; The when statements; Fact-based selection; Refactoring the MySQL role; Multilevel variable dictionaries; Merging hashes; Configuring the MySQL server selectively 327 $aConditional control structure in Jinja2 templatesUpdating the MySQL template; Running a task only once; Executing roles conditionally; Review questions; Summary; Chapter 6: Iterative Control Structures - Loops; The omnipotent with statement; Configuring WordPress requisites; The PHP5-FPM role; Defining an array; Looping an array; Creating MySQL databases and user accounts; Creating a hash; Nested hashes; Iterating a hash; Creating Nginx virtual hosts; Defining the PHP site information; Review questions; Summary; Chapter 7: Node Discovery and Clustering; Node discovery with magic variables 327 $aCreating the load balancer role 330 $aIf you are a systems or automation engineer who intends to automate common infrastructure tasks, deploy applications, and use orchestration to configure systems in a coordinated manner, then this book is for you. Some understanding of the Linux/Unix command-line interface is expected. 410 0$aCommunity experience distilled. 606 $aSoftware configuration management 606 $aOpen source software 615 0$aSoftware configuration management. 615 0$aOpen source software. 676 $a006.76 700 $aShah$b Gourav$01534140 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910798073703321 996 $aAnsible playbook essentials$93781436 997 $aUNINA