roles/dch-storage-net: Add After device dependency

This commit adds an *after* ordering dependency on the network device
unit to the *wait-global-address@.service* template unit. Without this
dependency, the service will wait forever for a global address if the
device does not exist. With the dependency, though, if the device does
not appear within the default timeout, the wait service will never
start, causing all dependent services to fail, but allowing the boot
process to continue.
jenkins-master
Dustin 2018-07-29 10:14:00 -05:00
parent 131c872d32
commit a95937d111
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
[Unit]
Description=Wait for global address on %I
Requires=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
After=network-pre.target
Before=network-online.target

View File

@ -10,6 +10,7 @@
mode=0644
notify: reload systemd
- meta: flush_handlers
- name: ensure wait-global-address service starts at boot
service:
name=wait-global-address@{{ storage_iface }}.service