Skip to content

Instantly share code, notes, and snippets.

@evrardjp
Created April 21, 2018 08:34
Show Gist options
  • Save evrardjp/de4e6f2370e61a04c900b51140cac7f3 to your computer and use it in GitHub Desktop.
Save evrardjp/de4e6f2370e61a04c900b51140cac7f3 to your computer and use it in GitHub Desktop.
cloud init
apt_mirror: http://mirror.rackspace.com/ubuntu/
package_upgrade: true
packages:
- git-core
runcmd:
- export ANSIBLE_FORCE_COLOR=true
- export PYTHONUNBUFFERED=1
- export REPO=https://github.com/openstack/openstack-ansible
- export BRANCH=stable/mitaka
- git clone -b ${BRANCH} ${REPO} /opt/openstack-ansible
- cd /opt/openstack-ansible && sudo scripts/bootstrap-ansible.sh
- cd /opt/openstack-ansible && sudo scripts/bootstrap-aio.sh
- cd /opt/openstack-ansible && sudo scripts/run-playbooks.sh
output: { all: '| tee -a /var/log/cloud-init-output.log' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment