aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/openstack
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-06-20 15:04:04 -0400
committerDR695H <dr695h@att.com>2019-06-20 15:04:04 -0400
commit3bb6cf4b938d3e725860606d3ddaa8eecd872151 (patch)
treee03ccb5b30413d9fc7b3cef8c5ef0827d2e641d2 /robot/assets/templates/openstack
parent3440942ef2c78e1a8eb07c70c1a03b3834beaecf (diff)
replace aai, closeloop, sdc with jinja
Issue-ID: TEST-158 Change-Id: I95a783f26e28512cb4fc98e50931d62001c489c6 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/assets/templates/openstack')
-rw-r--r--robot/assets/templates/openstack/cinder_add_volume.jinja9
-rw-r--r--robot/assets/templates/openstack/heat_add_stack.jinja12
-rw-r--r--robot/assets/templates/openstack/keystone_get_v2_auth.jinja10
-rw-r--r--robot/assets/templates/openstack/keystone_get_v3_auth.jinja26
-rw-r--r--robot/assets/templates/openstack/neutron_add_network.jinja7
-rw-r--r--robot/assets/templates/openstack/neutron_add_subnet.jinja8
-rw-r--r--robot/assets/templates/openstack/nova_add_keypair.jinja6
-rw-r--r--robot/assets/templates/openstack/nova_add_server.jinja17
8 files changed, 95 insertions, 0 deletions
diff --git a/robot/assets/templates/openstack/cinder_add_volume.jinja b/robot/assets/templates/openstack/cinder_add_volume.jinja
new file mode 100644
index 00000000..b3a6c7bc
--- /dev/null
+++ b/robot/assets/templates/openstack/cinder_add_volume.jinja
@@ -0,0 +1,9 @@
+{
+ "volume": {
+ "display_name": "{{name}}",
+ "display_description": "{{description}}",
+ "size": {{size}},
+ "volume_type": "{{type}}",
+ "availability_zone": "{{availability_zone}}"
+ }
+} \ No newline at end of file
diff --git a/robot/assets/templates/openstack/heat_add_stack.jinja b/robot/assets/templates/openstack/heat_add_stack.jinja
new file mode 100644
index 00000000..2ee4bddf
--- /dev/null
+++ b/robot/assets/templates/openstack/heat_add_stack.jinja
@@ -0,0 +1,12 @@
+{
+ "files": {},
+ "disable_rollback": true,
+ "stack_name": "{{stack_name}}",
+ "parameters":
+ {{parameters}}
+ ,
+ "template":
+ {{template}}
+ ,
+ "timeout_mins": 60
+} \ No newline at end of file
diff --git a/robot/assets/templates/openstack/keystone_get_v2_auth.jinja b/robot/assets/templates/openstack/keystone_get_v2_auth.jinja
new file mode 100644
index 00000000..efe6f0d9
--- /dev/null
+++ b/robot/assets/templates/openstack/keystone_get_v2_auth.jinja
@@ -0,0 +1,10 @@
+{
+ "auth": {
+ "tenantId" : "{{tenantId}}",
+ "passwordCredentials": {
+ "username": "{{username}}",
+ "password": "{{password}}"
+ }
+ }
+}
+
diff --git a/robot/assets/templates/openstack/keystone_get_v3_auth.jinja b/robot/assets/templates/openstack/keystone_get_v3_auth.jinja
new file mode 100644
index 00000000..8a3287d5
--- /dev/null
+++ b/robot/assets/templates/openstack/keystone_get_v3_auth.jinja
@@ -0,0 +1,26 @@
+{
+ "auth": {
+ "identity": {
+ "methods": [
+ "password"
+ ],
+ "password": {
+ "user": {
+ "name": "{{username}",
+ "domain": {
+ "id": "{{domain_id}}"
+ },
+ "password": "{{password}}"
+ }
+ }
+
+ },
+ "scope": {
+ "project": {
+ "name": "{{project_name}}",
+ "domain": { "id": "{{domain_id}}" }
+ }
+ }
+ }
+}
+
diff --git a/robot/assets/templates/openstack/neutron_add_network.jinja b/robot/assets/templates/openstack/neutron_add_network.jinja
new file mode 100644
index 00000000..91834185
--- /dev/null
+++ b/robot/assets/templates/openstack/neutron_add_network.jinja
@@ -0,0 +1,7 @@
+{
+ "network":
+ {
+ "name": "{{name}}",
+ "admin_state_up": false
+ }
+} \ No newline at end of file
diff --git a/robot/assets/templates/openstack/neutron_add_subnet.jinja b/robot/assets/templates/openstack/neutron_add_subnet.jinja
new file mode 100644
index 00000000..e0c2f830
--- /dev/null
+++ b/robot/assets/templates/openstack/neutron_add_subnet.jinja
@@ -0,0 +1,8 @@
+{
+ "subnet": {
+ "network_id": "{{network_id}}",
+ "ip_version": 4,
+ "name":"{{subnet_name}}",
+ "cidr": "{{cidr}}"
+ }
+} \ No newline at end of file
diff --git a/robot/assets/templates/openstack/nova_add_keypair.jinja b/robot/assets/templates/openstack/nova_add_keypair.jinja
new file mode 100644
index 00000000..77912ddb
--- /dev/null
+++ b/robot/assets/templates/openstack/nova_add_keypair.jinja
@@ -0,0 +1,6 @@
+{
+ "keypair": {
+ "name": "{{name}}",
+ "public_key": "{{publickey}}"
+ }
+} \ No newline at end of file
diff --git a/robot/assets/templates/openstack/nova_add_server.jinja b/robot/assets/templates/openstack/nova_add_server.jinja
new file mode 100644
index 00000000..e02cbec3
--- /dev/null
+++ b/robot/assets/templates/openstack/nova_add_server.jinja
@@ -0,0 +1,17 @@
+{
+ "server": {
+ "name": "{{name}}",
+ "imageRef": "{{imageRef}}",
+ "flavorRef": "{{flavorRef}}",
+ "config_drive": true,
+ "OS-DCF:diskConfig": "MANUAL",
+ "metadata": {
+ "{{name}}": "Server for attaching VVG"
+ },
+ "networks": [
+ {
+ "uuid": "{{public_net_id}}"
+ }
+ ]
+ }
+} \ No newline at end of file