Browse Source

Disable locksmithd on CoreOS if coreos_auto_upgrade set to false (#3088)

* Disable locksmithd on CoreOS if coreos_auto_upgrade set to false

* change when format to support multiple-condition
pull/3100/merge
JohnZheng 6 years ago
committed by Chad Swenson
parent
commit
b50b3430be
3 changed files with 11 additions and 0 deletions
  1. 3
      inventory/sample/group_vars/all.yml
  2. 3
      roles/bootstrap-os/defaults/main.yml
  3. 5
      roles/bootstrap-os/tasks/bootstrap-coreos.yml

3
inventory/sample/group_vars/all.yml

@ -131,3 +131,6 @@ bin_dir: /usr/local/bin
# The read-only port for the Kubelet to serve on with no authentication/authorization. Uncomment to enable.
#kube_read_only_port: 10255
# Does coreos need auto upgrade, default is true
#coreos_auto_upgrade: true

3
roles/bootstrap-os/defaults/main.yml

@ -4,3 +4,6 @@ pip_python_coreos_modules:
- six
override_system_hostname: true
coreos_auto_upgrade: true

5
roles/bootstrap-os/tasks/bootstrap-coreos.yml

@ -62,3 +62,8 @@
with_items: "{{pip_python_coreos_modules}}"
environment:
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
- name: Bootstrap | Disable auto-upgrade
shell: "systemctl stop locksmithd.service && systemctl mask --now locksmithd.service"
when:
- not coreos_auto_upgrade
Loading…
Cancel
Save