summaryrefslogtreecommitdiffstats
path: root/controller/config
diff options
context:
space:
mode:
Diffstat (limited to 'controller/config')
-rw-r--r--controller/config/.gitignore2
-rw-r--r--controller/config/config.sh.template36
-rw-r--r--controller/config/hosts.template2
-rw-r--r--controller/config/os/EXAMPLE.sh20
4 files changed, 60 insertions, 0 deletions
diff --git a/controller/config/.gitignore b/controller/config/.gitignore
new file mode 100644
index 0000000..57c4fcb
--- /dev/null
+++ b/controller/config/.gitignore
@@ -0,0 +1,2 @@
+*.sh
+hosts
diff --git a/controller/config/config.sh.template b/controller/config/config.sh.template
new file mode 100644
index 0000000..94cbe22
--- /dev/null
+++ b/controller/config/config.sh.template
@@ -0,0 +1,36 @@
+# OpenStack ID
+# ------------
+#
+# By default, based on DTF_OPENSTACK_ID content the corresponding OpenStack
+# configuration is used. You may have multiple OpenStack instances configured -
+# this option selects one. Based on the OpenStack ID (say 'EXAMPLE'), those
+# configuration-like files are used:
+#
+# * private/os/'EXAMPLE'.yml
+# File having OpenStack credentials in ansible variable file (YAML file
+# with "key: value" lines). See the ./private/os/EXAMPLE.yml for
+# variables you should set up. Keep this file secret.
+#
+# * config/os/'EXAMPLE'.sh
+# This file must contain configuration for specific OpenStack instance.
+# Usually information about available images, flavors, networking, etc.
+# The template file config/os/EXAMPLE.sh may be used when configuring your
+# testing environment.
+
+export DTF_OPENSTACK_ID=dropbear
+
+# Result Database
+# ---------------
+# Directory where the testsuite should keep its (persistent) results. Make sure
+# that this directory is backed up.
+
+export DTF_DATABASE=/var/lib/dtf_results
+
+# Presenter place
+# ---------------
+# For now, only static results are available. DTF_PRESENTER_PLACE must contain
+# rsync-compatible destination (it may be place accessible via ssh+rsync). It
+# is expected that some httpd server is able to read the directory with results
+# and publish them as static directory structure over http://.
+
+export DTF_PRESENTER_PLACE=user@example.org:/var/www/html/my_project/dtf
diff --git a/controller/config/hosts.template b/controller/config/hosts.template
new file mode 100644
index 0000000..6850700
--- /dev/null
+++ b/controller/config/hosts.template
@@ -0,0 +1,2 @@
+[host]
+10.64.27.30
diff --git a/controller/config/os/EXAMPLE.sh b/controller/config/os/EXAMPLE.sh
new file mode 100644
index 0000000..b5ba270
--- /dev/null
+++ b/controller/config/os/EXAMPLE.sh
@@ -0,0 +1,20 @@
+## THIS IS EXAMPLE OPENSTACK DTF CONFIGURATION ##
+
+# variable declarations, should be C&Ped
+declare -A os_flavor_ids os_image_ids
+export os_flavor_ids=[]
+export os_image_ids=[]
+
+# connection info about particular OpenStack instance
+
+# which ssh keys should be uploaded to created VMs
+export os_keypair="keypair-id"
+# group of firewall rules to be set on VMs
+export os_security_group=test_group
+# the name of network connection as is presented by ansible
+export os_network_dev=network_name
+
+# per-distribution dictionary with images/flavors
+os_flavor_ids["fedora20"]="2"
+os_image_ids["fedora20"]="0461eef2-5921-4c01-95a6-6edf96d41b89"
+