diff options
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/flannel/README.md | 18 | ||||
| -rw-r--r-- | roles/flannel/defaults/main.yaml | 7 | ||||
| -rw-r--r-- | roles/openshift_master/templates/master.yaml.v1.j2 | 5 | ||||
| -rw-r--r-- | roles/openshift_node/tasks/storage_plugins/nfs.yml | 8 | 
4 files changed, 19 insertions, 19 deletions
diff --git a/roles/flannel/README.md b/roles/flannel/README.md index 8f271aada..84e2c5c49 100644 --- a/roles/flannel/README.md +++ b/roles/flannel/README.md @@ -13,15 +13,15 @@ to 0.3.  Role Variables  -------------- -| Name                | Default value                           | Description                                   | -|---------------------|-----------------------------------------|-----------------------------------------------| -| flannel_interface   | ansible_default_ipv4.interface          | interface to use for inter-host communication | -| flannel_etcd_key    | /openshift.com/network                  | etcd prefix                                   | -| etcd_hosts          | etcd_urls                               | a list of etcd endpoints                      | -| etcd_conf_dir       | {{ openshift.common.config_base }}/node | SSL certificates directory                    | -| etcd_peer_ca_file   | {{ etcd_conf_dir }}/ca.crt              | SSL CA to use for etcd                        | -| etcd_peer_cert_file | Openshift SSL cert                      | SSL cert to use for etcd                      | -| etcd_peer_key_file  | Openshift SSL key                       | SSL key to use for etcd                       | +| Name                 | Default value                           | Description                                   | +|----------------------|-----------------------------------------|-----------------------------------------------| +| flannel_interface    | ansible_default_ipv4.interface          | interface to use for inter-host communication | +| flannel_etcd_key     | /openshift.com/network                  | etcd prefix                                   | +| etcd_hosts           | etcd_urls                               | a list of etcd endpoints                      | +| etcd_cert_config_dir | {{ openshift.common.config_base }}/node | SSL certificates directory                    | +| etcd_peer_ca_file    | {{ etcd_conf_dir }}/ca.crt              | SSL CA to use for etcd                        | +| etcd_peer_cert_file  | Openshift SSL cert                      | SSL cert to use for etcd                      | +| etcd_peer_key_file   | Openshift SSL key                       | SSL key to use for etcd                       |  Dependencies  ------------ diff --git a/roles/flannel/defaults/main.yaml b/roles/flannel/defaults/main.yaml index 34cebda9c..988731ef2 100644 --- a/roles/flannel/defaults/main.yaml +++ b/roles/flannel/defaults/main.yaml @@ -2,7 +2,6 @@  flannel_interface: "{{ ansible_default_ipv4.interface }}"  flannel_etcd_key: /openshift.com/network  etcd_hosts: "{{ etcd_urls }}" -etcd_conf_dir: "{{ openshift.common.config_base }}/node" -etcd_peer_ca_file: "{{ etcd_conf_dir }}/{{ 'ca' if (embedded_etcd | bool) else 'node.etcd-ca' }}.crt" -etcd_peer_cert_file: "{{ etcd_conf_dir }}/{{ 'system:node:' + openshift.common.hostname if (embedded_etcd | bool) else 'node.etcd-client' }}.crt" -etcd_peer_key_file: "{{ etcd_conf_dir }}/{{ 'system:node:' + openshift.common.hostname if (embedded_etcd | bool) else 'node.etcd-client' }}.key" +etcd_peer_ca_file: "{{ openshift.common.config_base }}/node/{{ 'ca' if (embedded_etcd | bool) else 'flannel.etcd-ca' }}.crt" +etcd_peer_cert_file: "{{ openshift.common.config_base }}/node/{{ 'system:node:' + openshift.common.hostname if (embedded_etcd | bool) else 'flannel.etcd-client' }}.crt" +etcd_peer_key_file: "{{ openshift.common.config_base }}/node/{{ 'system:node:' + openshift.common.hostname if (embedded_etcd | bool) else 'flannel.etcd-client' }}.key" diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2 index 31e86f5bd..0683fa95a 100644 --- a/roles/openshift_master/templates/master.yaml.v1.j2 +++ b/roles/openshift_master/templates/master.yaml.v1.j2 @@ -156,6 +156,7 @@ networkConfig:  {% endif %}  # serviceNetworkCIDR must match kubernetesMasterConfig.servicesSubnet    serviceNetworkCIDR: {{ openshift.common.portal_net }} +  externalIPNetworkCIDRs: {{ openshift_master_external_ip_network_cidrs | default(["0.0.0.0/0"]) | to_padded_yaml(1,2) }}  oauthConfig:  {% if 'oauth_always_show_provider_selection' in openshift.master %}    alwaysShowProviderSelection: {{ openshift.master.oauth_always_show_provider_selection }} @@ -173,7 +174,7 @@ oauthConfig:  {% if openshift.common.version_gte_3_2_or_1_2 | bool %}    masterCA: ca-bundle.crt  {% else %} -  masterCA: ca.rt +  masterCA: ca.crt  {% endif %}    masterPublicURL: {{ openshift.master.public_api_url }}    masterURL: {{ openshift.master.api_url }} @@ -210,7 +211,7 @@ serviceAccountConfig:  {% if openshift.common.version_gte_3_2_or_1_2 | bool %}    masterCA: ca-bundle.crt  {% else %} -  masterCA: ca.rt +  masterCA: ca.crt  {% endif %}    privateKeyFile: serviceaccounts.private.key    publicKeyFiles: diff --git a/roles/openshift_node/tasks/storage_plugins/nfs.yml b/roles/openshift_node/tasks/storage_plugins/nfs.yml index e384c1bd7..22b539d16 100644 --- a/roles/openshift_node/tasks/storage_plugins/nfs.yml +++ b/roles/openshift_node/tasks/storage_plugins/nfs.yml @@ -17,16 +17,16 @@      persistent: yes    when: ansible_selinux and ansible_selinux.status == "enabled" and virt_use_nfs_output.rc == 0 -- name: Check for existence of virt_sandbox_use_nfs seboolean +- name: Check for existence of virt_sandbox_use_nfs seboolean (RHEL)    command: getsebool virt_sandbox_use_nfs    register: virt_sandbox_use_nfs_output -  when: ansible_selinux and ansible_selinux.status == "enabled" +  when: ansible_distribution != "Fedora" and ansible_selinux and ansible_selinux.status == "enabled"    failed_when: false    changed_when: false -- name: Set seboolean to allow nfs storage plugin access from containers(sandbox) +- name: Set seboolean to allow nfs storage plugin access from containers(sandbox) (RHEL)    seboolean:      name: virt_sandbox_use_nfs      state: yes      persistent: yes -  when: ansible_selinux and ansible_selinux.status == "enabled" and virt_sandbox_use_nfs_output.rc == 0 +  when: ansible_distribution != "Fedora" and ansible_selinux and ansible_selinux.status == "enabled" and virt_sandbox_use_nfs_output.rc == 0  | 
