Last active
June 4, 2018 12:03
-
-
Save cmcornejocrespo/be1ff4c710a46ff8e7d8f45cfe977d8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example of an OpenShift-Ansible host inventory for a cluster | |
# with natively hosted, containerized GlusterFS storage for applications. It | |
# will also automatically create a StorageClass for this purpose. | |
# | |
# This inventory may be used with the deploy_cluster.yml playbook to deploy a new | |
# cluster with GlusterFS storage. | |
# | |
# This inventory may also be used with openshift-glusterfs/config.yml to | |
# deploy GlusterFS storage on an existing cluster. | |
# | |
# There are additional configuration parameters that can be specified to | |
# control the deployment and state of a GlusterFS cluster. Please see the | |
# documentation in playbooks/openshift-glusterfs/README.md and | |
# roles/openshift_storage_glusterfs/README.md for additional details. | |
[OSEv3:children] | |
masters | |
nodes | |
etcd | |
# Specify there will be GlusterFS nodes | |
glusterfs | |
[OSEv3:vars] | |
ansible_ssh_user=root | |
openshift_deployment_type=origin | |
enable_excluders=False | |
enable_docker_excluder=False | |
ansible_service_broker_install=False | |
containerized=True | |
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant' | |
openshift_disable_check=disk_availability,docker_storage,memory_availability,docker_image_availability | |
deployment_type=origin | |
openshift_deployment_type=origin | |
osm_use_cockpit=true | |
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}] | |
openshift_public_hostname=console.${DOMAIN} | |
openshift_master_default_subdomain=apps.${DOMAIN} | |
openshift_master_api_port=${API_PORT} | |
openshift_master_console_port=${API_PORT} | |
openshift_release=v3.9.0 | |
openshift_pkg_version=v3.9.0 | |
openshift_image_tag=v3.9.0 | |
openshift_service_catalog_image_version=v3.9.0 | |
template_service_broker_image_version=v3.9.0 | |
template_service_broker_selector={"region":"infra"} | |
openshift_ip_check=false | |
[masters] | |
${IP} openshift_ip=${IP} openshift_schedulable=true | |
[nodes] | |
# A hosted registry, by default, will only be deployed on nodes labeled | |
# "region=infra". | |
${IP} openshift_ip=${IP} openshift_schedulable=True openshift_node_labels="{'region': 'infra', 'zone': 'default'}" | |
[etcd] | |
${IP} openshift_ip=${IP} | |
# Specify the glusterfs group, which contains the nodes that will host | |
# GlusterFS storage pods. At a minimum, each node must have a | |
# "glusterfs_devices" variable defined. This variable is a list of block | |
# devices the node will have access to that is intended solely for use as | |
# GlusterFS storage. These block devices must be bare (e.g. have no data, not | |
# be marked as LVM PVs), and will be formatted. | |
[glusterfs] | |
${IP} glusterfs_devices='[ "/dev/sdb", "/dev/sdc" , "/dev/sdf"]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment