summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-05-29 16:12:25 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-05-29 16:12:25 +0100
commit937751d6a4e9b0d49f38a2d2a01e3c347ef36575 (patch)
treee66430833118c200f7648627edd662219c83b6e1
parentcde67e82a437c1764fdac6511e1d29d5346d320c (diff)
downloadinfrastructure-sam/ansible-all-the-things.tar.gz
WIP: Add an Ansible script that can deploy everythingsam/ansible-all-the-things
Change-Id: Ic9e6bd0cb7d25676ecb4fd442f32445c2848801b
-rw-r--r--initial-deploy.yml29
1 files changed, 29 insertions, 0 deletions
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