Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit e076ef2

Browse files
authored
Merge pull request #1880 from jorge07/flatcar-disable-auto-updates
[v0.12.x] [Unmaintained branch] Disable Flatcar auto-updates
2 parents d268c5a + 67dce01 commit e076ef2

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

core/controlplane/config/templates/cloud-config-controller

+4-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@ coreos:
3838
reboot-strategy: "off"
3939
units:
4040
{{if .DisableContainerLinuxAutomaticUpdates}}
41-
- name: disable-automatic-update.service
42-
command: start
43-
content: |
44-
[Unit]
45-
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
46-
[Service]
47-
ExecStart=/usr/bin/sh -c 'for u in update-engine locksmithd; do systemctl stop $${u}.service; systemctl mask $${u}.service; systemctl disable $${u}.service; done; systemctl reset-failed'
41+
- name: update-engine.service
42+
mask: true
43+
- name: locksmithd.service
44+
mask: true
4845
{{end}}
4946

5047
- name: handle-disable-request.service

core/etcd/config/templates/cloud-config-etcd

+4-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ coreos:
4141
reboot-strategy: "off"
4242
units:
4343
{{if .DisableContainerLinuxAutomaticUpdates}}
44-
- name: disable-automatic-update.service
45-
command: start
46-
content: |
47-
[Unit]
48-
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
49-
[Service]
50-
ExecStart=/usr/bin/sh -c 'for u in update-engine locksmithd; do systemctl stop $${u}.service; systemctl mask $${u}.service; systemctl disable $${u}.service; done; systemctl reset-failed'
44+
- name: update-engine.service
45+
mask: true
46+
- name: locksmithd.service
47+
mask: true
5148
{{end}}
5249
{{- range $u := .Etcd.CustomSystemdUnits}}
5350
- name: {{$u.Name}}

core/nodepool/config/templates/cloud-config-worker

+4-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ coreos:
4040
reboot-strategy: "off"
4141
units:
4242
{{if .DisableContainerLinuxAutomaticUpdates}}
43-
- name: disable-automatic-update.service
44-
command: start
45-
content: |
46-
[Unit]
47-
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
48-
[Service]
49-
ExecStart=/usr/bin/sh -c 'for u in update-engine locksmithd; do systemctl stop $${u}.service; systemctl mask $${u}.service; systemctl disable $${u}.service; done; systemctl reset-failed'
43+
- name: update-engine.service
44+
mask: true
45+
- name: locksmithd.service
46+
mask: true
5047
{{end}}
5148
{{- range $u := .CustomSystemdUnits}}
5249
- name: {{$u.Name}}

0 commit comments

Comments
 (0)