Manually copied over files that didn't get merged over from ansible branch
authorSapan Bhatia <sapanbhatia@nat-oitwireless-inside-vapornet100-c-32154.Princeton.EDU>
Wed, 19 Nov 2014 20:26:11 +0000 (15:26 -0500)
committerSapan Bhatia <sapanbhatia@nat-oitwireless-inside-vapornet100-c-32154.Princeton.EDU>
Wed, 19 Nov 2014 20:26:11 +0000 (15:26 -0500)
planetstack/openstack_observer/steps/sliver.yaml [new file with mode: 0644]
planetstack/openstack_observer/steps/sync_site_deployments.yaml [new file with mode: 0644]
planetstack/openstack_observer/steps/sync_slice_deployments.yaml [new file with mode: 0644]
planetstack/openstack_observer/steps/sync_slivers.yaml [new file with mode: 0644]
planetstack/openstack_observer/steps/sync_user_deployments.yaml [new file with mode: 0644]

diff --git a/planetstack/openstack_observer/steps/sliver.yaml b/planetstack/openstack_observer/steps/sliver.yaml
new file mode 100644 (file)
index 0000000..e630415
--- /dev/null
@@ -0,0 +1,17 @@
+---
+- hosts: 127.0.0.1
+  connection: local
+  tasks:
+  - nova_compute:
+       state: present
+       auth_url: http://172.31.38.128:5000/v2.0/
+       login_username: admin
+       login_password: 6a789bf69dd647e2
+       login_tenant_name: admin
+       name: gloopy
+       image_id: 3ee851df-b35a-41c5-8551-f681e7209095
+       key_name: boo
+       wait_for: 200
+       flavor_id: 3
+       nics:
+         - net-id: d1de537b-80dc-4c1b-aa5f-4a197b33b5f6
diff --git a/planetstack/openstack_observer/steps/sync_site_deployments.yaml b/planetstack/openstack_observer/steps/sync_site_deployments.yaml
new file mode 100644 (file)
index 0000000..4129802
--- /dev/null
@@ -0,0 +1,5 @@
+---
+- hosts: 127.0.0.1
+  connection: local
+  tasks:
+  - keystone_user: endpoint={{ endpoint }} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} tenant={{ tenant }} tenant_description="{{ tenant_description }}"
diff --git a/planetstack/openstack_observer/steps/sync_slice_deployments.yaml b/planetstack/openstack_observer/steps/sync_slice_deployments.yaml
new file mode 100644 (file)
index 0000000..de1caf4
--- /dev/null
@@ -0,0 +1,8 @@
+---
+- hosts: 127.0.0.1
+  connection: local
+  tasks:
+  - keystone_user: endpoint={{ endpoint }} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} tenant={{ tenant }} tenant_description="{{ tenant_description }}"
+  {% for role in roles %}
+  - keystone_user: endpoint={{ endpoint}} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} user="{{ name }}" role={{ role }} tenant={{ tenant }}
+  {% endfor %}
diff --git a/planetstack/openstack_observer/steps/sync_slivers.yaml b/planetstack/openstack_observer/steps/sync_slivers.yaml
new file mode 100644 (file)
index 0000000..5f45d5c
--- /dev/null
@@ -0,0 +1,36 @@
+---
+- hosts: 127.0.0.1
+  connection: local
+  tasks:
+  - nova_keypair:
+       state: present
+       auth_url: {{ endpoint }}
+       login_username: {{ admin_user }}
+       login_password: {{ admin_password }}
+       login_tenant_name: {{ admin_tenant }}
+       name: {{ key_name }}
+       public_key: "{{ key.public_key}}"
+       
+  - nova_compute:
+       state: present
+       auth_url: {{ endpoint }}
+       login_username: {{ admin_user }}
+       login_password: {{ admin_password }}
+       login_tenant_name: {{ admin_tenant }}
+       name: {{ name }}
+       image_id: {{ image_id }}
+       key_name: {{ key_name }}
+       wait_for: 200
+       flavor_id: {{ flavor_id }}
+       user_data: "{{ user_data }}"
+       nics:
+       {% for net in nics %}  
+         - net-id: {{ net }}
+       {% endfor %}
+
+       {% if meta %}
+       meta:
+       {% for k,v in meta.items() %}  
+         {{ k }} : "{{ v }}"
+       {% endfor %}
+       {% endif %}
diff --git a/planetstack/openstack_observer/steps/sync_user_deployments.yaml b/planetstack/openstack_observer/steps/sync_user_deployments.yaml
new file mode 100644 (file)
index 0000000..95cdba3
--- /dev/null
@@ -0,0 +1,16 @@
+---
+- hosts: 127.0.0.1
+  connection: local
+  tasks:
+  - keystone_user: 
+       endpoint={{ endpoint }} 
+       user="{{ name }}" 
+       email={{ email }} 
+       password={{ password }} 
+       login_user={{ admin_user }} 
+       login_password={{ admin_password }} 
+       login_tenant_name={{ admin_tenant }} 
+       tenant={{ tenant }}
+  {% for role in roles %}
+  - keystone_user: endpoint={{ endpoint}} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} user="{{ name }}" role={{ role }} tenant={{ tenant }}
+  {% endfor %}