On Monday, September 1, 2014 4:28:08 AM UTC-5, Guy Meler wrote:
>
> Hey!
> I Need to swap modules dynamically on my puppet masters.
>
>

Are you talking about updating modules with newer versions, or something 
more dynamic than that?  If the latter, then there is likely a better way 
to achieve what you want.

 

> Is there a healthy way to do so?
> I'm afraid that I will swap a file during a catalog compilation and it 
> just seems wrong.
>
>

Yes, that's a concern, and it could definitely cause you grief.  Depending 
on which Puppet version you are using, you may also need to worry about 
Puppet caching previously-compiled classes and re-using them for a time 
after you switch.

 

> My thought was to stop the puppet master service every time, but it is 
> kind of messed up.
>


Routinely making large changes to your manifest set on the fly is kind of 
messed up.  I'd really like to hear more about what you're trying to 
accomplish, with a view toward suggesting a better approach.

 

> Is there any lock file or any other way I can tell a master to stop 
> processing new compilations?
>
>

The master does not have a built-in mechanism for that as far as I know, 
but you could block its port at the firewall.  You would need to keep it 
blocked until all current compilations are complete, then make your changes 
before unblocking.  Be aware that that might interfere with clients' 
ability to retrieve 'source'd File content (i.e. even after they receive 
their catalogs).


John

-- 
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/0fbbe009-e9cb-44a6-8906-11e5850e9414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to