Re: [Puppet Users] Creating a system module path (starting with Telly)

2012-04-30 Thread Greg Sutcliffe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 here As a distribution packager, a clear place to put things specific to the distribution is a big win for me. I've struggled in the past decided whether to package the clean upstream sources, or to add my own tweaks as well. To date, I've kept it

Re: [Puppet Users] How to publish unstandard packages in puppet

2012-04-30 Thread Dick Davies
Life is far, far saner if you can make a package. Things like FPM make this sort of thing so easy (e.g. turn a tarball into an RPM) you need a very good reason not to. On 30 April 2012 01:39, Shoujin Wang wrote: > I have some old packages which was not in standard RPM/DEB packages. > We have ou

[Puppet Users] Re: Is there a way to see find out if a module is installed for use?

2012-04-30 Thread Peter
Hi Len, Thanks for the reply, sorry I should have been a bit clearer I actually meant puppet modules. Ie I want to be able to establish if a puppet module is installed in the one of the modulepath locations root@core modules/puppet# puppet config print modulepath /etc/puppet/modules:/usr/share/p

[Puppet Users] Re: Having trouble getting puppet to set users/groups to a defined state

2012-04-30 Thread jcbollinger
On Apr 27, 6:21 pm, Steve Roberts wrote: > On Apr 18, 6:46 am, jcbollinger wrote: > > > On Apr 17, 5:04 pm,SteveRoberts wrote: > > > > On Apr 17, 6:25 am, jcbollinger wrote: > > > well, allowdupe doesn't fix the issue only masks it.  I knew about > > > taht attribute but > > > it just adds a d

[Puppet Users] Re: Includes and parametrized class redefinition

2012-04-30 Thread jcbollinger
On Apr 27, 8:12 am, Andre Nathan wrote: > Hello John > > On Friday, April 27, 2012 9:58:09 AM UTC-3, jcbollinger wrote: > > > I know it's not what you want to hear, but Hiera is your best bet.  I > > don't think the code base size is relevant, because I don't think the > > time and effort to imp

[Puppet Users] querying hiera data without providing host/scope

2012-04-30 Thread Andreas Paul
Hello there, I need to access the following hiera data in a script: $ hiera -c /etc/puppet/hiera.yaml tomcats environment=development line=intra3 ["tc7_test1", "tc7_test8"] or $ hiera -c /etc/puppet/hiera.yaml apache_port environment=development line=intra3 name=tc7_test1 81 The example on http

[Puppet Users] Re: puppet way of handling rdist and triggers

2012-04-30 Thread jcbollinger
On Apr 28, 9:53 am, Philip Brown wrote: > On Saturday, April 28, 2012 2:11:23 AM UTC-7, Luke Bigum wrote: > > > Yes, Puppet is perfect for your file-copy-and-hook scenario. In Puppet > > speak it's "notify" and "subscribe" between resources, here's a very > > quick example that will restart Some

[Puppet Users] managing some directories

2012-04-30 Thread James Dehune
I need to manage some directories, ensure they are created/present, owner/groups/modes are correct.I have a static list of directories that will be present on this group of servers. However, down the road one of the nodes may need a new partition that the other nodes may not. I've created a "

Re: [Puppet Users] managing some directories

2012-04-30 Thread Luke Bigum
Hi James, First off, if you "inherit server::directories" your server class gets all the variables in it's local namespace, so you can just use $server::directories::data_dir1 as $data_dir1 and don't have to worry about two levels of :: namespace :-) Can't you just use an array here? class

[Puppet Users] Require => Package from a different server

2012-04-30 Thread Phil Cooper
Hi. I have to install a client/server app. The server end is easily set up but I need a puppet module that ensures a package is installed on a managed node only if the server package has already been installed on a different server. Is there a way to do this? -- This email and any files transmi

Re: [Puppet Users] querying hiera data without providing host/scope

2012-04-30 Thread R.I.Pienaar
- Original Message - > From: "Andreas Paul" > To: puppet-users@googlegroups.com > Sent: Monday, April 30, 2012 2:52:00 PM > Subject: [Puppet Users] querying hiera data without providing host/scope > > Hello there, > > I need to access the following hiera data in a script: > $ hiera -c

[Puppet Users] Re: trouble w/ Foreman as ENC, agents and environments

2012-04-30 Thread droog72
Hi, I don't actually see foreman_env - here's the actual output: environment: development classes: - concat::setup - dns - facts - hardening - mcollective - network - ntp - postfix - rhel - satellite::client - snmpd - ssh - sudo - users - vmware parameters: puppetmaster: puppet mac:

[Puppet Users] Conditional directory creation

2012-04-30 Thread Peter Horvath
Hi, I have a modul which created the vhosts and based on the variables defined there i am creating nagios defacement host cfg. My problem is that I can't conditionally decide if the file should be created, based on the variable which will get content in the node config: When the condition get eval

Re: [Puppet Users] Re: puppet way of handling rdist and triggers

2012-04-30 Thread Philip Brown
On Mon, Apr 30, 2012 at 6:52 AM, jcbollinger wrote: > > > On Apr 28, 9:53 am, Philip Brown wrote: > >> Sadly, the chances of getting all sysadmins to be dilligent about creating >> packages are pretty much zero. >> They only want to deal with premade downloadable packages. > > > It sounds like yo

[Puppet Users] Conditional directory creation

2012-04-30 Thread Peter Horvath
Hi, I have a modul which created the vhosts and based on the variables defined there i am creating nagios defacement host cfg. My problem is that I can't conditionally decide if the file should be created, based on the variable which will get content in the node config: When the condition get eval

Re: [Puppet Users] Re: trouble w/ Foreman as ENC, agents and environments

2012-04-30 Thread Brian Gupta
Hmm. Are you definitely using the node.rb from here? http://theforeman.org/projects/foreman/wiki/External_Nodes Also that doesn't 100% look like the output of Foreman's ENC, are you sure your node.rb is pointing at Foreman, including the correct port? Thanks, Brian On Mon, Apr 30, 2012 at 11:37

Re: [Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-04-30 Thread R. Tyler Croy
On Fri, 27 Apr 2012, denmat wrote: > Well, the good news is you're not crazy :) > > I loaded up a 5.7 instance and puppet 2.7.9+ and got the same result as you! > > I did a yum update and got the same issue - so it is not a common > issue that is already fixed. > > I did a manual rpm --import

[Puppet Users] Re: trouble w/ Foreman as ENC, agents and environments

2012-04-30 Thread droog72
Hi, Yeah, that's the script I've grabbed. Only difference(s) are, I'm using #!/opt/puppet/bin/ruby (embedded ruby shipped w/ Puppet Enterprise), and have the script located in /etc/ puppetlabs/puppet/node.rb - but that's reflected in the puppetmaster's puppet.conf. external_nodes = /etc/puppe

[Puppet Users] Re: Using backreferences from node name regex match

2012-04-30 Thread Guy Knights
Ok, thanks Nick. I'll look into using a regex match on the client cert (and yes, you're right. I am :) On Thursday, 26 April 2012 18:00:24 UTC-7, Nick Fagerlund wrote: > > Yeah, I'm pretty sure that's not supported. > > But you could implement whatever you're trying to do with a regular > regex

[Puppet Users] Uninstalling/downgrading a module?

2012-04-30 Thread Chris Hirsch
Hey all, Are there any patterns or recommendations on uninstalling or downgrading a puppet module (read as software) on a node? An example would be that we're running with =>latest or a specific version of rpms and have decided that there is a bug or problem with the software and that we we

[Puppet Users] Accessing Modulefile variables within templates

2012-04-30 Thread Jose San Leandro
Hi, Sorry if this has been answered somewhere. I haven't found the answer (albeit I could have invested more time on it) anywhere. I'd like to access the version of the module within templates of the module itself, so by simple inspection of the generated files in a concrete node, I can figure

Re: [Puppet Users] Uninstalling/downgrading a module?

2012-04-30 Thread Adam Heinz
On Mon, Apr 30, 2012 at 3:24 PM, Chris Hirsch wrote: > Are there any patterns or recommendations on uninstalling or downgrading a > puppet module (read as software) on a node? I have a puppet-newrelic module for a pay-per-seat monitoring package that I uninstall when I'm done using it on a partic

Re: [Puppet Users] Require => Package from a different server

2012-04-30 Thread Denmat
Hi, To my knowledge there is no simple way. I know there has been talk of this previously on the list so you can search that for other answers. That said a possibility is that you can have a custom fact that checks for an open port on the server. If it responds set it to true. There are obvious

[Puppet Users] accessing a variable within a previously declared instance of a defined type

2012-04-30 Thread Gary Wilson
I'm trying to define a static media server that uses a common website layout (e.g. with directories `etc/`, `log/`, `html/`, etc.), as well as an nginx config that will get included into a host-wide nginx config. The site's nginx config needs to make use of the doc root that gets defined by th

[Puppet Users] Google+ Puppet hangout session this Friday, May 4th

2012-04-30 Thread Walter Heck
Hi all, we're going to try a google+ hangout session this friday on puppet. It's not so suitable for US timezones, but matches well with Europe, Asia and Australia timezones. It will basically be an informal hangout where we discuss various topics of interest in the puppet ecosystem. Come join us