summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-03-28 01:04:27 +0200
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit6f8631630b5f6eef26c9fa067f2423c7e9475086 (patch)
treefe1f63a6549e722a1f2ec8722c664c83b60c9859
parent7d39f08627910720574d1faf0c53bb0c52760afe (diff)
xci: Yet another try to find how best to structure stuff
Summary of changes are - flavors directory has been removed and the flavor config files are moved into config and renamed to <flavor>-vars - common files are put under file - files specific to flavors are put under file/<flavor> directories - templates and var files are stored in template and var directories respectively - 3 playbooks are created Change-Id: I8a93e0947ccb02f93a6c8f00da27e0cc6b4dc21e Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
-rwxr-xr-x[-rw-r--r--]xci/config/aio-vars (renamed from xci/flavors/aio)0
-rwxr-xr-x[-rw-r--r--]xci/config/ha-vars (renamed from xci/flavors/ha)0
-rwxr-xr-x[-rw-r--r--]xci/config/mini-vars (renamed from xci/flavors/mini)0
-rwxr-xr-x[-rw-r--r--]xci/config/noha-vars (renamed from xci/flavors/noha)0
-rw-r--r--xci/file/aio/flavor-vars.yml (renamed from xci/file/aio/playbooks/configure-xcihost.yml)0
-rw-r--r--xci/file/aio/inventory (renamed from xci/file/ha/playbooks/inventory)0
-rw-r--r--xci/file/aio/openstack_user_config.yml (renamed from xci/file/ha/configure-targethosts.yml)0
-rw-r--r--xci/file/aio/playbooks/inventory2
-rw-r--r--xci/file/aio/var/ubuntu.yml7
-rw-r--r--xci/file/cinder.yml (renamed from xci/file/ha/playbooks/configure-xcihost.yml)0
-rw-r--r--xci/file/exports (renamed from xci/file/ha/var/ubuntu.yml)0
-rw-r--r--xci/file/ha/flavor-vars.yml (renamed from xci/file/mini/configure-targethosts.yml)0
-rw-r--r--xci/file/ha/inventory (renamed from xci/file/mini/playbooks/inventory)0
-rw-r--r--xci/file/ha/openstack_user_config.yml (renamed from xci/file/mini/playbooks/configure-xcihost.yml)0
-rw-r--r--xci/file/mini/flavor-vars.yml (renamed from xci/file/mini/var/ubuntu.yml)0
-rw-r--r--xci/file/mini/inventory (renamed from xci/file/noha/playbooks/inventory)0
-rw-r--r--xci/file/mini/openstack_user_config.yml (renamed from xci/file/noha/configure-targethosts.yml)0
-rw-r--r--xci/file/modules (renamed from xci/file/noha/playbooks/configure-xcihost.yml)0
-rw-r--r--xci/file/noha/flavor-vars.yml (renamed from xci/file/noha/var/ubuntu.yml)0
-rw-r--r--xci/file/noha/inventory0
-rw-r--r--xci/file/noha/openstack_user_config.yml0
-rw-r--r--xci/file/setup-openstack.yml0
-rw-r--r--xci/file/user_variables.yml0
-rw-r--r--xci/playbooks/configure-localhost.yml0
-rw-r--r--xci/playbooks/inventory0
-rw-r--r--xci/template/compute.interface.j20
-rw-r--r--xci/template/controller.interface.j20
-rw-r--r--xci/template/xci.interface.j20
-rw-r--r--xci/var/ubuntu.yml0
-rwxr-xr-xxci/xci-deploy.sh2
30 files changed, 1 insertions, 10 deletions
diff --git a/xci/flavors/aio b/xci/config/aio-vars
index 48754e50..48754e50 100644..100755
--- a/xci/flavors/aio
+++ b/xci/config/aio-vars
diff --git a/xci/flavors/ha b/xci/config/ha-vars
index 8a045a3d..8a045a3d 100644..100755
--- a/xci/flavors/ha
+++ b/xci/config/ha-vars
diff --git a/xci/flavors/mini b/xci/config/mini-vars
index 44b015d9..44b015d9 100644..100755
--- a/xci/flavors/mini
+++ b/xci/config/mini-vars
diff --git a/xci/flavors/noha b/xci/config/noha-vars
index 7f686e5e..7f686e5e 100644..100755
--- a/xci/flavors/noha
+++ b/xci/config/noha-vars
diff --git a/xci/file/aio/playbooks/configure-xcihost.yml b/xci/file/aio/flavor-vars.yml
index e69de29b..e69de29b 100644
--- a/xci/file/aio/playbooks/configure-xcihost.yml
+++ b/xci/file/aio/flavor-vars.yml
diff --git a/xci/file/ha/playbooks/inventory b/xci/file/aio/inventory
index e69de29b..e69de29b 100644
--- a/xci/file/ha/playbooks/inventory
+++ b/xci/file/aio/inventory
diff --git a/xci/file/ha/configure-targethosts.yml b/xci/file/aio/openstack_user_config.yml
index e69de29b..e69de29b 100644
--- a/xci/file/ha/configure-targethosts.yml
+++ b/xci/file/aio/openstack_user_config.yml
diff --git a/xci/file/aio/playbooks/inventory b/xci/file/aio/playbooks/inventory
deleted file mode 100644
index 9283e516..00000000
--- a/xci/file/aio/playbooks/inventory
+++ /dev/null
@@ -1,2 +0,0 @@
-[xciaio]
-xciaio ansible_ssh_host=192.168.122.2
diff --git a/xci/file/aio/var/ubuntu.yml b/xci/file/aio/var/ubuntu.yml
deleted file mode 100644
index 3a041b1c..00000000
--- a/xci/file/aio/var/ubuntu.yml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-OPENSTACK_OSA_GIT_URL: "{{ lookup('env','OPENSTACK_OSA_GIT_URL') }}"
-OPENSTACK_OSA_PATH: "{{ lookup('env','OPENSTACK_OSA_PATH') }}"
-OPENSTACK_OSA_VERSION: "{{ lookup('env','OPENSTACK_OSA_VERSION') }}"
-OPENSTACK_OSA_ETC_PATH: "{{ lookup('env','OPENSTACK_OSA_ETC_PATH') }}"
-XCI_IP: "{{ lookup('env','XCI_IP') }}"
-multi_host: "False"
diff --git a/xci/file/ha/playbooks/configure-xcihost.yml b/xci/file/cinder.yml
index e69de29b..e69de29b 100644
--- a/xci/file/ha/playbooks/configure-xcihost.yml
+++ b/xci/file/cinder.yml
diff --git a/xci/file/ha/var/ubuntu.yml b/xci/file/exports
index e69de29b..e69de29b 100644
--- a/xci/file/ha/var/ubuntu.yml
+++ b/xci/file/exports
diff --git a/xci/file/mini/configure-targethosts.yml b/xci/file/ha/flavor-vars.yml
index e69de29b..e69de29b 100644
--- a/xci/file/mini/configure-targethosts.yml
+++ b/xci/file/ha/flavor-vars.yml
diff --git a/xci/file/mini/playbooks/inventory b/xci/file/ha/inventory
index e69de29b..e69de29b 100644
--- a/xci/file/mini/playbooks/inventory
+++ b/xci/file/ha/inventory
diff --git a/xci/file/mini/playbooks/configure-xcihost.yml b/xci/file/ha/openstack_user_config.yml
index e69de29b..e69de29b 100644
--- a/xci/file/mini/playbooks/configure-xcihost.yml
+++ b/xci/file/ha/openstack_user_config.yml
diff --git a/xci/file/mini/var/ubuntu.yml b/xci/file/mini/flavor-vars.yml
index e69de29b..e69de29b 100644
--- a/xci/file/mini/var/ubuntu.yml
+++ b/xci/file/mini/flavor-vars.yml
diff --git a/xci/file/noha/playbooks/inventory b/xci/file/mini/inventory
index e69de29b..e69de29b 100644
--- a/xci/file/noha/playbooks/inventory
+++ b/xci/file/mini/inventory
diff --git a/xci/file/noha/configure-targethosts.yml b/xci/file/mini/openstack_user_config.yml
index e69de29b..e69de29b 100644
--- a/xci/file/noha/configure-targethosts.yml
+++ b/xci/file/mini/openstack_user_config.yml
diff --git a/xci/file/noha/playbooks/configure-xcihost.yml b/xci/file/modules
index e69de29b..e69de29b 100644
--- a/xci/file/noha/playbooks/configure-xcihost.yml
+++ b/xci/file/modules
diff --git a/xci/file/noha/var/ubuntu.yml b/xci/file/noha/flavor-vars.yml
index e69de29b..e69de29b 100644
--- a/xci/file/noha/var/ubuntu.yml
+++ b/xci/file/noha/flavor-vars.yml
diff --git a/xci/file/noha/inventory b/xci/file/noha/inventory
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/file/noha/inventory
diff --git a/xci/file/noha/openstack_user_config.yml b/xci/file/noha/openstack_user_config.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/file/noha/openstack_user_config.yml
diff --git a/xci/file/setup-openstack.yml b/xci/file/setup-openstack.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/file/setup-openstack.yml
diff --git a/xci/file/user_variables.yml b/xci/file/user_variables.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/file/user_variables.yml
diff --git a/xci/playbooks/configure-localhost.yml b/xci/playbooks/configure-localhost.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/playbooks/configure-localhost.yml
diff --git a/xci/playbooks/inventory b/xci/playbooks/inventory
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/playbooks/inventory
diff --git a/xci/template/compute.interface.j2 b/xci/template/compute.interface.j2
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/template/compute.interface.j2
diff --git a/xci/template/controller.interface.j2 b/xci/template/controller.interface.j2
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/template/controller.interface.j2
diff --git a/xci/template/xci.interface.j2 b/xci/template/xci.interface.j2
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/template/xci.interface.j2
diff --git a/xci/var/ubuntu.yml b/xci/var/ubuntu.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/xci/var/ubuntu.yml
diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh
index 401c098c..eb1e9d78 100755
--- a/xci/xci-deploy.sh
+++ b/xci/xci-deploy.sh
@@ -20,7 +20,7 @@ source $XCI_PATH/config/pinned-versions
source $XCI_PATH/config/user-vars
# source flavor configuration
-source $XCI_PATH/flavors/$XCI_FLAVOR
+source "$XCI_PATH/flavors/${XCI_FLAVOR}-vars"
# source xci configuration
source $XCI_PATH/config/env-vars