Skip to content

Commit

Permalink
Merge pull request #1747 from sinnykumari/firstboot
Browse files Browse the repository at this point in the history
Bug 1838984: [release-4.3] templates: Don't enable machine-config-daemon-host.service by default
  • Loading branch information
openshift-merge-robot authored May 29, 2020
2 parents dc885ff + 872e48c commit 2b17a50
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "machine-config-daemon-firstboot-v42.service"
enabled: true
contents: |
[Unit]
Description=Machine Config Daemon Firstboot (4.2 bootimage)
# Make sure it runs only on OSTree booted system
ConditionPathExists=/run/ostree-booted
BindsTo=ignition-firstboot-complete.service
ConditionPathExists=/etc/ignition-machine-config-encapsulated.json
# Note the opposite of this in machine-config-daemon-firstboot
ConditionPathExists=!/sysroot/.coreos-aleph-version.json
After=ignition-firstboot-complete.service
Before=kubelet.service

[Service]
# Need oneshot to delay kubelet
Type=oneshot
ExecStart=/usr/libexec/machine-config-daemon pivot

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ contents: |
ConditionPathExists=/run/ostree-booted
BindsTo=ignition-firstboot-complete.service
ConditionPathExists=/etc/ignition-machine-config-encapsulated.json
# We only want to run on 4.3 clusters and above; this came from
# https://github.com/coreos/coreos-assembler/pull/768
ConditionPathExists=/sysroot/.coreos-aleph-version.json
After=ignition-firstboot-complete.service
Before=kubelet.service

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "machine-config-daemon-host.service"
enabled: true
enabled: false
contents: |
[Unit]
Description=Machine Config Daemon Initial
Expand Down

0 comments on commit 2b17a50

Please sign in to comment.