Re: [Puppet Users] exec check for directory

2016-01-05 Thread linux script
Thank you for the response.I am using puppet 2.7 and for me puppet is able to place the file which I am asking to. But it gives a lot of errors for the users which do not exist as it will not be able to place the file for that user and the puppet error log is filled up due to this. Hence, I want so

Re: [Puppet Users] exec check for directory

2016-01-05 Thread Dirk Heinrichs
Am 05.01.2016 um 13:47 schrieb linux.shel...@gmail.com: > Exactly, that is what I am trying to do. .bashrc should be created > only if the user exist and it should not throw errors that the file > could not be created for the users that does not exist. You could setup a fact array (named "users")

Re: [Puppet Users] exec check for directory

2016-01-05 Thread linux . shell29
Exactly, that is what I am trying to do. .bashrc should be created only if the user exist and it should not throw errors that the file could not be created for the users that does not exist. On Tuesday, January 5, 2016 at 6:00:03 PM UTC+5:30, Lowe Schmidt wrote: > > You will always create the fi

Re: [Puppet Users] exec check for directory

2016-01-05 Thread Lowe Schmidt
You will always create the file regardless of the before=>[] block, before just makes sure to realise what is referenced in the before block and then do what is in the file block. What are you trying to accomplish? Putting a .bashrc in place if a user exist? -- Lowe Schmidt | +46 723 867 157