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

2016-01-06 Thread jcbollinger
On Tuesday, January 5, 2016 at 11:01:57 AM UTC-6, linux script wrote: > > John, > > Sorry for the typos in the code.for some reason I had to type the code > instead of copying.I thought it would give a general idea about the format > in which I wanted to write it. > > Secondly, I used define i

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

2016-01-05 Thread linux script
John, Sorry for the typos in the code.for some reason I had to type the code instead of copying.I thought it would give a general idea about the format in which I wanted to write it. Secondly, I used define inside a class because I could not see a way to call the define inside another class whic

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

2016-01-05 Thread jcbollinger
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-existent defined type named "profile::config::params". > However, I wa

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

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

2016-01-04 Thread jcbollinger
On Tuesday, December 29, 2015 at 9:30:08 AM UTC-6, linux@gmail.com wrote: > > 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.