-
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_path
is the directory the inventory files lives in -
inventory_file
is the name of the inventory file itself. So in this example, the full location is:/etc/ansible/local
-
inventory_file_content
the content of the file
-
playbooks_path_source
is the path to all Ansible playbooks on the Aminator instance. This path is outside of thechroot
environment. These will be copied toplaybooks_path_dest
during the provisioning stage. The default path is currently:/usr/local/netflixoss-ansible/playbooks
to match with this -
playbooks_path_dest
is the location to store playbooks on the AMI. This is inside thechroot
environment. The default value is:/var/lib/ansible/playbooks
. -
keep_playbooks
determines whether the playbooks copied to the AMI are kept before snapshotting the volume. By default (which isTrue
) they are kept inplaybooks_path_dest