how to make changes to the network configuration without connection errors?

25 views
Skip to first unread message

Peter Bauer

unread,
Jan 21, 2013, 2:53:43 PM1/21/13
to puppet...@googlegroups.com
hi,

i am very happy with a network configuration module so far, but there is one thing left i can not find a solution for:
if i change the network configuration e.g. from a single interface to a bonding interface using puppet (basically if-down and if-ups), the next steps in the run of the agent fail due to connection errors but then the agent seems to reconnect again during the run and is able to send the report (of course containing the errors) to the master.
Is there some way to avoid those errors (maybe by waiting for the interface to be up)?
Can somebody please elaborate more on the connection handling of the agent:
- does it keep a TCP connection and reconnect on errors only and just for the following steps?

thx,
Peter

Peter Bauer

unread,
Jan 22, 2013, 11:26:33 AM1/22/13
to puppet...@googlegroups.com
if somebody else will face the problem:

i made an exec with a bash one-liner to ping the $serverip until it works or the timeout occurrs (refreshonly => true).
Additionally i put the network configuration class in a separate stage and let it notify the class with the exec which is in the same stage.

g,
Peter

Adrien Thebo

unread,
Jan 22, 2013, 11:40:17 AM1/22/13
to puppet...@googlegroups.com
Hi Peter,



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/JT7aLD3zGlUJ.

To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
Adrien Thebo | Puppet Labs Operations

Peter Bauer

unread,
Jan 22, 2013, 12:23:41 PM1/22/13
to puppet...@googlegroups.com

Adrien Thebo

unread,
Jan 22, 2013, 12:29:31 PM1/22/13
to puppet...@googlegroups.com
Ah, got it. Handling bonded interfaces with Puppet is quite tricky, but I like your solution!


To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/-Nkog5H5N0IJ.

To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reply all
Reply to author
Forward
0 new messages