Re: [Puppet Users] puppet user context

2014-01-29 Thread Robert Turk
Am 29.01.14 10:05, schrieb José Luis Ledesma: Could you try adding the "full path" Thanks for your help. Using "${wallpaper_plist::plist_name}" does the trick. :) Robert -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from th

Re: [Puppet Users] puppet user context

2014-01-29 Thread José Luis Ledesma
I think so, but I'm not an expert . Could you try adding the "full path" $classname::plist_name? Regards El 29/01/2014 09:56, "Robert Turk" escribió: > > Am 28.01.14 18:34, schrieb Jose Luis Ledesma: > >> Could be that the ${plist_name} is undef inside the define? You could try >> adding a not

Re: [Puppet Users] puppet user context

2014-01-29 Thread Robert Turk
Am 28.01.14 18:34, schrieb Jose Luis Ledesma: Could be that the ${plist_name} is undef inside the define? You could try adding a notify inside the define to check which value it has. If I use a notify inside the defined resource I get a duplicate declaration error, so I chnaged the code to use

Re: [Puppet Users] puppet user context

2014-01-28 Thread Jose Luis Ledesma
Could be that the ${plist_name} is undef inside the define? You could try adding a notify inside the define to check which value it has. Regards, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] puppet user context

2014-01-28 Thread Robert Turk
Am 20.01.14 09:02, schrieb Robert Turk: You can get list of directories under /Users from facter and then build an array out of it and use this in your manifest. I tested your solution and here is what I have done: I created a custom fact which returns a list of directories under /Users: fact

Re: [Puppet Users] puppet user context

2014-01-20 Thread Robert Turk
Am 17.01.14 11:43, schrieb Andrey Kozichev: You can get list of directories under /Users from facter and then build an array out of it and use this in your manifest. Thanks for your help. I will try this... Robert -- You received this message because you are subscribed to the Google Groups "P

Re: [Puppet Users] puppet user context

2014-01-17 Thread Andrey Kozichev
You can get list of directories under /Users from facter and then build an array out of it and use this in your manifest. On 17 Jan 2014 09:15, "Robert Turk" wrote: > > Am 17.01.14 09:17, schrieb Andrey Kozichev: > >> Not sure, what is your task. >> Where are you getting users from? Is it everyon

Re: [Puppet Users] puppet user context

2014-01-17 Thread Robert Turk
Am 17.01.14 09:17, schrieb Andrey Kozichev: Not sure, what is your task. Where are you getting users from? Is it everyone or do you have defined list? I just want to put some plist files in the user library to provide some setings. It is for every user, so I could maybe check the "/Users" fo

Re: [Puppet Users] puppet user context

2014-01-17 Thread Andrey Kozichev
Not sure, what is your task. Where are you getting users from? Is it everyone or do you have defined list? Andrey On 17 Jan 2014 07:39, "Robert Turk" wrote: > > Am 16.01.14 13:50, schrieb Andrey Kozichev: > >> Do you need to run this only for logged in users? >> > No not really... You suggest

Re: [Puppet Users] puppet user context

2014-01-16 Thread Robert Turk
Am 16.01.14 13:50, schrieb Andrey Kozichev: Do you need to run this only for logged in users? No not really... You suggest I could do something like checking which users exist on the machine and then run it for these users ignoring if they are logged in or not? You can use facter fact to retu

Re: [Puppet Users] puppet user context

2014-01-16 Thread Andrey Kozichev
Do you need to run this only for logged in users? You can use facter fact to return logged in users and use it in your manifest. Andrey On 16 January 2014 07:12, Robert Turk wrote: > Good morning, > > I have a question concerning puppet and modifying user data. I am on Mac > OS X 10.8.5 with p

[Puppet Users] puppet user context

2014-01-16 Thread Robert Turk
Good morning, I have a question concerning puppet and modifying user data. I am on Mac OS X 10.8.5 with puppet 3.4.2. I would like to run a manifest with the following content: file { "/Users/${id}/Desktop/testfile": ensure => file, } file { "/usr/testfile": ensure => file, }