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

Commit

Permalink
disables auto updates for flatcar
Browse files Browse the repository at this point in the history
  • Loading branch information
brandong954 committed Sep 22, 2020
1 parent 4fc841f commit e74ef96
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
11 changes: 4 additions & 7 deletions builtin/files/userdata/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ coreos:
reboot-strategy: "off"
units:
{{if .DisableContainerLinuxAutomaticUpdates}}
- name: disable-automatic-update.service
command: start
content: |
[Unit]
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
[Service]
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'
- name: update-engine.service
mask: true
- name: locksmithd.service
mask: true
{{end}}

- name: handle-disable-request.service
Expand Down
11 changes: 4 additions & 7 deletions builtin/files/userdata/cloud-config-etcd
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@ coreos:
reboot-strategy: "off"
units:
{{if .DisableContainerLinuxAutomaticUpdates}}
- name: disable-automatic-update.service
command: start
content: |
[Unit]
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
[Service]
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'
- name: update-engine.service
mask: true
- name: locksmithd.service
mask: true
{{end}}
{{- range $u := .Etcd.CustomSystemdUnits}}
- name: {{$u.Name}}
Expand Down
11 changes: 4 additions & 7 deletions builtin/files/userdata/cloud-config-worker
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@ coreos:
reboot-strategy: "off"
units:
{{if .DisableContainerLinuxAutomaticUpdates}}
- name: disable-automatic-update.service
command: start
content: |
[Unit]
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
[Service]
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'
- name: update-engine.service
mask: true
- name: locksmithd.service
mask: true
{{end}}
{{- range $u := .CustomSystemdUnits}}
- name: {{$u.Name}}
Expand Down

0 comments on commit e74ef96

Please sign in to comment.