summaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2017-04-01 04:53:28 +0200
committerSuren A. Chilingaryan <csa@suren.me>2017-04-01 04:53:28 +0200
commite7ed329bd81c2273c03e94c93c9ce9c1d01cdc86 (patch)
tree444778102e4f73b83ef9462235b7f614b004b264 /group_vars
downloadands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.tar.gz
ands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.tar.bz2
ands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.tar.xz
ands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.zip
Initial import
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/OSEv3.yml65
-rw-r--r--group_vars/all.yml3
-rw-r--r--group_vars/ands.yml5
-rw-r--r--group_vars/baremetal.yml3
-rw-r--r--group_vars/production.yml7
-rw-r--r--group_vars/staging.yml26
-rw-r--r--group_vars/testing.yml20
-rw-r--r--group_vars/virtual.yml10
8 files changed, 139 insertions, 0 deletions
diff --git a/group_vars/OSEv3.yml b/group_vars/OSEv3.yml
new file mode 100644
index 0000000..5e19b7d
--- /dev/null
+++ b/group_vars/OSEv3.yml
@@ -0,0 +1,65 @@
+### Deployment Type
+deployment_type: "origin"
+#openshift_release: "v1.4"
+#openshift_image_tag: "v1.4.1"
+openshift_release: "v1.5"
+#openshift_image_tag: "v1.5.0"
+openshift_image_tag: "v1.5.0-rc.0"
+openshift_hosted_metrics_deployer_version: "v1.5.0-rc.0"
+
+
+containerized: true
+openshift_master_cluster_method: "native"
+
+### Configuration
+openshift_install_examples: true
+osn_storage_plugin_deps: ['ceph', 'glusterfs']
+openshift_hosted_metrics_deploy: true
+#openshift_metrics_project: openshift-infra
+ppenshift_hosted_metrics_storage_kind: dynamic
+# seems ignored, so lets set to default
+#openshift_metrics_hawkular_hostname: "hawkular-metrics.{{ ands_openshift_subdomain }}"
+
+
+openshift_master_pod_eviction_timeout: 30s
+
+# Verify that it does not cause problems
+os_firewall_use_firewalld: true
+
+
+# Alternative metrics & cockpit, this is purely documented so we keep it out
+#openshift_use_manageiq: true
+osm_use_cockpit: true
+osm_cockpit_plugins: ['cockpit-kubernetes']
+
+#Recommended to avoid: No package matching 'origin-docker-excluder-1.5.0*' found available
+enable_excluders: false
+enable_docker_excluder: false
+
+# Required for IPFailover
+openshift_clock_enabled: true
+
+### Authentication
+openshift_master_identity_providers: [{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
+openshift_master_htpasswd_users: {'pdv': '$apr1$ACvj6uUa$Nm1Vq8hZq3RzTtaYpAHv01', 'csa': '$apr1$IqEwdnzy$UAdd8ZSFnXommBbj29w3c0'}
+
+# Network & DNS configuration
+openshift_master_cluster_hostname: "{{ ands_openshift_lb }}"
+#openshift_master_cluster_public_hostname: "{{ ands_openshift_lb }}"
+openshift_master_default_subdomain: "{{ ands_openshift_subdomain }}"
+openshift_master_ingress_ip_network_cidr: "{{ ands_openshift_ingress_network }}"
+
+
+# Node configuration
+openshift_schedulable: true
+
+openshift_ip: "{{ ands_openshift_network | ipaddr(ands_host_id) | ipaddr('address') }}"
+openshift_hostname: "{{ ansible_hostname }}"
+openshift_public_hostname: "{{ ansible_hostname }}.{{ ands_cluster_domain }}"
+
+#openshift_public_ip: "{{ ands_openshift_network | ipaddr(ands_host_id) | ipaddr('address') }}"
+#openshift_hostname: "{{ ands_openshift_network | ipaddr(ands_host_id) | ipaddr('address') }}"
+#openshift_public_hostname: "{{ ands_openshift_public_network | ipaddr(ands_host_id) | ipaddr('address') }}"
+
+openshift_node_labels: "{{ ands_openshift_labels }}"
+
diff --git a/group_vars/all.yml b/group_vars/all.yml
new file mode 100644
index 0000000..f29206f
--- /dev/null
+++ b/group_vars/all.yml
@@ -0,0 +1,3 @@
+ansible_ssh_user: root
+glusterfs_version: 39
+
diff --git a/group_vars/ands.yml b/group_vars/ands.yml
new file mode 100644
index 0000000..58570c6
--- /dev/null
+++ b/group_vars/ands.yml
@@ -0,0 +1,5 @@
+# This should be here, the variables from the role are not propogated to hostvars
+
+#ands_master_id: "{{ ('masters' in group_names) | ternary(groups.masters.index(('masters' in group_names) | ternary(inventory_hostname, groups.masters[0])), -1) }}"
+ands_storage_hostname: "{{ ands_storage_network | default(false) | ternary(ands_storage_network | default('') | ipaddr(ands_host_id) | ipaddr('address'), ansible_fqdn) }}"
+
diff --git a/group_vars/baremetal.yml b/group_vars/baremetal.yml
new file mode 100644
index 0000000..032e53f
--- /dev/null
+++ b/group_vars/baremetal.yml
@@ -0,0 +1,3 @@
+glusterfs_transport: rdma
+
+ands_host_id: "{{ ansible_hostname | regex_replace('^ipekatrin(\\d+)(\\.|$)', '\\1') }}"
diff --git a/group_vars/production.yml b/group_vars/production.yml
new file mode 100644
index 0000000..24b189f
--- /dev/null
+++ b/group_vars/production.yml
@@ -0,0 +1,7 @@
+ands_storage_network: 192.168.12.0/24
+
+ands_openshift_lb: kaas.kit.edu
+ands_openshift_subdomain: kaas.kit.edu
+ands_openshift_network: 192.168.26.0/24
+ands_openshift_public_network: 192.168.26.0/24
+ands_openshift_ingress_network: 192.168.16.0/22
diff --git a/group_vars/staging.yml b/group_vars/staging.yml
new file mode 100644
index 0000000..7eed847
--- /dev/null
+++ b/group_vars/staging.yml
@@ -0,0 +1,26 @@
+ands_storage_network: 192.168.212.0/24
+
+ands_cluster_domain: ipe.kit.edu
+#ands_openshift_lb: openshift.ipe.kit.edu
+#ands_openshift_subdomain: openshift.ipe.kit.edu
+ands_openshift_lb: openshift.suren.me
+ands_openshift_subdomain: openshift.suren.me
+ands_openshift_network: 192.168.212.0/24
+ands_openshift_public_network: 192.168.226.0/24
+ands_openshift_ingress_network: 192.168.216.0/24
+
+ands_ipfailover_interface: eth1
+ands_ipfailover_vips: [141.52.64.28/24]
+
+katrin_openvpn_subnet_bits: 24
+katrin_openvpn_subnet_offset: 221
+katrin_openvpn_network: "192.168.0.0/16"
+
+vagrant_hostname_template: ipeshift
+vagrant_cpu_cores: 4
+vagrant_mem_size: 16
+vagrant_disk_size: 240
+
+
+#ands_disable_dynamic_provisioning: true
+#ands_provision_without_dns: true
diff --git a/group_vars/testing.yml b/group_vars/testing.yml
new file mode 100644
index 0000000..ac7ee89
--- /dev/null
+++ b/group_vars/testing.yml
@@ -0,0 +1,20 @@
+ands_storage_network: 192.168.12.0/24
+
+ands_cluster_domain: ipe.kit.edu
+ands_openshift_lb: katrin.suren.me
+#ands_openshift_subdomain: katrin.suren.me
+ands_openshift_subdomain: apps.suren.me
+#ands_openshift_network: 192.168.26.0/24
+ands_openshift_network: 192.168.12.0/24
+ands_openshift_public_network: 192.168.26.0/24
+ands_openshift_ingress_network: 192.168.16.0/24
+
+ands_ipfailover_interface: eth1
+ands_ipfailover_vips: [141.52.64.15/24, 141.52.64.17/24]
+
+katrin_openvpn_subnet_bits: 24
+katrin_openvpn_subnet_offset: 111
+katrin_openvpn_network: "192.168.0.0/16"
+
+vagrant_hostname_template: ipekatrin
+
diff --git a/group_vars/virtual.yml b/group_vars/virtual.yml
new file mode 100644
index 0000000..f76bafc
--- /dev/null
+++ b/group_vars/virtual.yml
@@ -0,0 +1,10 @@
+glusterfs_transport: tcp
+
+ands_data_device: "/dev/sdb"
+ands_data_volume_size: "20G"
+ands_heketi_volume_size: "20G"
+
+docker_storage_device: "/dev/sdb"
+docker_storage_vg: "ands"
+
+ands_host_id: "{{ ansible_hostname | regex_replace('^[\\w\\d]*\\w(\\d+)(\\.|$)', '\\1') }}"