diff options
author | 2017-03-29 15:40:23 +0200 | |
---|---|---|
committer | 2017-08-11 12:56:12 -0700 | |
commit | 6f10780fcbc9c76a2fa225f57c4f05f3f9ec7cd3 (patch) | |
tree | 4f3d748377194cf38a48ba1b135de0dc16d11e08 /xci/file/mini/configure-targethosts.yml | |
parent | 0467985246ad639ce3438a6d445cb47af8d32175 (diff) |
xci: Add ansible files for sandbox mini flavor
This patch adds mini target host configuration playbook, inventory, variable
files and so on to use until we have time to fix things more properly and some
other functionality becomes available in upstream. This approach will result in
duplicates but it is something we can perhaps live with.
The user variables and openstack user configuration will be different between
flavors and keeping deployment specific configuration.
Change-Id: Ie312dfa2047d094b590de970c1436d69f4c69668
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'xci/file/mini/configure-targethosts.yml')
-rw-r--r-- | xci/file/mini/configure-targethosts.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xci/file/mini/configure-targethosts.yml b/xci/file/mini/configure-targethosts.yml new file mode 100644 index 00000000..395f44a6 --- /dev/null +++ b/xci/file/mini/configure-targethosts.yml @@ -0,0 +1,32 @@ +--- +- hosts: all + remote_user: root + tasks: + - name: add public key to host + copy: + src: ../file/authorized_keys + dest: /root/.ssh/authorized_keys + - name: configure modules + copy: + src: ../file/modules + dest: /etc/modules + +- hosts: controller + remote_user: root + vars_files: + - ../var/{{ ansible_os_family }}.yml + - ../var/flavor-vars.yml + roles: + # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros + - { role: configure-network, when: ansible_distribution_release == "xenial", src: "../template/controller.interface.j2", dest: "/etc/network/interfaces" } + +- hosts: compute + remote_user: root + vars_files: + - ../var/{{ ansible_os_family }}.yml + - ../var/flavor-vars.yml + roles: + # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros + - { role: configure-network, when: ansible_distribution_release == "xenial", src: "../template/compute.interface.j2", dest: "/etc/network/interfaces" } + # TODO: this role is for configuring NFS on xenial and adjustment needed for other distros + - role: configure-nfs |