varying files for puppet agents

18 views
Skip to first unread message

AAB !!

unread,
Feb 27, 2014, 1:43:34 PM2/27/14
to puppet...@googlegroups.com
HI,
How to manage files which are not static but dynamic. Different services can have files which needs different values based on their characteristics! 
Like in ssh configuration file the listening interface should be the IP of the machine (agent), in the same way how can I use hostname for some files ?
and if I have keepalived, how will I provide different priority numbers for the two different agent machines with the same file ???


Regards




zerozer...@gmail.com

unread,
Feb 27, 2014, 2:06:26 PM2/27/14
to puppet...@googlegroups.com
On Thursday, February 27, 2014 2:43:34 PM UTC+1, AAB !! wrote:
 
How to manage files which are not static but dynamic. Different services can have files which needs different values based on their characteristics! 
Like in ssh configuration file the listening interface should be the IP of the machine (agent), in the same way how can I use hostname for some files ?

You can use facts, which are sort of built-in variables, IP address and hostname among them:
 
and if I have keepalived, how will I provide different priority numbers for the two different agent machines with the same file ???

I see some keepalived modules in Puppet Forge, maybe you can look at them.

Marco
Reply all
Reply to author
Forward
0 new messages