Judd Maltin
2018-07-24 cb3d2dca86b5517d802277fb915c317e2f90ebcc
ocp_storage: add install_glusterfs
2 files modified
19 ■■■■ changed files
ansible/configs/ocp-storage-cns/env_vars.yml 3 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-storage-cns/files/hosts_template.3.9.31.j2 16 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp-storage-cns/env_vars.yml
@@ -27,7 +27,7 @@
deploy_env_post: true
install_metrics: true
install_logging: true
ovs_plugin: "networkpolicy" # This can also be set to: "multitenant" or "networkpolicy"
ovs_plugin: "networkpolicy"  # This can also be set to: "multitenant" or "networkpolicy"
multi_tenant_setting: "os_sdn_network_plugin_name='redhat/openshift-ovs-{{ovs_plugin}}'"
cloudapps_suffix: 'apps.{{subdomain_base}}'
openshift_master_ldap_ca_file: 'openshift_master_ldap_ca_file=/root/ca.crt'
@@ -41,6 +41,7 @@
install_common: true
install_nfs: true
install_glusterfs: false
glusterfs_hosted_device_name: /dev/xvdd
glusterfs_hosted_device_size: 300
glusterfs_app_device_name: /dev/xvde
ansible/configs/ocp-storage-cns/files/hosts_template.3.9.31.j2
@@ -186,7 +186,12 @@
etcd
nodes
nfs
{% if install_glusterfs|bool %}
glusterfs
{% else %}
#glusterfs
{% endif %}
[masters]
{% for host in groups['masters']|sort %}
@@ -216,14 +221,23 @@
## These are CNS nodes
{% for host in groups['support']|sort %}
# {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }}  openshift_node_labels="{'env':'glusterfs', 'cluster': '{{guid}}'}"
{% if not install_glusterfs|bool %}# {% endif %}{{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }}  openshift_node_labels="{'env':'glusterfs', 'cluster': '{{guid}}'}"
{% endfor %}
[nfs]
{% set nfshost = groups['support']|sort|first %}
{{ hostvars[nfshost].internaldns }} openshift_hostname={{ hostvars[nfshost].internaldns }}
{% if install_glusterfs|bool %}
[glusterfs]
{% else %}
#[glusterfs]
{% endif %}
{% for host in groups['support']|sort %}
{% if install_glusterfs|bool %}
{{ hostvars[host].internaldns }} glusterfs_devices='[ "{{ glusterfs_app_device_name }}" ]'
{% else %}
# {{ hostvars[host].internaldns }} glusterfs_devices='[ "{{ glusterfs_app_device_name }}" ]'
{% endif %}
{% endfor %}