/
main.yaml
161 lines (134 loc) · 5.2 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
#######################################
### Basic configuration ###
#######################################
# Set the Fully Qualified Domain Name of a Microshift host
fqdn: microshift.dev
# NOTE: To deploy Microshift > 4.8, you should provide pull-secret.txt content.
# It can be generated here: https://cloud.redhat.com/openshift/create/local
openshift_pull_secret: ""
# Set the location, where the pull-secret.txt content will be stored,
# Later it will be used by cri-o runtime environment.
registry_secret_path: /etc/crio/openshift-pull-secret
# Option allows to disable SELinux.
disable_selinux: false
# Hide logs when Ansible is executed.
hide_sensitive_logs: true
# Download and copy required binaries to setup Microshift.
# For example `oc` binary.
setup_tools: true
# Disable the swap in the system. This option is not required by the Microshift,
# but it is recommended by the Kubernetes deployment.
# More info: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
disable_swap: true
# Keep the firewalld rules after reboot
firewalld_rules_permament: true
### Microshift ###
# That option is installing Microshift 4.8 release, which does not require a
# pull-secret.txt file.
use_copr_microshift: false
# The Microshift version that is available in the repository.
microshift_version: 4.13
# Default settings from /etc/microshift/config.yaml.default
# https://github.com/openshift/microshift/blob/release-4.13/packaging/microshift/config.yaml
microshift_config: {}
# dns:
# baseDomain: microshift.example.com
# network:
# clusterNetwork:
# - cidr: 10.42.0.0/16
# serviceNetwork:
# - 10.43.0.0/16
# serviceNodePortRange: 30000-32767
# node:
# hostnameOverride: ''
# nodeIP: ''
# apiServer:
# subjectAltNames: []
# debugging:
# logLevel: 'Normal'
# Default settings from /etc/microshift/lvmd.yaml.default
# https://github.com/openshift/microshift/blob/release-4.13/packaging/microshift/lvmd.yaml
microshift_lmvd: {}
# socket-name: /run/lvmd/lvmd.socket
# device-classes:
# - name: default
# volume-group: rhel
# spare-gb: 0
# default: true
# stripe: ""
# stripe-size: ""
# lvcreate-options:
# - ""
# Default settings from /etc/microshift/ovn.yaml.default
# https://github.com/openshift/microshift/blob/release-4.13/packaging/microshift/ovn.yaml
microshift_ovn: {}
# ovsInit:
# disableOVSInit: false
# gatewayInterface: ""
# externalGatewayInterface: ""
# mtu: 1500
#######################################
### OLM ###
#######################################
# Install the OLM - https://olm.operatorframework.io/
setup_olm: false
olm_version: "v0.24.0"
# Location where the additional projects should be keeped.
# For example, if `setup_olm` is enabled, it will use Git to clone project
# to that directory.
repo_dir: "~{{ ansible_user }}/repos"
# Version of the Operator SDK
operator_sdk_version: "v1.28.0"
#######################################
### Openshift Storage ###
#######################################
#
# Create expected VG "rhel" (for topolvm/openshift-storage)
# The VG is created inside a file as a loop device. This is a handy solution
# for the CI and Microshift testing purpose.
# When the VG is already available on the machine then not VG is populated.
vg_create: true
# Set the path for a file, where later Ansible would create a LVM partition.
# It would be needed when `delete_openshift_storage` is set to false.
disk_file_path: /mnt/microshift-storage-file
# Size of the partition, that would be used by openshift-storage.
# It would be needed when `delete_openshift_storage` is set to false.
disk_file_size: 20G
# Whether or not to create a sparse file
disk_file_sparsed: false
# Name of the volume group used by the openshift-storage to deploy topolvm.
# Default value for Microshift is `rhel`.
vg_name: rhel
#######################################
### Others ###
#######################################
# Configure the DNSMasq service to redirect service addresses to proper
# ip address.
configure_dnsmasq: true
# Set the ip address of remote Microshift machine to configure local
# DNSMasq service to redirect DNS queries for {{ fqdn }} domain
# to the Microshift machine. If the value is empty, it will configure
# first IP address of loadbalancer or Openshift Router.
microshift_frontend_address: ""
# Additional addresses that should be resolved by the DNSMasq and redirected
# to microshift_frontend_address (if configure). Otherwise redirect to
# loadbalancer or Openshift router.
microshift_additional_addresses: []
# Set the cloud provider DNS IP addresses. Replace below DNS servers with your
# Cloud provider DNS addresses.
cloudprovider_dns: []
# Set the DNS ip addresses for public DNS.
public_dns:
- 8.8.8.8
- 9.9.9.9
- 1.1.1.1
# Set the cri-o registry policy to pull images even from untrasted registries.
overwrite_container_policy: false
# Experimental features: you should not use it on the production!
# That feature might be useful for the CI, especially when the disk is slow.
etcd_on_ramdisk: false
# Path for the etcd directory used by the microshift-etcd service.
ramdisk_path: /var/lib/microshift/etcd
# Ramdisk size for etcd service
ramdisk_size: 512m