summaryrefslogtreecommitdiffstats
path: root/prototypes/xci/file/mini
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-04-18 10:53:21 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-04-18 09:34:01 +0000
commit8f9a53258a858b78229974cf09a3da67608ef0bd (patch)
treed98915c5c34e7c2b34cbb4da595bf661b34bf138 /prototypes/xci/file/mini
parent86f730857639949a2bb5135ae6366d00da424002 (diff)
xci: Change cinder backend and move nfs to compute00
This change - switches cinder backend from lvm to nfs as examplified in [1]. - moves nfs shares from compute01 to compute00 in order to merge configure-targethosts.yml playbook in upcoming change. - updates openstack_user_config.yml to reflect the switch to nfs and move of nfs server to compute00. - removes exports file due to switching to lineinfile module. [1] https://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-config-prod.html Change-Id: I0715c98a89ab124256e3857c1047e374f261e39b Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'prototypes/xci/file/mini')
-rw-r--r--prototypes/xci/file/mini/configure-targethosts.yml4
-rw-r--r--prototypes/xci/file/mini/openstack_user_config.yml13
2 files changed, 12 insertions, 5 deletions
diff --git a/prototypes/xci/file/mini/configure-targethosts.yml b/prototypes/xci/file/mini/configure-targethosts.yml
index 7a20c0f63..50da1f223 100644
--- a/prototypes/xci/file/mini/configure-targethosts.yml
+++ b/prototypes/xci/file/mini/configure-targethosts.yml
@@ -28,5 +28,9 @@
- { role: configure-network, src: "../template/compute.interface.j2", dest: "/etc/network/interfaces" }
# we need to force sync time with ntp or the nodes will be out of sync timewise
- role: synchronize-time
+
+- hosts: compute00
+ remote_user: root
# TODO: this role is for configuring NFS on xenial and adjustment needed for other distros
+ roles:
- role: configure-nfs
diff --git a/prototypes/xci/file/mini/openstack_user_config.yml b/prototypes/xci/file/mini/openstack_user_config.yml
index 70429cea9..f9ccee24f 100644
--- a/prototypes/xci/file/mini/openstack_user_config.yml
+++ b/prototypes/xci/file/mini/openstack_user_config.yml
@@ -160,8 +160,11 @@ storage_hosts:
container_vars:
cinder_backends:
limit_container_types: cinder_volume
- lvm:
- volume_group: cinder-volumes
- volume_driver: cinder.volume.drivers.lvm.LVMVolumeDriver
- volume_backend_name: LVM_iSCSI
- iscsi_ip_address: "172.29.244.11"
+ nfs_volume:
+ volume_backend_name: NFS_VOLUME1
+ volume_driver: cinder.volume.drivers.nfs.NfsDriver
+ nfs_mount_options: "rsize=65535,wsize=65535,timeo=1200,actimeo=120"
+ nfs_shares_config: /etc/cinder/nfs_shares
+ shares:
+ - ip: "172.29.244.12"
+ share: "/volumes"