From 864a796edde373cfda4904983edca9894ae29752 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 19 Dec 2014 13:24:56 -0500 Subject: [PATCH] Added ansible recipes for images, networks --- .../steps/sync_controller_images.yaml | 13 ++++++++ .../steps/sync_controller_networks.yaml | 30 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 planetstack/openstack_observer/steps/sync_controller_images.yaml create mode 100644 planetstack/openstack_observer/steps/sync_controller_networks.yaml diff --git a/planetstack/openstack_observer/steps/sync_controller_images.yaml b/planetstack/openstack_observer/steps/sync_controller_images.yaml new file mode 100644 index 0000000..55ad36a --- /dev/null +++ b/planetstack/openstack_observer/steps/sync_controller_images.yaml @@ -0,0 +1,13 @@ +--- +- hosts: 127.0.0.1 + connection: local + tasks: + - glance: + auth_url: {{ endpoint }} + username: {{ admin_user }} + tenant_name: 'admin' + password: {{ admin_password }} + name: {{ name }} + file: {{ filepath }} + format: 'raw' + is_public: true diff --git a/planetstack/openstack_observer/steps/sync_controller_networks.yaml b/planetstack/openstack_observer/steps/sync_controller_networks.yaml new file mode 100644 index 0000000..4f2daf4 --- /dev/null +++ b/planetstack/openstack_observer/steps/sync_controller_networks.yaml @@ -0,0 +1,30 @@ +--- +- hosts: 127.0.0.1 + connection: local + tasks: + - quantum_network: + auth_url: {{ endpoint }} + username: {{ admin_user }} + tenant_name: {{ tenant_name }} + password: {{ admin_password }} + name: {{ name }} + {% if delete %} + state: absent + {% else %} + state: present + {% endif %} + + shared: true + - quantum_subnet: + auth_url: {{ endpoint }} + username: {{ admin_user }} + tenant_name: {{ tenant_name }} + password: {{ admin_password }} + name={{ subnet_name }} + network_name={{ name }} + {% if delete %} + state: absent + {% else %} + state=present + cidr = {{ cidr }} + {% endif %} -- 2.43.0