From 937751d6a4e9b0d49f38a2d2a01e3c347ef36575 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 29 May 2015 16:12:25 +0100 Subject: WIP: Add an Ansible script that can deploy everything Change-Id: Ic9e6bd0cb7d25676ecb4fd442f32445c2848801b --- initial-deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 initial-deploy.yml diff --git a/initial-deploy.yml b/initial-deploy.yml new file mode 100644 index 00000000..ef60726e --- /dev/null +++ b/initial-deploy.yml @@ -0,0 +1,29 @@ +# An Ansible script to deploy all the Baserock infrastructure from +# scratch / from a backup. +# +# No, really ... +# +# This requires the unreleased Ansible 2.0.0, because it needs os_server, +# os_volume and os_volume_attach modules. + +--- + +- hosts: localhost + vars_files: + - config/codethink-nebula-samthursfield.yml + tasks: + - name: database + nova_compute: + name: database-mariadb + state: present + auth_url: {{ env.OS_AUTH_URL }} + flavor_ram: 1G + image_name: {{ FEDORA_IMAGE_NAME }} + key_name: {{ env.OS_KEY_NAME }} + login_password: {{ env.OS_PASSWORD }} + login_tenant_name: {{ env.OS_TENANT_NAME }} + login_username: {{ env.OS_USERNAME }} + nics: {{ NETWORK_ID }} + security_groups: default, database-mysql + user_data: ./baserock-ops-team.cloud-config + wait: yes -- cgit v1.2.1