July 2017
Intermediate to advanced
402 pages
9h 38m
English
While there are different strategies to integrate Ansible to CloudFormation, in our situation there is an obvious path. We are going to take advantage of the UserData field, and do the initialization of Ansible through the ansible-pull command.
We are going to start off the troposphere script we created earlier in this chapter. We will duplicate it and call the new script ansiblebase-cf-template.py.
Go to your template repository and duplicate the previous template as follows:
$ cd EffectiveDevOpsTemplates $ cp helloworld-cf-template.py ansiblebase-cf-template.py
Then, open the ansiblebase-cf-template.py script with your editor.
To keep the script readable, we will first define several variables.
Read now
Unlock full access