You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

526 lines
20 KiB

6 years ago
6 years ago
  1. ---
  2. # Use proxycommand if bastion host is in group all
  3. # This change obseletes editing ansible.cfg file depending on bastion existence
  4. ansible_ssh_common_args: "{% if 'bastion' in groups['all'] %} -o ProxyCommand='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -W %h:%p {{ hostvars['bastion']['ansible_user'] }}@{{ hostvars['bastion']['ansible_host'] }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %} ' {% endif %}"
  5. kube_api_anonymous_auth: true
  6. # Default value, but will be set to true automatically if detected
  7. is_atomic: false
  8. # optional disable the swap
  9. disable_swap: true
  10. ## Change this to use another Kubernetes version, e.g. a current beta release
  11. kube_version: v1.16.3
  12. ## The minimum version working
  13. kube_version_min_required: v1.15.0
  14. ## Kube Proxy mode One of ['iptables','ipvs']
  15. kube_proxy_mode: ipvs
  16. ## Delete kube-proxy daemonset if kube_proxy_remove set, e.g. kube_network_plugin providing proxy services
  17. kube_proxy_remove: "{{ (kube_network_plugin == 'kube-router') and (kube_router_run_service_proxy is defined and kube_router_run_service_proxy)| bool }}"
  18. # A string slice of values which specify the addresses to use for NodePorts.
  19. # Values may be valid IP blocks (e.g. 1.2.3.0/24, 1.2.3.4/32).
  20. # The default empty string slice ([]) means to use all local addresses.
  21. # kube_proxy_nodeport_addresses_cidr is retained for legacy config
  22. kube_proxy_nodeport_addresses: >-
  23. {%- if kube_proxy_nodeport_addresses_cidr is defined -%}
  24. [{{ kube_proxy_nodeport_addresses_cidr }}]
  25. {%- else -%}
  26. []
  27. {%- endif -%}
  28. # Set to true to allow pre-checks to fail and continue deployment
  29. ignore_assert_errors: false
  30. # nginx-proxy configure
  31. nginx_config_dir: "/etc/nginx"
  32. # haproxy configure
  33. haproxy_config_dir: "/etc/haproxy"
  34. # Directory where the binaries will be installed
  35. bin_dir: /usr/local/bin
  36. docker_bin_dir: /usr/bin
  37. containerd_bin_dir: /usr/bin
  38. etcd_data_dir: /var/lib/etcd
  39. # Where the binaries will be downloaded.
  40. # Note: ensure that you've enough disk space (about 1G)
  41. local_release_dir: "/tmp/releases"
  42. # Random shifts for retrying failed ops like pushing/downloading
  43. retry_stagger: 5
  44. # Install epel repo on Centos/RHEL
  45. epel_enabled: false
  46. # DNS configuration.
  47. # Kubernetes cluster name, also will be used as DNS domain
  48. cluster_name: cluster.local
  49. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  50. ndots: 2
  51. # Can be coredns, coredns_dual, manual, or none
  52. dns_mode: coredns
  53. # Enable nodelocal dns cache
  54. enable_nodelocaldns: true
  55. nodelocaldns_ip: 169.254.25.10
  56. nodelocaldns_health_port: 9254
  57. # Should be set to a cluster IP if using a custom cluster DNS
  58. manual_dns_server: ""
  59. # Can be docker_dns, host_resolvconf or none
  60. resolvconf_mode: docker_dns
  61. # Deploy netchecker app to verify DNS resolve as an HTTP service
  62. deploy_netchecker: false
  63. # Ip address of the kubernetes DNS service (called skydns for historical reasons)
  64. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  65. skydns_server_secondary: "{{ kube_service_addresses|ipaddr('net')|ipaddr(4)|ipaddr('address') }}"
  66. dns_domain: "{{ cluster_name }}"
  67. kube_dns_servers:
  68. coredns: ["{{skydns_server}}"]
  69. coredns_dual: "{{[skydns_server] + [ skydns_server_secondary ]}}"
  70. manual: ["{{manual_dns_server}}"]
  71. dns_servers: "{{kube_dns_servers[dns_mode]}}"
  72. enable_coredns_k8s_external: false
  73. coredns_k8s_external_zone: k8s_external.local
  74. enable_coredns_k8s_endpoint_pod_names: false
  75. # Kubernetes configuration dirs and system namespace.
  76. # Those are where all the additional config stuff goes
  77. # the kubernetes normally puts in /srv/kubernetes.
  78. # This puts them in a sane location and namespace.
  79. # Editing those values will almost surely break something.
  80. kube_config_dir: /etc/kubernetes
  81. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  82. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  83. # This is where all the cert scripts and certs will be located
  84. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  85. # compatibility directory for kubeadm
  86. kube_cert_compat_dir: "/etc/kubernetes/pki"
  87. # This is where all of the bearer tokens will be stored
  88. kube_token_dir: "{{ kube_config_dir }}/tokens"
  89. # This is where to save basic auth file
  90. kube_users_dir: "{{ kube_config_dir }}/users"
  91. # This is the group that the cert creation scripts chgrp the
  92. # cert files to. Not really changeable...
  93. kube_cert_group: kube-cert
  94. # Cluster Loglevel configuration
  95. kube_log_level: 2
  96. # Users to create for basic auth in Kubernetes API via HTTP
  97. kube_api_pwd: "changeme"
  98. kube_users:
  99. kube:
  100. pass: "{{kube_api_pwd}}"
  101. role: admin
  102. # Choose network plugin (cilium, calico, weave or flannel)
  103. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  104. kube_network_plugin: calico
  105. kube_network_plugin_multus: false
  106. # Determines if calico-rr group exists
  107. peer_with_calico_rr: "{{ 'calico-rr' in groups and groups['calico-rr']|length > 0 }}"
  108. # Set to false to disable calico-upgrade
  109. calico_upgrade_enabled: true
  110. # Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
  111. calico_datastore: "etcd"
  112. # Kubernetes internal network for services, unused block of space.
  113. kube_service_addresses: 10.233.0.0/18
  114. # internal network. When used, it will assign IP
  115. # addresses from this range to individual pods.
  116. # This network must be unused in your network infrastructure!
  117. kube_pods_subnet: 10.233.64.0/18
  118. # internal network node size allocation (optional). This is the size allocated
  119. # to each node on your network. With these defaults you should have
  120. # room for 64 nodes with 254 pods per node.
  121. # Example: Up to 256 nodes, 100 pods per node (/16 network):
  122. # - kube_service_addresses: 10.233.0.0/17
  123. # - kube_pods_subnet: 10.233.128.0/17
  124. # - kube_network_node_prefix: 25
  125. # Example: Up to 4096 nodes, 100 pods per node (/12 network):
  126. # - kube_service_addresses: 10.192.0.0/13
  127. # - kube_pods_subnet: 10.200.0.0/13
  128. # - kube_network_node_prefix: 25
  129. kube_network_node_prefix: 24
  130. # The virtual cluster IP, real host IPs and ports the API Server will be
  131. # listening on.
  132. # NOTE: loadbalancer_apiserver_localhost somewhat alters the final API enpdoint
  133. # access IP value (automatically evaluated below)
  134. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  135. kube_apiserver_bind_address: 0.0.0.0
  136. # https
  137. kube_apiserver_port: 6443
  138. # http
  139. kube_apiserver_insecure_bind_address: 127.0.0.1
  140. kube_apiserver_insecure_port: 0
  141. # If non-empty, will use this string as identification instead of the actual hostname
  142. kube_override_hostname: >-
  143. {%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%}
  144. {%- else -%}
  145. {{ inventory_hostname }}
  146. {%- endif -%}
  147. # dynamic kubelet configuration
  148. dynamic_kubelet_configuration: false
  149. # define kubelet config dir for dynamic kubelet
  150. # kubelet_config_dir:
  151. default_kubelet_config_dir: "{{ kube_config_dir }}/dynamic_kubelet_dir"
  152. dynamic_kubelet_configuration_dir: "{{ kubelet_config_dir | default(default_kubelet_config_dir) }}"
  153. # Aggregator
  154. kube_api_aggregator_routing: false
  155. # Profiling
  156. kube_profiling: false
  157. # Container for runtime
  158. container_manager: docker
  159. # CRI socket path
  160. cri_socket: >-
  161. {%- if container_manager == 'crio' -%}
  162. /var/run/crio/crio.sock
  163. {%- elif container_manager == 'containerd' -%}
  164. /var/run/containerd/containerd.sock
  165. {%- else -%}
  166. /var/run/dockershim.sock
  167. {%- endif -%}
  168. ## Uncomment this if you want to force overlay/overlay2 as docker storage driver
  169. ## Please note that overlay2 is only supported on newer kernels
  170. # docker_storage_options: -s overlay2
  171. ## Enable docker_container_storage_setup, it will configure devicemapper driver on Centos7 or RedHat7.
  172. docker_container_storage_setup: false
  173. ## It must be define a disk path for docker_container_storage_setup_devs.
  174. ## Otherwise docker-storage-setup will be executed incorrectly.
  175. # docker_container_storage_setup_devs: /dev/vdb
  176. ## Uncomment this if you have more than 3 nameservers, then we'll only use the first 3.
  177. docker_dns_servers_strict: false
  178. # Path used to store Docker data
  179. docker_daemon_graph: "/var/lib/docker"
  180. ## Used to set docker daemon iptables options to true
  181. docker_iptables_enabled: "false"
  182. # Docker log options
  183. # Rotate container stderr/stdout logs at 50m and keep last 5
  184. docker_log_opts: "--log-opt max-size=50m --log-opt max-file=5"
  185. ## A list of insecure docker registries (IP address or domain name), for example
  186. ## to allow insecure-registry access to self-hosted registries. Empty by default.
  187. # docker_insecure_registries:
  188. # - mirror.registry.io
  189. # - 172.19.16.11
  190. docker_insecure_registries: []
  191. ## A list of additional registry mirrors, for example China registry mirror. Empty by default.
  192. # docker_registry_mirrors:
  193. # - https://registry.docker-cn.com
  194. # - https://mirror.aliyuncs.com
  195. docker_registry_mirrors: []
  196. ## If non-empty will override default system MounFlags value.
  197. ## This option takes a mount propagation flag: shared, slave
  198. ## or private, which control whether mounts in the file system
  199. ## namespace set up for docker will receive or propagate mounts
  200. ## and unmounts. Leave empty for system default
  201. # docker_mount_flags:
  202. ## A string of extra options to pass to the docker daemon.
  203. # docker_options: ""
  204. ## A list of plugins to install using 'docker plugin install --grant-all-permissions'
  205. ## Empty by default so no plugins will be installed.
  206. docker_plugins: []
  207. # Experimental kubeadm etcd deployment mode. Available only for new deployment
  208. etcd_kubeadm_enabled: false
  209. # Containerd options
  210. containerd_use_systemd_cgroup: false
  211. # Settings for containerized control plane (etcd/kubelet/secrets)
  212. # deployment type for legacy etcd mode
  213. etcd_deployment_type: docker
  214. cert_management: script
  215. helm_deployment_type: host
  216. # Make a copy of kubeconfig on the host that runs Ansible in {{ inventory_dir }}/artifacts
  217. kubeconfig_localhost: false
  218. # Download kubectl onto the host that runs Ansible in {{ bin_dir }}
  219. kubectl_localhost: false
  220. # Define credentials_dir here so it can be overridden
  221. credentials_dir: "{{ inventory_dir }}/credentials"
  222. # K8s image pull policy (imagePullPolicy)
  223. k8s_image_pull_policy: IfNotPresent
  224. # Kubernetes dashboard
  225. # RBAC required. see docs/getting-started.md for access details.
  226. dashboard_enabled: true
  227. # Addons which can be enabled
  228. helm_enabled: false
  229. registry_enabled: false
  230. metrics_server_enabled: false
  231. enable_network_policy: true
  232. local_volume_provisioner_enabled: "{{ local_volumes_enabled | default('false') }}"
  233. local_volume_provisioner_directory_mode: 0700
  234. cinder_csi_enabled: false
  235. persistent_volumes_enabled: false
  236. cephfs_provisioner_enabled: false
  237. rbd_provisioner_enabled: false
  238. ingress_nginx_enabled: false
  239. cert_manager_enabled: false
  240. expand_persistent_volumes: false
  241. ## When OpenStack is used, Cinder version can be explicitly specified if autodetection fails (Fixed in 1.9: https://github.com/kubernetes/kubernetes/issues/50461)
  242. # openstack_blockstorage_version: "v1/v2/auto (default)"
  243. openstack_blockstorage_ignore_volume_az: "{{ volume_cross_zone_attachment | default('false') }}"
  244. ## When OpenStack is used, if LBaaSv2 is available you can enable it with the following 2 variables.
  245. openstack_lbaas_enabled: false
  246. # openstack_lbaas_subnet_id: "Neutron subnet ID (not network ID) to create LBaaS VIP"
  247. ## To enable automatic floating ip provisioning, specify a subnet.
  248. # openstack_lbaas_floating_network_id: "Neutron network ID (not subnet ID) to get floating IP from, disabled by default"
  249. ## Override default LBaaS behavior
  250. # openstack_lbaas_use_octavia: False
  251. # openstack_lbaas_method: "ROUND_ROBIN"
  252. # openstack_lbaas_provider: "haproxy"
  253. openstack_lbaas_create_monitor: "yes"
  254. openstack_lbaas_monitor_delay: "1m"
  255. openstack_lbaas_monitor_timeout: "30s"
  256. openstack_lbaas_monitor_max_retries: "3"
  257. openstack_cacert: "{{ lookup('env','OS_CACERT') }}"
  258. ## List of authorization modes that must be configured for
  259. ## the k8s cluster. Only 'AlwaysAllow', 'AlwaysDeny', 'Node' and
  260. ## 'RBAC' modes are tested. Order is important.
  261. authorization_modes: ['Node', 'RBAC']
  262. rbac_enabled: "{{ 'RBAC' in authorization_modes }}"
  263. # When enabled, API bearer tokens (including service account tokens) can be used to authenticate to the kubelet’s HTTPS endpoint
  264. kubelet_authentication_token_webhook: true
  265. # When enabled, access to the kubelet API requires authorization by delegation to the API server
  266. kubelet_authorization_mode_webhook: true
  267. # kubelet uses certificates for authenticating to the Kubernetes API
  268. # Automatically generate a new key and request a new certificate from the Kubernetes API as the current certificate approaches expiration
  269. kubelet_rotate_certificates: true
  270. ## v1.11 feature
  271. feature_gate_v1_11:
  272. - "PersistentLocalVolumes={{ local_volume_provisioner_enabled | string }}"
  273. - "VolumeScheduling={{ local_volume_provisioner_enabled | string }}"
  274. - "MountPropagation={{ local_volume_provisioner_enabled | string }}"
  275. ## v1.12 feature
  276. feature_gate_v1_12: []
  277. ## List of key=value pairs that describe feature gates for
  278. ## the k8s cluster.
  279. kube_feature_gates: |-
  280. {{ feature_gate_v1_12 }}
  281. # Enable kubeadm experimental control plane
  282. kubeadm_control_plane: false
  283. # Local volume provisioner storage classes
  284. # Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
  285. # see https://github.com/ansible/ansible/issues/17324
  286. local_volume_provisioner_storage_classes: |
  287. {
  288. "{{ local_volume_provisioner_storage_class | default('local-storage') }}": {
  289. "host_dir": "{{ local_volume_provisioner_base_dir | default ('/mnt/disks') }}",
  290. "mount_dir": "{{ local_volume_provisioner_mount_dir | default('/mnt/disks') }}",
  291. "volume_mode": "Filesystem",
  292. "fs_type": "ext4"
  293. }
  294. }
  295. # weave's network password for encryption
  296. # if null then no network encryption
  297. # you can use --extra-vars to pass the password in command line
  298. weave_password: EnterPasswordHere
  299. # Weave uses consensus mode by default
  300. # Enabling seed mode allow to dynamically add or remove hosts
  301. # https://www.weave.works/docs/net/latest/ipam/
  302. weave_mode_seed: false
  303. # This two variable are automatically changed by the weave's role in group_vars/k8s-cluster.yml.
  304. # Do not manually change these values
  305. weave_seed: uninitialized
  306. weave_peers: uninitialized
  307. # Contiv L3 BGP Mode
  308. contiv_peer_with_uplink_leaf: false
  309. contiv_global_as: "65002"
  310. contiv_global_neighbor_as: "500"
  311. # Set 127.0.0.1 as fallback IP if we do not have host facts for host
  312. fallback_ips_base: |
  313. ---
  314. {% for item in groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([])|unique %}
  315. {{ item }}: "{{ hostvars[item].get('ansible_default_ipv4', {'address': '127.0.0.1'})['address'] }}"
  316. {% endfor %}
  317. fallback_ips: "{{ fallback_ips_base | from_yaml }}"
  318. ## Set no_proxy to all assigned cluster IPs and hostnames
  319. no_proxy: >-
  320. {%- if http_proxy is defined or https_proxy is defined %}
  321. {%- if loadbalancer_apiserver is defined -%}
  322. {{ apiserver_loadbalancer_domain_name| default('') }},
  323. {{ loadbalancer_apiserver.address | default('') }},
  324. {%- endif -%}
  325. {%- for item in (groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%}
  326. {{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(fallback_ips[item])) }},
  327. {%- if item != hostvars[item].get('ansible_hostname', '') -%}
  328. {{ hostvars[item]['ansible_hostname'] }},
  329. {{ hostvars[item]['ansible_hostname'] }}.{{ dns_domain }},
  330. {%- endif -%}
  331. {{ item }},{{ item }}.{{ dns_domain }},
  332. {%- endfor -%}
  333. {%- if additional_no_proxy is defined -%}
  334. {{ additional_no_proxy }},
  335. {%- endif -%}
  336. 127.0.0.1,localhost
  337. {%- endif %}
  338. proxy_env:
  339. http_proxy: "{{ http_proxy| default ('') }}"
  340. HTTP_PROXY: "{{ http_proxy| default ('') }}"
  341. https_proxy: "{{ https_proxy| default ('') }}"
  342. HTTPS_PROXY: "{{ https_proxy| default ('') }}"
  343. no_proxy: "{{ no_proxy| default ('') }}"
  344. NO_PROXY: "{{ no_proxy| default ('') }}"
  345. ssl_ca_dirs: >-
  346. [
  347. {% if ansible_os_family in ['CoreOS', 'Container Linux by CoreOS'] -%}
  348. '/usr/share/ca-certificates',
  349. {% elif ansible_os_family == 'RedHat' -%}
  350. '/etc/pki/tls',
  351. '/etc/pki/ca-trust',
  352. {% elif ansible_os_family == 'Debian' -%}
  353. '/usr/share/ca-certificates',
  354. {% endif -%}
  355. ]
  356. # Vars for pointing to kubernetes api endpoints
  357. is_kube_master: "{{ inventory_hostname in groups['kube-master'] }}"
  358. kube_apiserver_count: "{{ groups['kube-master'] | length }}"
  359. kube_apiserver_address: "{{ ip | default(fallback_ips[inventory_hostname]) }}"
  360. kube_apiserver_access_address: "{{ access_ip | default(kube_apiserver_address) }}"
  361. first_kube_master: "{{ hostvars[groups['kube-master'][0]]['access_ip'] | default(hostvars[groups['kube-master'][0]]['ip'] | default(fallback_ips[groups['kube-master'][0]])) }}"
  362. loadbalancer_apiserver_localhost: "{{ loadbalancer_apiserver is not defined }}"
  363. loadbalancer_apiserver_type: "nginx"
  364. # applied if only external loadbalancer_apiserver is defined, otherwise ignored
  365. apiserver_loadbalancer_domain_name: "lb-apiserver.kubernetes.local"
  366. kube_apiserver_endpoint: |-
  367. {% if loadbalancer_apiserver is defined and loadbalancer_apiserver.port is defined -%}
  368. https://{{ apiserver_loadbalancer_domain_name|default('lb-apiserver.kubernetes.local') }}:{{ loadbalancer_apiserver.port|default(kube_apiserver_port) }}
  369. {%- elif not is_kube_master and loadbalancer_apiserver_localhost -%}
  370. https://localhost:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
  371. {%- elif is_kube_master -%}
  372. https://{{ kube_apiserver_bind_address | regex_replace('0\.0\.0\.0','127.0.0.1') }}:{{ kube_apiserver_port }}
  373. {%- else -%}
  374. https://{{ first_kube_master }}:{{ kube_apiserver_port }}
  375. {%- endif %}
  376. kube_apiserver_insecure_endpoint: >-
  377. http://{{ kube_apiserver_insecure_bind_address | regex_replace('0\.0\.0\.0','127.0.0.1') }}:{{ kube_apiserver_insecure_port }}
  378. kube_apiserver_client_cert: "{{ kube_cert_dir }}/ca.crt"
  379. kube_apiserver_client_key: "{{ kube_cert_dir }}/ca.key"
  380. # Set to true to deploy etcd-events cluster
  381. etcd_events_cluster_enabled: false
  382. # Vars for pointing to etcd endpoints
  383. is_etcd_master: "{{ inventory_hostname in groups['etcd'] }}"
  384. etcd_address: "{{ ip | default(fallback_ips[inventory_hostname]) }}"
  385. etcd_access_address: "{{ access_ip | default(etcd_address) }}"
  386. etcd_events_access_address: "{{ access_ip | default(etcd_address) }}"
  387. etcd_peer_url: "https://{{ etcd_access_address }}:2380"
  388. etcd_client_url: "https://{{ etcd_access_address }}:2379"
  389. etcd_events_peer_url: "https://{{ etcd_events_access_address }}:2382"
  390. etcd_events_client_url: "https://{{ etcd_events_access_address }}:2381"
  391. etcd_access_addresses: |-
  392. {% for item in groups['etcd'] -%}
  393. https://{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(fallback_ips[item])) }}:2379{% if not loop.last %},{% endif %}
  394. {%- endfor %}
  395. etcd_events_access_addresses_list: |-
  396. [
  397. {% for item in groups['etcd'] -%}
  398. 'https://{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(fallback_ips[item])) }}:2381'{% if not loop.last %},{% endif %}
  399. {%- endfor %}
  400. ]
  401. etcd_events_access_addresses: "{{etcd_events_access_addresses_list | join(',')}}"
  402. etcd_events_access_addresses_semicolon: "{{etcd_events_access_addresses_list | join(';')}}"
  403. # user should set etcd_member_name in inventory/mycluster/hosts.ini
  404. etcd_member_name: |-
  405. {% for host in groups['etcd'] %}
  406. {% if inventory_hostname == host %}{{ hostvars[host].etcd_member_name | default("etcd" + loop.index|string) }}{% endif %}
  407. {% endfor %}
  408. etcd_peer_addresses: |-
  409. {% for item in groups['etcd'] -%}
  410. {{ hostvars[item].etcd_member_name | default("etcd" + loop.index|string) }}=https://{{ hostvars[item].access_ip | default(hostvars[item].ip | default(fallback_ips[item])) }}:2380{% if not loop.last %},{% endif %}
  411. {%- endfor %}
  412. etcd_events_peer_addresses: |-
  413. {% for item in groups['etcd'] -%}
  414. {{ hostvars[item].etcd_member_name | default("etcd" + loop.index|string) }}-events=https://{{ hostvars[item].access_ip | default(hostvars[item].ip | default(fallback_ips[item])) }}:2382{% if not loop.last %},{% endif %}
  415. {%- endfor %}
  416. podsecuritypolicy_enabled: false
  417. etcd_heartbeat_interval: "250"
  418. etcd_election_timeout: "5000"
  419. etcd_snapshot_count: "10000"
  420. certificates_key_size: 2048
  421. certificates_duration: 36500
  422. pip_extra_args: |-
  423. {%- set pip_extra_args_list = [] -%}
  424. {%- if pyrepo_index is defined -%}
  425. {%- set DO = pip_extra_args_list.append('--index-url %s' | format(pyrepo_index)) -%}
  426. {%- if pyrepo_cert is defined -%}
  427. {%- set DO = pip_extra_args_list.append('--cert %s' | format(pyrepo_cert)) -%}
  428. {%- endif -%}
  429. {%- endif -%}
  430. {{ pip_extra_args_list|join(' ') }}
  431. etcd_config_dir: /etc/ssl/etcd
  432. etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
  433. typha_enabled: false