售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Learn Ansible
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Next Steps with Ansible
Integrating with third-party services
Slack
Generating a token
The Ansible playbook
Running the playbook
Other services
Campfire
Cisco Webex Teams (Cisco Spark)
CA Flowdock
Hipchat
Mattermost
Say
ServiceNow
Syslog
Twilio
Summary of third-party services
The Ansible playbook debugger
Debugging the task
Summary of the Ansible debugger
Real-world examples
The chat example
Automated deployment
Summary
Further reading
Assessments
Chapter 2, Installing and Running Ansible
Chapter 3, The Ansible Commands
Chapter 4, Deploying a LAMP Stack
Chapter 5, Deploying WordPress
Chapter 6, Targeting Multiple Distributions
Chapter 7, The Core Network Modules
Chapter 8, Moving to the Cloud
Chapter 9, Building Out a Cloud Network
Chapter 10, Highly Available Cloud Deployments
Chapter 11, Building Out a VMware Deployment
Chapter 12, Ansible Windows Modules
Chapter 13, Hardening Your Servers Using Ansible and OpenSCAP
Chapter 14, Deploying WPScan and OWASP ZAP
Chapter 15, Introducing Ansible Tower and Ansible AWX
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜