aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/openstack
diff options
context:
space:
mode:
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