Role to update master and compute node configuration across multiple clusters utilizing one role.
Caveat to role: uncording hosts in the playbook is limited to infra and compute nodes. As of OpenShift v3.9 master nodes now have to be scheduleable due to the fact that they now run webconsole containers and docker garbage collection if one switches to CRI-O runtime.
- See Dependencies for required system facts.
- Enter your cluster facts under the role/tasks
- See Role Variables to encrypt LDAP bind password.
The only required variable for this playbook is the password pass_variable used in the master-config.yaml.j2 template.
This role depends on ansible_local facts and should be set prior to running role. Example.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
# How-to:
# ansible-playbook -l masters -t master -v pb_role_cluster_config.yaml --ask-vault-pass
# ansible-playbook -l compute -t node -v pb_role_cluster_config.yaml
- hosts: all
roles:
- { role: role_cluster_config }
GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
Copyright: (c) 2018, canit00 <[email protected]>