[Puppet Users] How to use define type or variables

2015-12-29 Thread linux . shell29
Hi, I am new to puppet and I am trying to write a module to manage user .bashrc files. I managed to place the file to the desired location with following code for 1 user because the username is hardcoded. However, I tried different ways to manage the file for 10 different users using variables

[Puppet Users] exec check for directory

2016-01-05 Thread linux . shell29
Hi, I am writing a module to place a file into a directory only if the directory exist. If the directory or source does not exist it should simply ignore without throwing an error message. However I get an error saying that the file could not be created. Can anyone please help me to find out w

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