Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait until the network is back up after running 'netplan apply' #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

honzatlusty
Copy link

After running 'netplan apply', it takes a short while before the network is usable again.

root@ubuntu:~# netplan apply && for i in $(seq 1 10); do systemctl status systemd-networkd &> /dev/null; echo $?; done
3
3
3
3
3
3
0
0
0

If puppet attempts to use the network during this time (install packages), it results in a failed puppet run. One way to deal with this is to set ordering rules for all the resources outside of this module that could be affected. But I think it makes sense to assume the network is in the desired state when when puppet finishes applying the netplan class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant