Re: [Puppet Users] Re: Tidy symlinks

2014-09-22 Thread Cosmin Lehene
tidy doesn't set a flag that would be required by Fileset in order to follow symlinks (:links => :follow) so the behavior is consistent with stat (http://linux.die.net/man/2/stat) In my case I had some fun with /etc/init.d which is a symlink to /etc/rc.d/init.d I created https://tickets.puppe

[Puppet Users] Puppet 3.6.2 package gem provider unable to update r10k gem

2014-09-22 Thread treydock
I have Puppet 3.6.2 on CentOS 7 server acting as Puppetmaster. I had r10k 1.2.1 installed and I changed my ensure to 1.3.4. My other Puppetmaster running CentOS 6 had no problem with this (except for NOTICE output being printed as an error). The CentOS 7 system fails with the following: Debu

[Puppet Users] Virtual users and group gids

2014-09-22 Thread Robert Davidson
When creating users from hiera, it's simple enough to make them all virtual using create_resources and then realize them. This does leave me with a question, though. How do I make sure that the assorted groups associated with each user are created with the proper gid? I don't see any easy way t

[Puppet Users] Learn Puppet: Quest Guide, manual install of puppetlabs-apache-0.8.1.tar.gz results in 1 dependency cycle

2014-09-22 Thread Mark Evans
I'm following through the Learn Puppet Quest guide. At "The Puppet Forge" section, task 1 is to install the puppetlabs-apache module. My VM does not have access to the internet so the "puppet module install puppetlabs-apache" command fails. the guide says to untar the /usr/src/forge/puppetl

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-22 Thread aarb000
I did the following to see if it would work, and I got (for me anyway) a surprising result. It may be the source of some of my confusion and reason why I'm finding this so difficult. Note, I don't want to do this this way. I just did it as an experiment. define mac_managed_preferences ($so

Re: [Puppet Users] Syntax error

2014-09-22 Thread Denmat
Hi, Try $config_file = 'value'. You need to assign the value. https://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#case-statements Cheers Den > On 22 Sep 2014, at 11:53, David Logan wrote: > > Syntax error at '=>'; expected '}' at /etc/puppet/modules/time -- You receiv

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-22 Thread aarb000
Thanks Neil, In yours and Johns example you both have ${title} at the end of Preferences. When I tried this (after his post, I haven't tried your code yet), I ended up with a folder called Preferences/office_2011 which defeats the purpose of what I am trying to do. Am I misunderstanding that

Re: [Puppet Users] Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-22 Thread Christopher Wood
On Mon, Sep 22, 2014 at 02:04:57PM -0500, Vladimir Brik wrote: > Hello, > > I have a question about automatically cleaning configuration if the > class/define that generated it is no longer used. > > For example, I have a number of logging daemons that I would like to > be able to disable automat

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-22 Thread Neil - Puppet List
Hello I do not think that is possible or really desirable. Puppet is about desired state so you can not say the directory should both be /pathtodir ├── fileA └── fileB and /tmp should be /pathtodir ├── fileB └── fileC as the first says must not have fileC and the second says must have fileC. Tho

[Puppet Users] Re: Puppet 3.7.1 parse problems with resource overrides.

2014-09-22 Thread Tristan Smith
One more, mostly just a 'wouldn't it be nice if this were clearly handled?' Having a comma at the end of an assignment like the below appears to cause confusion; mostly at this point my gripe is that the error line is reported as the enclosing class/define/whatever instead of at the line with th

[Puppet Users] Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-22 Thread Vladimir Brik
Hello, I have a question about automatically cleaning configuration if the class/define that generated it is no longer used. For example, I have a number of logging daemons that I would like to be able to disable automatically if their definitions are removed from the node's manifest: node

[Puppet Users] Puppet 3.7.1 parse problems with resource overrides.

2014-09-22 Thread Tristan Smith
So, new behavior that I'm not sure is intentional. File['blah'] works fine, File ['blah'] is now illegal - the additional whitespace causes the below stupendously readable error on puppet parser validate. Error: Could not parse for environment production: Expression is not valid as a resource,

[Puppet Users] Adding basic user accounts via Puppet to Linux systems (minor problem)

2014-09-22 Thread Forrie
We have a need to have the same login accounts exist on several old/legacy systems internally (older systems, won't be connected to LDAP for a variety of reasons). Reading around, it seemed like a simple task to do, using the virtual users and realize functions: @user { "username":

[Puppet Users] Re: Resource ordering of Execs not working as expected (SOLVED)

2014-09-22 Thread Jake Lundberg
Hrm, well, with your help, I got this to work in the order I was expecting. I think I had a few problems here. 1. My original ordering was: File['Config'] -> Exec['stop'] -> Package['foo'] -> Exec['start'] I changed this to: File['Config'] ~> Exec['stop'] -> Package['foo'] ~> Exec['start']

[Puppet Users] Puppet Master Profiles - Crosspost from Puppet-dev

2014-09-22 Thread Britt Gresham
Hello, We are interested in collecting puppet profile data from the puppet master in the real world. This data will be used to help us find a direction to go to increase the throughput of the puppet master master. I've created a script that will create a yaml file that will have various system

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-22 Thread aarb000
Thanks John, By putting the /etc/preferences/${title} in the file line, aren't you putting a subfolder in the preferences folder on the puppet agent? I tried to follow your example and it happened to me. What I am looking to do is to have different modules writing into the base folder, in y

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread Felix Frank
On 09/22/2014 06:20 PM, Francois Lafont wrote: >> But since you bring up templates - there was that bug, yes. >> > >> > https://tickets.puppetlabs.com/browse/PUP-1220 >> > >> > It led to dynamic scoping rearing its ugly head again, when variables >> > were used in templates. Not sure if this is t

Re: [Puppet Users] Example of how to use require with hiera?

2014-09-22 Thread Daniel Johnson
> Does this actually work Nan?? It does work. At least in the latest version of puppet. > Can somebody point me to any page where this is documented? If I could find documentation for it I wouldn't have asked here. -- teknotus (Take Notice) -- You received this message because you are subscr

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread Francois Lafont
Le 22/09/2014 18:12, Felix Frank a écrit : > Aw man, that thread is way too voluminous for me to read in a spare > minute. Yes, sorry. It's a long thread but it's a finished thread I think. ;) > But since you bring up templates - there was that bug, yes. > > https://tickets.puppetlabs.com/brow

[Puppet Users] Re: class/subclass relationship ordering and containment

2014-09-22 Thread Mike Reed
Hey Nan and John, Thank you both for the replies and insight into my questions below; they are most helpful and very much appreciated. Based on your answers, I have few other questions that occurred to me: In response to my question about inherits, John had mentioned this below: "If you don't

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread Felix Frank
On 09/18/2014 04:40 PM, jcbollinger wrote: > > I'm not prepared to set up and run this test, but if it genuinely > produces the results you describe then that demonstrates a bug. Here > are the docs on Puppet scope: > https://docs.puppetlabs.com/puppet/3/reference/lang_scope.html. Here > are the

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread Francois Lafont
Hi, Le 22/09/2014 15:16, David Danzilio a écrit : > What you've stumbled on is the concept of public and private classes. Not exactly I think. The concept of public and private classes was clear for me. It was the *implementation* of the "params" pattern which was not clear for me, especially fo

Re: [Puppet Users] Globally used parameter

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 2:25:34 PM UTC-5, Jose Luis Ledesma wrote: > > Using hiera is probably the best solution. > > So that would mean creating 'server' as an hiera item, and having each class that wanted it look it up as $server = hiera('server') That's basically the property file

[Puppet Users] Re: Cross-module variables and mix-and-match with Hiera

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 3:45:17 PM UTC-5, Kimo Rosenbaum wrote: > > Hello, > > I'm using puppet 3 with roles (mostly), profiles, and Hiera. I have a > profile setup (for pdxcat/collectd) to, amongst other things, hiera_array() > for values [of localports] to pass on to collectd::plugin::t

Re: [Puppet Users] Re: Unable to do "puppet apply nodes.pp"

2014-09-22 Thread Justin Timberlake
Hello Felix, I'l upgrade my Puppet master and client to 3.7.1. Thanks, Justin. On Sun, Sep 21, 2014 at 8:10 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 09/21/2014 07:25 PM, Justin Timberlake wrote: > > But the strange thing is that when i checked the Puppet webconsole, the

[Puppet Users] Re: Resource ordering of Execs not working as expected

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 12:59:34 PM UTC-5, Jake Lundberg wrote: > > Puppet 3.6.2 > > First, I understand that Execs try not to run multiple times if called > many times by many resources and typically wait until they've all been > "collected" from all resources > Not exactly. Execs run

[Puppet Users] Syntax error

2014-09-22 Thread David Logan
Hi Folks, I've tried this snippet several ways, both using case and selector statements. I keep getting an error root@ubuntu64:/etc/puppet/manifests# puppet parser validate /etc/puppet/modules/timezone/manifests/params.pp Error: Could not parse for environment production: Syntax error at '=>';

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-22 Thread jcbollinger
On Saturday, September 20, 2014 2:33:34 PM UTC-5, aar...@gmail.com wrote: > > Thanks Neil, > > I am not sure I understand exactly what you mean, so I will post the code > I have done for testing (I am using different paths, but the concept is the > same as the original post). > > Here is the c

Re: [Puppet Users] class/subclass relationship ordering and containment

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 7:37:57 PM UTC-5, Nan Liu wrote: TLDR summary: > > 1. include/require class does not provide containment. > 2. anchor is just a empty resource for containment. > 3. contain class provides containment without the need for anchor > 4. contain may cause unnecessary re

Re: [Puppet Users] Example of how to use require with hiera?

2014-09-22 Thread Antoine Cotten
Does this actually work Nan?? Can somebody point me to any page where this is documented? Toni On Friday, September 19, 2014 6:33:07 PM UTC+2, Nan Liu wrote: > > On Thu, Sep 18, 2014 at 6:19 PM, Daniel Johnson > wrote: > >> Things like >> >> require: File['somefile'] >> >> or >> >> require: >>

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread David Danzilio
What you've stumbled on is the concept of public and private classes. Public and private classes are implemented very differently. A public class is your module's entry point, this is how people interact with your module. A public class is where you define your module's API. Private classes, on

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread David Danzilio
What you've stumbled on is the concept of public and private classes. Public and private classes are implemented very differently. A public class is your module's entry point, this is how people interact with your module. A public class is where you define your module's API. Private classes, on

Re: [Puppet Users] About the "params" pattern

2014-09-22 Thread Francois Lafont
Hi, Le 19/09/2014 17:36, jcbollinger a écrit : > The main points I am trying to get across And I thnink that you have succeeded now. ;) > are these: > >1. References to *non-local* variables should always be performed via >qualified names, even when class inheritance makes the variabl