Don't touch non-default config files

40 views
Skip to first unread message

Jones

unread,
Aug 29, 2012, 9:10:48 AM8/29/12
to puppet...@googlegroups.com
Hi folks,

I'd like to say puppet. 
If the standart config file, delivered by dpkg, is changed and has also not the same md5sum as
the file I want to deliver with puppet. Do nothing :)

OK guys.. that was not my idea! I say everything has to be changed in puppet and not by hand.

Or Maybe there is a way to use facter for it?!

Thank's for your recommendations!

Jonesi

Davide Ferrari

unread,
Aug 29, 2012, 10:10:42 AM8/29/12
to puppet...@googlegroups.com
On 29/08/12 15:10, Jones wrote:
>
> I'd like to say puppet.
> If the standart config file, delivered by dpkg, is changed and has
> also not the same md5sum as
> the file I want to deliver with puppet. Do nothing :)
>
> OK guys.. that was not my idea! I say everything has to be changed in
> puppet and not by hand.

Just for the sake of curiosity: why don't you just prepare your puppet
conf to be like the default conf for that package? It's easier and saner
IMO.

--
Davide Ferrari
Senior System Administrator
Trovit Search http://www.trovit.com

Johannes Reichhardt

unread,
Aug 29, 2012, 10:57:06 AM8/29/12
to puppet...@googlegroups.com

If it's default it should use the puppet version... but if someone changed it puppet should do nothing.
That's the little issue :/

> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> 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.
>

Davide Ferrari

unread,
Aug 29, 2012, 11:03:26 AM8/29/12
to puppet...@googlegroups.com
On 29/08/12 16:57, Johannes Reichhardt wrote:
> If it's default it should use the puppet version... but if someone
> changed it puppet should do nothing.
That's the wrong approach. if you are managing a resource through
puppet, then ALL changes go through puppet, otherwise it's a mess, and
then puppet it's not what you want. You probably want some system deploy
application like FAI and then manual resource management.

jcbollinger

unread,
Aug 29, 2012, 3:06:15 PM8/29/12
to puppet...@googlegroups.com, rockabi...@gmail.com


On Wednesday, August 29, 2012 9:57:13 AM UTC-5, Jones wrote:

If it's default it should use the puppet version... but if someone changed it puppet should do nothing.
That's the little issue :/

It sounds like you want Puppet to manage the file content under some circumstances, but not under others.  If that's so, then how do you expect Puppet to discern which case applies?  How would you determine that manually?


John

Reply all
Reply to author
Forward
0 new messages