From: Sapan Bhatia Date: Fri, 19 Dec 2014 18:24:56 +0000 (-0500) Subject: Added ansible recipes for images, networks X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fd04f0208c873d447d87d5dfea698974061100aa;hp=9661ade5c1383fb4caba7b1dcc8b6f4f81d908ca;p=plstackapi.git Added ansible recipes for images, networks --- 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 %}