diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-03-28 01:04:27 +0200 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-03-28 12:47:10 +0200 |
commit | c580e947a59bc00996c6057c363f13e0398682a6 (patch) | |
tree | 8df57306934f2d5468f41523753325020033f6e9 /prototypes | |
parent | d8235c3c97f47cb117c7d112f78c18089abb3395 (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>
Diffstat (limited to 'prototypes')
-rwxr-xr-x[-rw-r--r--] | prototypes/xci/config/aio-vars (renamed from prototypes/xci/flavors/aio) | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | prototypes/xci/config/ha-vars (renamed from prototypes/xci/flavors/ha) | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | prototypes/xci/config/mini-vars (renamed from prototypes/xci/flavors/mini) | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | prototypes/xci/config/noha-vars (renamed from prototypes/xci/flavors/noha) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/aio/flavor-vars.yml (renamed from prototypes/xci/file/aio/playbooks/configure-xcihost.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/aio/inventory (renamed from prototypes/xci/file/ha/playbooks/inventory) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/aio/openstack_user_config.yml (renamed from prototypes/xci/file/ha/configure-targethosts.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/aio/playbooks/inventory | 2 | ||||
-rw-r--r-- | prototypes/xci/file/aio/var/ubuntu.yml | 7 | ||||
-rw-r--r-- | prototypes/xci/file/cinder.yml (renamed from prototypes/xci/file/ha/playbooks/configure-xcihost.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/exports (renamed from prototypes/xci/file/ha/var/ubuntu.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/ha/flavor-vars.yml (renamed from prototypes/xci/file/mini/configure-targethosts.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/ha/inventory (renamed from prototypes/xci/file/mini/playbooks/inventory) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/ha/openstack_user_config.yml (renamed from prototypes/xci/file/mini/playbooks/configure-xcihost.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/mini/flavor-vars.yml (renamed from prototypes/xci/file/mini/var/ubuntu.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/mini/inventory (renamed from prototypes/xci/file/noha/playbooks/inventory) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/mini/openstack_user_config.yml (renamed from prototypes/xci/file/noha/configure-targethosts.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/modules (renamed from prototypes/xci/file/noha/playbooks/configure-xcihost.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/noha/flavor-vars.yml (renamed from prototypes/xci/file/noha/var/ubuntu.yml) | 0 | ||||
-rw-r--r-- | prototypes/xci/file/noha/inventory | 0 | ||||
-rw-r--r-- | prototypes/xci/file/noha/openstack_user_config.yml | 0 | ||||
-rw-r--r-- | prototypes/xci/file/setup-openstack.yml | 0 | ||||
-rw-r--r-- | prototypes/xci/file/user_variables.yml | 0 | ||||
-rw-r--r-- | prototypes/xci/playbooks/configure-localhost.yml | 0 | ||||
-rw-r--r-- | prototypes/xci/playbooks/inventory | 0 | ||||
-rw-r--r-- | prototypes/xci/template/compute.interface.j2 | 0 | ||||
-rw-r--r-- | prototypes/xci/template/controller.interface.j2 | 0 | ||||
-rw-r--r-- | prototypes/xci/template/xci.interface.j2 | 0 | ||||
-rw-r--r-- | prototypes/xci/var/ubuntu.yml | 0 | ||||
-rwxr-xr-x | prototypes/xci/xci-deploy.sh | 2 |
30 files changed, 1 insertions, 10 deletions
diff --git a/prototypes/xci/flavors/aio b/prototypes/xci/config/aio-vars index 48754e507..48754e507 100644..100755 --- a/prototypes/xci/flavors/aio +++ b/prototypes/xci/config/aio-vars diff --git a/prototypes/xci/flavors/ha b/prototypes/xci/config/ha-vars index 8a045a3dd..8a045a3dd 100644..100755 --- a/prototypes/xci/flavors/ha +++ b/prototypes/xci/config/ha-vars diff --git a/prototypes/xci/flavors/mini b/prototypes/xci/config/mini-vars index 44b015d9f..44b015d9f 100644..100755 --- a/prototypes/xci/flavors/mini +++ b/prototypes/xci/config/mini-vars diff --git a/prototypes/xci/flavors/noha b/prototypes/xci/config/noha-vars index 7f686e5e5..7f686e5e5 100644..100755 --- a/prototypes/xci/flavors/noha +++ b/prototypes/xci/config/noha-vars diff --git a/prototypes/xci/file/aio/playbooks/configure-xcihost.yml b/prototypes/xci/file/aio/flavor-vars.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/aio/playbooks/configure-xcihost.yml +++ b/prototypes/xci/file/aio/flavor-vars.yml diff --git a/prototypes/xci/file/ha/playbooks/inventory b/prototypes/xci/file/aio/inventory index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/ha/playbooks/inventory +++ b/prototypes/xci/file/aio/inventory diff --git a/prototypes/xci/file/ha/configure-targethosts.yml b/prototypes/xci/file/aio/openstack_user_config.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/ha/configure-targethosts.yml +++ b/prototypes/xci/file/aio/openstack_user_config.yml diff --git a/prototypes/xci/file/aio/playbooks/inventory b/prototypes/xci/file/aio/playbooks/inventory deleted file mode 100644 index 9283e516d..000000000 --- a/prototypes/xci/file/aio/playbooks/inventory +++ /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 index 3a041b1cb..000000000 --- a/prototypes/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/prototypes/xci/file/ha/playbooks/configure-xcihost.yml b/prototypes/xci/file/cinder.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/ha/playbooks/configure-xcihost.yml +++ b/prototypes/xci/file/cinder.yml diff --git a/prototypes/xci/file/ha/var/ubuntu.yml b/prototypes/xci/file/exports index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/ha/var/ubuntu.yml +++ b/prototypes/xci/file/exports diff --git a/prototypes/xci/file/mini/configure-targethosts.yml b/prototypes/xci/file/ha/flavor-vars.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/mini/configure-targethosts.yml +++ b/prototypes/xci/file/ha/flavor-vars.yml diff --git a/prototypes/xci/file/mini/playbooks/inventory b/prototypes/xci/file/ha/inventory index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/mini/playbooks/inventory +++ b/prototypes/xci/file/ha/inventory diff --git a/prototypes/xci/file/mini/playbooks/configure-xcihost.yml b/prototypes/xci/file/ha/openstack_user_config.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/mini/playbooks/configure-xcihost.yml +++ b/prototypes/xci/file/ha/openstack_user_config.yml diff --git a/prototypes/xci/file/mini/var/ubuntu.yml b/prototypes/xci/file/mini/flavor-vars.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/mini/var/ubuntu.yml +++ b/prototypes/xci/file/mini/flavor-vars.yml diff --git a/prototypes/xci/file/noha/playbooks/inventory b/prototypes/xci/file/mini/inventory index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/noha/playbooks/inventory +++ b/prototypes/xci/file/mini/inventory diff --git a/prototypes/xci/file/noha/configure-targethosts.yml b/prototypes/xci/file/mini/openstack_user_config.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/noha/configure-targethosts.yml +++ b/prototypes/xci/file/mini/openstack_user_config.yml diff --git a/prototypes/xci/file/noha/playbooks/configure-xcihost.yml b/prototypes/xci/file/modules index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/noha/playbooks/configure-xcihost.yml +++ b/prototypes/xci/file/modules diff --git a/prototypes/xci/file/noha/var/ubuntu.yml b/prototypes/xci/file/noha/flavor-vars.yml index e69de29bb..e69de29bb 100644 --- a/prototypes/xci/file/noha/var/ubuntu.yml +++ b/prototypes/xci/file/noha/flavor-vars.yml diff --git a/prototypes/xci/file/noha/inventory b/prototypes/xci/file/noha/inventory new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/file/noha/inventory diff --git a/prototypes/xci/file/noha/openstack_user_config.yml b/prototypes/xci/file/noha/openstack_user_config.yml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/file/noha/openstack_user_config.yml diff --git a/prototypes/xci/file/setup-openstack.yml b/prototypes/xci/file/setup-openstack.yml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/file/setup-openstack.yml diff --git a/prototypes/xci/file/user_variables.yml b/prototypes/xci/file/user_variables.yml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/file/user_variables.yml diff --git a/prototypes/xci/playbooks/configure-localhost.yml b/prototypes/xci/playbooks/configure-localhost.yml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/playbooks/configure-localhost.yml diff --git a/prototypes/xci/playbooks/inventory b/prototypes/xci/playbooks/inventory new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/playbooks/inventory diff --git a/prototypes/xci/template/compute.interface.j2 b/prototypes/xci/template/compute.interface.j2 new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/template/compute.interface.j2 diff --git a/prototypes/xci/template/controller.interface.j2 b/prototypes/xci/template/controller.interface.j2 new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/template/controller.interface.j2 diff --git a/prototypes/xci/template/xci.interface.j2 b/prototypes/xci/template/xci.interface.j2 new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/template/xci.interface.j2 diff --git a/prototypes/xci/var/ubuntu.yml b/prototypes/xci/var/ubuntu.yml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/prototypes/xci/var/ubuntu.yml diff --git a/prototypes/xci/xci-deploy.sh b/prototypes/xci/xci-deploy.sh index 401c098c6..eb1e9d78e 100755 --- a/prototypes/xci/xci-deploy.sh +++ b/prototypes/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 |