xci: Yet another try to find how best to structure stuff 27/32027/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 27 Mar 2017 23:04:27 +0000 (01:04 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 28 Mar 2017 10:47:10 +0000 (12:47 +0200)
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>
31 files changed:
.gitignore
prototypes/xci/config/aio-vars [moved from prototypes/xci/flavors/aio with 100% similarity, mode: 0755]
prototypes/xci/config/ha-vars [moved from prototypes/xci/flavors/ha with 100% similarity, mode: 0755]
prototypes/xci/config/mini-vars [moved from prototypes/xci/flavors/mini with 100% similarity, mode: 0755]
prototypes/xci/config/noha-vars [moved from prototypes/xci/flavors/noha with 100% similarity, mode: 0755]
prototypes/xci/file/aio/flavor-vars.yml [moved from prototypes/xci/file/aio/playbooks/configure-xcihost.yml with 100% similarity]
prototypes/xci/file/aio/inventory [moved from prototypes/xci/file/ha/playbooks/inventory with 100% similarity]
prototypes/xci/file/aio/openstack_user_config.yml [moved from prototypes/xci/file/ha/configure-targethosts.yml with 100% similarity]
prototypes/xci/file/aio/playbooks/inventory [deleted file]
prototypes/xci/file/aio/var/ubuntu.yml [deleted file]
prototypes/xci/file/cinder.yml [moved from prototypes/xci/file/ha/playbooks/configure-xcihost.yml with 100% similarity]
prototypes/xci/file/exports [moved from prototypes/xci/file/ha/var/ubuntu.yml with 100% similarity]
prototypes/xci/file/ha/flavor-vars.yml [moved from prototypes/xci/file/mini/configure-targethosts.yml with 100% similarity]
prototypes/xci/file/ha/inventory [moved from prototypes/xci/file/mini/playbooks/inventory with 100% similarity]
prototypes/xci/file/ha/openstack_user_config.yml [moved from prototypes/xci/file/mini/playbooks/configure-xcihost.yml with 100% similarity]
prototypes/xci/file/mini/flavor-vars.yml [moved from prototypes/xci/file/mini/var/ubuntu.yml with 100% similarity]
prototypes/xci/file/mini/inventory [moved from prototypes/xci/file/noha/playbooks/inventory with 100% similarity]
prototypes/xci/file/mini/openstack_user_config.yml [moved from prototypes/xci/file/noha/configure-targethosts.yml with 100% similarity]
prototypes/xci/file/modules [moved from prototypes/xci/file/noha/playbooks/configure-xcihost.yml with 100% similarity]
prototypes/xci/file/noha/flavor-vars.yml [moved from prototypes/xci/file/noha/var/ubuntu.yml with 100% similarity]
prototypes/xci/file/noha/inventory [new file with mode: 0644]
prototypes/xci/file/noha/openstack_user_config.yml [new file with mode: 0644]
prototypes/xci/file/setup-openstack.yml [new file with mode: 0644]
prototypes/xci/file/user_variables.yml [new file with mode: 0644]
prototypes/xci/playbooks/configure-localhost.yml [new file with mode: 0644]
prototypes/xci/playbooks/inventory [new file with mode: 0644]
prototypes/xci/template/compute.interface.j2 [new file with mode: 0644]
prototypes/xci/template/controller.interface.j2 [new file with mode: 0644]
prototypes/xci/template/xci.interface.j2 [new file with mode: 0644]
prototypes/xci/var/ubuntu.yml [new file with mode: 0644]
prototypes/xci/xci-deploy.sh

index 0aa7b8c..431e521 100644 (file)
@@ -18,7 +18,6 @@ lib/
 lib64/
 parts/
 sdist/
-var/
 wheels/
 *.egg-info/
 .installed.cfg
@@ -35,3 +34,4 @@ nosetests.xml
 testapi_venv/
 .cache
 .tox
+*.retry
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from prototypes/xci/flavors/aio
rename to prototypes/xci/config/aio-vars
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from prototypes/xci/flavors/ha
rename to prototypes/xci/config/ha-vars
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from prototypes/xci/flavors/mini
rename to prototypes/xci/config/mini-vars
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from prototypes/xci/flavors/noha
rename to prototypes/xci/config/noha-vars
diff --git a/prototypes/xci/file/aio/playbooks/inventory b/prototypes/xci/file/aio/playbooks/inventory
deleted file mode 100644 (file)
index 9283e51..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-[xciaio]
-xciaio ansible_ssh_host=192.168.122.2
diff --git a/prototypes/xci/file/aio/var/ubuntu.yml b/prototypes/xci/file/aio/var/ubuntu.yml
deleted file mode 100644 (file)
index 3a041b1..0000000
+++ /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/prototypes/xci/file/noha/inventory b/prototypes/xci/file/noha/inventory
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/file/noha/openstack_user_config.yml b/prototypes/xci/file/noha/openstack_user_config.yml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/file/setup-openstack.yml b/prototypes/xci/file/setup-openstack.yml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/file/user_variables.yml b/prototypes/xci/file/user_variables.yml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/playbooks/configure-localhost.yml b/prototypes/xci/playbooks/configure-localhost.yml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/playbooks/inventory b/prototypes/xci/playbooks/inventory
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/template/compute.interface.j2 b/prototypes/xci/template/compute.interface.j2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/template/controller.interface.j2 b/prototypes/xci/template/controller.interface.j2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/template/xci.interface.j2 b/prototypes/xci/template/xci.interface.j2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prototypes/xci/var/ubuntu.yml b/prototypes/xci/var/ubuntu.yml
new file mode 100644 (file)
index 0000000..e69de29
index 401c098..eb1e9d7 100755 (executable)
@@ -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