PRE-REQUISITS
1) 4 VMS RUNNING ON AS BASE MACHINE WITH MINIMUM CONFIGURATION AS BELOW,
- 512MB RAM (MIN)
- 20GB OS DISK (THIN PROVISIONED)
- OS – “CENTOS” WITH INTERNET BASED REPOSITORY USAGE OR “REDHAT” WITH INHOUSE REPOSITORY SERVER USAGE)
- VALID CONNECTION TO OS REPOSITORIES FOR ALL 4 VMS
- VMS SHOULD BE IN SAME NETWORK OR REACHABLE TO EACH OTHER
2) VIRTUAL BOX ON END STUDENTS LAPTOP IS ALSO PREFERABLE IF ITS MINIMUM 8GB WITH ALL ABOVER POINTS WITH CENTOS AS OS OPTION ONLY
INTRODUCTION
ORIENTATION TO THE TRAINING ENVIRONMENT AND FLOW
SECTION 1 - INTRODUCING ANSIBLE (DAY 01)
WHY ANSIBLE?
- INFRASTRUCTURE AUTOMATION NEEDS
- CONFIGURATION MANAGEMENT NEEDS
ANSIBLE CONCEPTS AND ARCHITECTURE
- CLIENT SERVER ARCHITECTURE (SSH AGENT ONLY)
INDUSTRY EXAMPLES OF ANSIBLE USAGE
- DISCUSS WELL DOCUMENTED EXAMPLES
INSTALLING ANSIBLE
SECTION 2 – GETTING STARTED WITH ANSIBLE (DAY 01)
ANSIBLE INVENTORY
- VARIOUS COMPONENTS OF INVENTORY
- OVERRIDING INVENTORY
- DYNAMIC INVENTORY
ANSIBLE CONFIGURATION FILES
- VARIOUS CONFIGURATION OPTIONS
- OVERRIDING CONFIGURATION OPTIONS
ANSIBLE AD HOC COMMANDS
- COMMANDS USED
CONFIGURING CONNECTIONS IN AD HOC COMMANDS
- COMMANDS USED
MANAGING DYNAMIC INVENTORIES
- NEED OF DYNAMIC INVENTORIES
- EXAMPLES USING AD HOC COMMANDS
PERFORMING TASKS WITH MODULES IN AD HOC COMMANDS
- EXAMPLES
SECTION 3 - IMPLEMENTING PLAYBOOKS (DAY 02)
GETTING STARTED WITH PLAYBOOKS
- SAMPLE AD HOC COMMANS
- WRITING EQUIVALENT PLAYBOOK
- UNDERSTANDING PLAYBOOK STRUCTURE (YAML FORMAT)
- EXECUTING PLAYBOOK (SYNTAX VERIFICATION/DEBUG/DRY RUN)
ATTRIBUTES IN PLAYBOOK
USING ANSIBLE DOCUMENTATION
UNDERSTANDING YAML IN DETAIL
BEST PRACTICES FOR WRITING YOUR PLAYBOOKS
SECTION 4 – VARIABLES IN PLAYBOOKS (DAY 03)
NAMING CONVENTIONS VARIABLES
TYPE OF VARIABLES
- SYSTEM VARIABLES (FACTS)
- HOST VARIABLES
- HOSTGROUP VARIABLES
- REGISTERED VARIABLES
- DYNAMIC VARIABLES
- INCLUDED VARIABLES
- CUSTOM VARIABLES
WORKING WITH FACTS
- WHEN TO USE FACTS
- FACTS FILTERS
SECTION 5 – ANSIBLE CONTROL MECHANISMS (DAY 04)
TASKS IN LOOPS
TASKS WITH CONDITION/S
HANDLERS (TRIGGERS)
TAGS (LABEL)
WORKING WITH ERRORS
SECTION 6 - JINJA (DAY 04)
JINJA TEMPLATES
KNOWN ISSUES
SECTION 7 – ANSIBLE ROLES (DAY 05)
WHY ROLES NEEDED ?
STRUCTURE OF A ROLE
ROLE DEPENDENCIES
TYPE OF ROLES ANSIBLE GALAXY
- CUSTOM ROLES (NEW)
- ROLES FROM ANSIBLE GALAXY
SECTION 8 - ANSIBLE VAULT (DAY 05)
WHY VAULT NEEDED ?
COMMANDS USED
USING VAULT WITH AD HOC COMMANDS
USING VAULT WITH PLAYBOOKS
SECTION 9 – BEST PRACTICES (DAY 05)
DELEGATION
PARALLELISM
USGIN POWER PREVILEGE
INVENTORY FILE PLACEMENT
PASSWORD AND KEYS
TROUBLESHOOTING
ANNEXURE 01 – FREQUENTLY USED MODULES
PING
SHELL
FILE
COPY
YUM
SERVICE
USER
PARTED
FILESYSTEM
MOUNT
STAT
TEMPLATE
WAIT_FOR
FIREWALLD
UNARCHIVE
SETUP
FAIL
HAPROXY
AWS_S3
EC2
EC2_AMI
AZURE
VMWARE
ANNEXURE 02 - REFERENCES
REFERENCE LINKS
No comments:
Post a Comment