X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fopenstack_observer%2Fsteps%2Fsync_controller_networks.yaml;fp=planetstack%2Fopenstack_observer%2Fsteps%2Fsync_controller_networks.yaml;h=4f2daf4cec296423878c40590de98f8b3ea1d28b;hb=864a796edde373cfda4904983edca9894ae29752;hp=0000000000000000000000000000000000000000;hpb=730b6cc8f82904489ca35064580f4b0276796c19;p=plstackapi.git 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 %}