-
Notifications
You must be signed in to change notification settings - Fork 7
Configuration
There is a YAML file you can customize for the Ansible Provisioner:
aminator.plugins.provisioner.ansible.yml
When ansible-playbook is run, it uses Local mode since it is running in a chroot environment. This means there isn't much use for an inventory file, but you can still configure it. Here are the defaults:
inventory_file_path: /etc/ansible
inventory_file: local
inventory_file_content: |
127.0.0.1
-
inventory_file_pathis the directory the inventory files lives in -
inventory_fileis the name of the inventory file itself. So in this example, the full location is:/etc/ansible/local -
inventory_file_contentthe content of the file
-
playbooks_path_sourceis the path to all Ansible playbooks on the Aminator instance. This path is outside of thechrootenvironment. These will be copied toplaybooks_path_destduring the provisioning stage. The default path is currently:/usr/local/netflixoss-ansible/playbooksto match with this -
playbooks_path_destis the location to store playbooks on the AMI. This is inside thechrootenvironment. The default value is:/var/lib/ansible/playbooks. -
keep_playbooksdetermines whether the playbooks copied to the AMI are kept before snapshotting the volume. By default (which isTrue) they are kept inplaybooks_path_dest