Learn ansible automate cloud, security, and network infrastructure using ansible 2.x
Run Ansible playbooks to launch complex multi-tier applications hosted in public clouds About This Book Build your learning curve using Ansible Automate cloud, network, and security infrastructures with ease Gain hands-on exposure on Ansible Who This Book Is For Learn Ansible is perfect for system a...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, London ; Mumbai :
Packt
2018.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630397706719 |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Table of Contents
- Preface
- Chapter 1: An Introduction to Ansible
- Ansible's story
- The term
- The software
- Ansible versus other tools
- Declarative versus imperative
- Configuration versus orchestration
- Infrastructure as code
- Summary
- Further reading
- Chapter 2: Installing and Running Ansible
- Technical requirements
- Installing Ansible
- Installing on macOS
- Homebrew
- The pip method
- Pros and cons
- Installing on Linux
- Installing on Windows 10 Professional
- Launching a virtual machine
- An introduction to playbooks
- Host inventories
- Playbooks
- Summary
- Questions
- Further reading
- Chapter 3: The Ansible Commands
- Technical requirements
- Inbuilt commands
- Ansible
- The ansible-config command
- The ansible-console command
- The ansible-doc command
- The ansible-inventory command
- Ansible Vault
- Third-party commands
- The ansible-inventory-grapher command
- Ansible Run Analysis
- Summary
- Questions
- Further reading
- Chapter 4: Deploying a LAMP Stack
- Technical requirements
- Playbook structure
- LAMP stack
- Common
- Updating packages
- Installing common packages
- Configuring NTP
- Creating a user
- Running the role
- Apache
- Installing Apache
- Configuring Apache
- Configuring SELinux
- Copying an HTML file
- Running the role
- MariaDB
- Installing MariaDB
- Configuring MariaDB
- Importing a sample database
- Running the role
- PHP
- Installing PHP
- The phpinfo file
- Adminer
- Running the role
- Overriding variables
- Summary
- Questions
- Further reading
- Chapter 5: Deploying WordPress
- Technical requirements
- Preinstallation tasks
- The stack-install command
- Enabling the repositories
- Installing the packages
- The stack-config role.
- WordPress system user
- NGINX configuration
- PHP and PHP-FPM configuration
- Starting NGINX and PHP-FPM
- MariaDB Configuration
- SELinux configuration
- WordPress installation tasks
- WordPress CLI installation
- Creating the WordPress database
- Downloading, configuring, and installing WordPress
- WordPress plugins and theme installation
- Running the WordPress playbook
- Summary
- Questions
- Further reading
- Chapter 6: Targeting Multiple Distributions
- Technical requirements
- Launching multiple Vagrant boxes
- Multi-operating system considerations
- Adapting the roles
- Operating system family
- The stack-install role
- The stack-config role
- The wordpress role
- Running the playbook
- Summary
- Questions
- Further reading
- Chapter 7: The Core Network Modules
- Technical requirements
- Manufacturer and device support
- The modules
- A10 Networks
- Cisco Application Centric Infrastructure (ACI)
- Cisco AireOS
- Apstra Operating System (AOS)
- Aruba Mobility Controller
- Cisco Adaptive Security Appliance (ASA)
- Avi Networks
- Big Switch Networks
- Citrix Netscaler
- Huawei CloudEngine (CE)
- Arista CloudVision (CV)
- Lenovo CNOS
- Cumulus Linux (CL)
- Dell operating system 10 (DellOS10)
- Ubiquiti EdgeOS
- Lenovo Enterprise Networking Operating System (ENOS)
- Arista EOS
- F5 BIG-IP
- FortiGate FortiManager
- FortiGate FortiOS
- illumos
- Cisco IOS and IOS XR
- Brocade IronWare
- Juniper Junos
- Nokia NetAct
- Pluribus Networks Netvisor OS
- Cisco Network Services Orchestrator (NSO)
- Nokia Nuage Networks Virtualized Services Platform (VSP)
- Cisco NX-OS (NXOS)
- Mellanox ONYX
- Ordnance
- Open vSwitch (OVS)
- Palo Alto Networks PAN-OS
- Radware
- Nokia Networks Service Router Operating System (SROS)
- VyOS
- System
- Interacting with a network device.
- Launching the network device
- The VyOS role
- Running the playbook
- Summary
- Questions
- Further reading
- Chapter 8: Moving to the Cloud
- Technical requirements
- Interacting with DigitalOcean
- Generating a personal access token
- Installing dopy
- Launching a Droplet
- Running the playbook
- WordPress on DigitalOcean
- The host inventory
- Variables
- The playbook
- The droplet role
- Running the playbook
- Summary
- Questions
- Further reading
- Chapter 9: Building Out a Cloud Network
- Technical requirements
- An introduction to AWS
- Amazon Virtual Private Cloud overview
- Creating an access key and secret
- The VPC playbook
- The VPC role
- The subnets role
- The internet gateway role
- The security group role
- The ELB role
- Summary
- Questions
- Further reading
- Chapter 10: Highly Available Cloud Deployments
- Technical requirements
- Planning the deployment
- Costing the deployment
- WordPress considerations and high availability
- The playbook
- Amazon VPC
- Amazon RDS
- Amazon EFS
- Testing the playbook
- Terminating resources
- EC2 instances
- Instance discovery
- New deployment
- Existing deployment
- Stack
- Default variables
- Deploy
- WordPress
- AMI
- Autoscaling
- Running the playbook
- Terminating all the resources
- Summary
- Questions
- Further reading
- Chapter 11: Building Out a VMware Deployment
- Technical requirements
- An introduction to VMware
- The VMware modules
- Requirements
- vCloud Air
- The vca_fw module
- The vca_nat module
- The vca_vapp module
- VMware vSphere
- The vmware_cluster module
- The vmware_datacenter module
- The vmware_vm_facts module
- The vmware_vm_shell module
- The vmware_vm_vm_drs_rule module
- The vmware_vm_vss_dvs_migrate module
- The vsphere_copy module
- The vsphere_guest module
- VMware vCentre.
- The vcenter_folder module
- The vcenter_license module
- The vmware_guest module
- The vmware_guest_facts module
- The vmware_guest_file_operation module
- The vmware_guest_find module
- The vmware_guest_powerstate module
- The vmware_guest_snapshot module
- The vmware_guest_tools_wait module
- VMware ESXi
- The vmware_dns_config module
- The vmware_host_dns_facts module
- The vmware_host module
- The vmware_host_facts module
- The vmware_host_acceptance module
- The vmware_host_config_manager module
- The vmware_host_datastore module
- The vmware_host_firewall_manager module
- The vmware_host_firewall_facts module
- The vmware_host_lockdown module
- The vmware_host_ntp module
- The vmware_host_package_facts module
- The vmware_host_service_manager module
- The vmware_host_service_facts module
- The vmware_datastore_facts module
- The vmware_host_vmnic_facts module
- The vmware_local_role_manager module
- The vmware_local_user_manager module
- The vmware_cfg_backup module
- The vmware_vmkernel module
- The vmware_vmkernel_facts module
- The vmware_target_canonical_facts module
- The vmware_vmotion module
- The vmware_vsan_cluster module
- The vmware_vswitch module
- The vmware_drs_rule_facts module
- The vmware_dvswitch module
- The vmware_dvs_host module
- The vmware_dvs_portgroup module
- The vmware_maintenancemode module
- The vmware_portgroup module
- The vmware_resource_pool module
- An example playbook
- Summary
- Questions
- Further reading
- Chapter 12: Ansible Windows Modules
- Technical requirements
- Up-and-running
- Vagrantfile
- Ansible preparation
- The ping module
- The setup module
- Installing a web server
- IIS role
- ASP.NET role
- Interacting with AWS Windows instances
- AWS role
- User role
- Chocolatey role
- Information role
- Running the playbook
- Summary.
- Questions
- Further reading
- Chapter 13: Hardening Your Servers Using Ansible and OpenSCAP
- Technical requirements
- OpenSCAP
- Preparing the host
- The playbook
- Install role
- Scan role
- Running the initial scan
- Generating the remediation Ansible playbook
- Generating the remediation bash script
- Running a standalone scan
- Fixing the remaining failed checks
- Destroying the Vagrant box
- Summary
- Questions
- Further reading
- Chapter 14: Deploying WPScan and OWASP ZAP
- Preparing the boxes
- The WordPress playbook
- The scan playbook
- The Docker role
- Testing the playbook
- The WPScan role
- Running a WPScan
- The OWASP ZAP role
- Running OWASP ZAP
- Summary
- Questions
- Further reading
- Chapter 15: Introducing Ansible Tower and Ansible AWX
- Technical requirements
- Web-based Ansible
- Ansible Tower
- Updating the inventory file
- Running the playbook
- Requesting a license
- The hello world demo project
- Launching the AWS playbook
- Adding a new project
- Adding credentials
- Adding an inventory
- Adding the templates
- Running the playbook
- Removing the cluster
- Tower summary
- Ansible AWX
- Preparing the playbook
- The docker role
- The awx role
- Running the playbook
- Using Ansible AWX
- AWX summary
- Summary
- Questions
- Further reading
- Chapter 16: Ansible Galaxy
- Technical requirements
- Introduction to Ansible Galaxy
- Jenkins playbook
- Publishing a role
- Creating the docker role
- Variables
- Tasks
- Metadata
- README
- Committing the code and publishing
- Testing the role
- Ansible Galaxy commands
- Logging in
- Importing
- Searching
- Info
- Summary
- Questions
- Further reading
- Chapter 17: Next Steps with Ansible
- Integrating with third-party services
- Slack
- Generating a token
- The Ansible playbook
- Running the playbook.
- Other services.