Ask Your Question

stop overwriting my changes

asked 2013-09-18 20:08:36 -0600

stoomy gravatar image

updated 2013-09-18 21:13:51 -0600

GregLarkin gravatar image

I'd like to use puppet to deploy some files, but not change them after deployment.

I have this working:

file { '$rhelver.file':
    path    => '/usr/local/somefile.file',
    group   => '10100',
    mode    => '700',
    owner   => '10100',
    source  => "puppet:///modules/somemod/somefile.file",

But, whenever I make changes to the deployed file, puppet wipes the changes out.

I have the same problem with user deployment. If a user changes his password, puppet sees the change in /etc/shadow and "fixes it". This is definitely useful in some cases, but irritating in others.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-18 21:16:08 -0600

GregLarkin gravatar image

Add the replace => false attribute to your file resource, and you should be all set. See for further details.

edit flag offensive delete link more


Awesome, works great. Thanks!

stoomy gravatar imagestoomy ( 2013-09-18 21:55:02 -0600 )edit

Glad to hear it, and please mark my answer as correct when you have a moment - thank you!

GregLarkin gravatar imageGregLarkin ( 2013-09-18 21:58:39 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-09-18 20:08:36 -0600

Seen: 1,344 times

Last updated: Sep 18 '13