Role - kubeinit_okd¶
Role Documentation¶
Please, refer to the kubeinit_okd role official docs for further information.
Role Defaults¶
This section highlights all of the defaults and variables set within the “kubeinit_okd” role.
# All variables intended for modification should be placed in this file.
# All variables within this role should have a prefix of "kubeinit_okd_"
kubeinit_okd_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
kubeinit_okd_hide_sensitive_logs: true
kubeinit_okd_pod_cidr: 10.100.0.0/14
kubeinit_okd_service_cidr: 172.30.0.0/16
kubeinit_okd_registry: quay.io
kubeinit_okd_registry_organization: openshift
kubeinit_okd_registry_repository: okd
kubeinit_okd_registry_release_tag: 4.6.0-0.okd-2020-11-27-200126
# The space after the first single quote is required, do not remove
# Something in Ansible appears to be recognizing this as valid Python,
# so it's getting transformed into a Python list and then serialized
# using Python's str(), which is why we end up with the single-quoted values.
kubeinit_okd_registry_pullsecret: ' {"auths":{"fakeregistry:5000":{"auth": "foo",
"email": "bar"}}}'
kubeinit_okd_dependencies:
client: https://github.com/openshift/okd/releases/download/{{ kubeinit_okd_registry_release_tag
}}/openshift-client-linux-{{ kubeinit_okd_registry_release_tag }}.tar.gz
installer: https://github.com/openshift/okd/releases/download/{{ kubeinit_okd_registry_release_tag
}}/openshift-install-linux-{{ kubeinit_okd_registry_release_tag }}.tar.gz
kubeinit_okd_service_dependencies:
- haproxy
- httpd
- bind
- bind-utils
- nfs-utils
- wget
- git
- jq
- socat
- gcc
- make
- patch
- libgomp
- glibc-headers
- glibc-devel
- kernel-headers
- kernel-devel
- nano
Molecule Scenarios¶
Molecule is being used to test the “kubeinit_okd” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.