Hi Cesar,

I know of no way to synchronise catalog compilation.

I would try to update all nodes in a first step. When all agents are updated, I 
would change the IP of the puppetmaster.
If the nodes do not reconnect to the master automatically, because for example 
the agent stops working, I would add a cron job to the agents to keep them 
trying. This would require a third step to remove the cron job afterwards…

Regards
Jochen

> Am 30.04.2015 um 17:30 schrieb César <xcum...@gmail.com>:
> 
> Hi all,
> 
> I am facing this problem now and I cannot seem to find any tips on what would 
> be the best option, so hopefully I can get some advice here!
> The scenario is the following: I want to change the IP of the Puppetmaster 
> node and update the hosts files -no DNS at the moment- in that node and in 
> the rest of the agents with the new IP.
> If the hosts files are updated at the same time as the IP everything is fine. 
> 
> However, some times the Puppet agent catalogs might take a big longer to 
> compile than the catalog in the Puppetmaster node, causing the following:
> 
> 1- Puppet master compiles catalog for its node
> 2- Puppet agent in the Puppetmaster node applies the catalog with the IP 
> change.
> 3- The rest of the nodes finally compile their catalogs, but the Puppetmaster 
> node has finished applying its catalog by then.
> 
> As a consequence, the nodes cannot reach the Puppetmaster any more because 
> their hosts file have the old IP.
> 
> The question would be: Is there some sort of synchronisation method for 
> catalog compilation? Can I specify any kind of ordering? I know Puppet has no 
> means to synchronise resources between nodes, so I thought this might be 
> another option.
> (I know the best answer would be "Use DNS!!!!!!!", but unfortunately that's 
> not an option at the moment).
> 
> Thanks!
> Cesar.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com 
> <mailto:puppet-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/0e57576b-d658-42dd-aada-b4a91f62a6e7%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-users/0e57576b-d658-42dd-aada-b4a91f62a6e7%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/A62F88F3-9833-43F8-BCAF-D29FFC9918E3%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to