mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 21:41:05 +02:00
coreos-base/oem-rackspace-teeth: Add pingout service
This commit is contained in:
parent
bcc54c5b45
commit
2708fd70a0
@ -8,6 +8,20 @@ coreos:
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/usr/bin/coreos-cloudinit --from-configdrive=/media/configdrive --convert-netconf=debian
|
ExecStart=/usr/bin/coreos-cloudinit --from-configdrive=/media/configdrive --convert-netconf=debian
|
||||||
|
- name: ping-out.service
|
||||||
|
runtime: yes
|
||||||
|
enable: yes
|
||||||
|
content: |
|
||||||
|
[Unit]
|
||||||
|
After=user-config.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/sh -c "ping -A -c1 $(ip route | awk '/default/ { print $3 }')"
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=user-config.target
|
||||||
- name: media-configdrive.mount
|
- name: media-configdrive.mount
|
||||||
command: start
|
command: start
|
||||||
runtime: yes
|
runtime: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user