Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ganhuang/5b1fde6e96b49b68fb62e1f0c43c528d to your computer and use it in GitHub Desktop.
Save ganhuang/5b1fde6e96b49b68fb62e1f0c43c528d to your computer and use it in GitHub Desktop.
openshift-ansible-installer config example
---
version: v3
variant: openshift-enterprise
variant_version: '3.1'
# The deployment key specifies the hosts and roles fo rthe deployment
# and configuration values that apply to the deployment as a whole
deployment:
ansible_config: /usr/share/atomic-openshift-utils/ansible.cfg
ansible_log_path: /tmp/ansible.log
ansible_ssh_user: cloud-user
# any unmapped variables for the entire deployment can go here
# they are passed through to the generated inventory as is
openshift_hosted_registry_storage_host: nfs.example.com
openshift_hosted_registry_storage_nfs_options: '*(rw,root_squash)'
openshift_hosted_registry_storage_nfs_directory: /exports
openshift_hosted_registry_storage_volume_name: registry
openshift_hosted_registry_storage_access_modes: ['ReadWriteMany']
roles:
master:
containerized: true
# cluster_* variables are only used for configuring ha masters.
cluster_method: native
cluster_hostname: openshift-ansible.test.example.com
cluster_public_hostname: openshift-ansible.test.example.com
# any unmapped variables for a host can go here
# they are passed through to the generated inventory as is
openshift_master_identity_providers:
- name: htpasswd_auth
login: true
challenge: true
kind: HTPasswdPasswordIdentityProvider
filename: /etc/origin/master/htpasswd
openshift_master_htpasswd_users:
user1: pass1
user2: pass2
node:
containerized: true
region: infra
zone: default
infra:
containerized: false
region: infra
zone: default
loadbalancer:
containerized: false
etcd:
containerized: true
storage:
dns:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment