try different order of events
This commit is contained in:
@@ -19,7 +19,10 @@ storage:
|
|||||||
length_minutes = 60
|
length_minutes = 60
|
||||||
- path: /etc/issue.d/35-ssh-blocked.issue
|
- path: /etc/issue.d/35-ssh-blocked.issue
|
||||||
contents:
|
contents:
|
||||||
inline: SSH currently disabled until configuration completes
|
inline: |
|
||||||
|
|
||||||
|
SSH currently disabled until configuration completes
|
||||||
|
|
||||||
|
|
||||||
systemd:
|
systemd:
|
||||||
units:
|
units:
|
||||||
@@ -48,7 +51,7 @@ systemd:
|
|||||||
contents: |
|
contents: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Enable SSH after configuration and reboot
|
Description=Enable SSH after configuration and reboot
|
||||||
After=zincati.service
|
After=multi-user.target
|
||||||
ConditionPathExists=!/var/lib/%N.stamp
|
ConditionPathExists=!/var/lib/%N.stamp
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"path": "/etc/issue.d/35-ssh-blocked.issue",
|
"path": "/etc/issue.d/35-ssh-blocked.issue",
|
||||||
"contents": {
|
"contents": {
|
||||||
"compression": "",
|
"compression": "",
|
||||||
"source": "data:,SSH%20currently%20disabled%20until%20configuration%20completes"
|
"source": "data:,%0ASSH%20currently%20disabled%20until%20configuration%20completes%0A"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
"name": "ignition-start-config.service"
|
"name": "ignition-start-config.service"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"contents": "[Unit]\nDescription=Enable SSH after configuration and reboot\nAfter=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/systemctl enable sshd\nExecStart=/usr/bin/systemctl start sshd\nExecStart=/usr/bin/rm /etc/issue.d/35-ssh-blocked.issue\nExecStart=/usr/bin/systemctl restart getty@tty1\nExecStart=/usr/bin/touch /var/lib/%N.stamp\n\n[Install]\nWantedBy=multi-user.target\n",
|
"contents": "[Unit]\nDescription=Enable SSH after configuration and reboot\nAfter=multi-user.target\nConditionPathExists=!/var/lib/%N.stamp\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/systemctl enable sshd\nExecStart=/usr/bin/systemctl start sshd\nExecStart=/usr/bin/rm /etc/issue.d/35-ssh-blocked.issue\nExecStart=/usr/bin/systemctl restart getty@tty1\nExecStart=/usr/bin/touch /var/lib/%N.stamp\n\n[Install]\nWantedBy=multi-user.target\n",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"name": "ignition-finish-config.service"
|
"name": "ignition-finish-config.service"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user