Re: [Puppet Users] Re: ensure => file, creating directories

2016-01-13 Thread linux script
Even I faced the issue some time ago and the error is gone after quoting each and every variable with curly braces. Please check if something like below works for you. file { ${name}: On 14 Jan 2016 00:28, "Clay Stuckey" wrote: > I know this is ancient history but I just had the same thing happe

Re: [Puppet Users] Re: How to use define type or variables

2016-01-05 Thread linux script
wrote: > > > On Monday, January 4, 2016 at 10:12:48 AM UTC-6, linux script wrote: >> >> Hi, >> >> The below code works fine for me. >> > > > I don't see how that could be, as your code contains syntax errors, and it > appears to reference a non-e

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] Re: How to use define type or variables

2016-01-04 Thread linux script
Hi, The below code works fine for me. However, I want to reframe the code by using define statement in params.pp instead of config.pp. I wanted to define it in params.pp so that I can use only variables in config.pp(ex:I am using $home/$name/.bashrc as file path in config which should be somethin