Skip to content
Snippets Groups Projects
Commit b50b3430 authored by JohnZheng's avatar JohnZheng Committed by Chad Swenson
Browse files

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
parent 0e3518f2
No related branches found
No related tags found
No related merge requests found
...@@ -131,3 +131,6 @@ bin_dir: /usr/local/bin ...@@ -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. # The read-only port for the Kubelet to serve on with no authentication/authorization. Uncomment to enable.
#kube_read_only_port: 10255 #kube_read_only_port: 10255
# Does coreos need auto upgrade, default is true
#coreos_auto_upgrade: true
\ No newline at end of file
...@@ -4,3 +4,6 @@ pip_python_coreos_modules: ...@@ -4,3 +4,6 @@ pip_python_coreos_modules:
- six - six
override_system_hostname: true override_system_hostname: true
coreos_auto_upgrade: true
...@@ -62,3 +62,8 @@ ...@@ -62,3 +62,8 @@
with_items: "{{pip_python_coreos_modules}}" with_items: "{{pip_python_coreos_modules}}"
environment: environment:
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}" 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment