Re: [Puppet Users] Node scope variables

2014-03-04 Thread Craig Dunn
You seem to have a couple of misunderstandings here - Firstly what you call a node definition isn't a node definition, that would look something like node 'mynode-dev' { include robin_dev } Secondly, you want to make your robin_dev class parameterized to achieve what you want, e.g.: class

Re: [Puppet Users] Re: puppet master stopped loading facts since puppetdb installation

2014-03-04 Thread cko
This was indeed the problem. Thank you, Ryan! On Tuesday, March 4, 2014 11:40:22 PM UTC+1, Ryan Senior wrote: > > I think the problem is the following two lines: > > storeconfigs = true > storeconfigs_backend = puppetdb > > Those need to be in the [master] section. When it's in [main], it applies

[Puppet Users] How puppet install another version of the same package.

2014-03-04 Thread shlo . afgin
Hi I want to install same package with a 2 different version like: libstdc++-4.4.7-3.el6.i686 libstdc++-4.4.7-3.el6.x86_64 I put it in puppet init file and when I run puppet I get: err: /Package[libstdc++]/ensure: change from 4.4.7-3.el6 to 4.4.7-4.el6.i686 failed: Could not update: Executi

[Puppet Users] Node scope variables

2014-03-04 Thread Robin Y.
Greetings, I could use some clarity on node scope, class scope, and best practices. I have the following: # Node definition if $hostname == 'mynode-dev' { $app_version = '1.0' include robin_dev } # Class definition class robin_dev { if $app_version == undef { $app_versio

Re: [Puppet Users] Windows: Can't create/update file in user's home directory using template

2014-03-04 Thread Rob Reynolds
This appears to be PUP-1389[1]. We've fixed a found issue with Windows 2012 and ruby and how they handle the double line terminator. Note that the description is somewhat misleading, this can happen with any file name. We've fixed the issue, you will want to evaluate 3.4.3 to get it. This bug becam

Re: [Puppet Users] Windows 2012 R2 out-of-sync / not checking in?

2014-03-04 Thread Rob Reynolds
What user is puppet agent service running under on your machine? On Mon, Mar 3, 2014 at 8:38 AM, Nick Hobart wrote: > I'm standing up a Foreman front end for open source Puppet server. Every > Linux box seems to be working and checking in just fine. The problem child > is Windows 2012 R2. I can

Re: [Puppet Users] Bug(?) in puppetlabs-firewall module prevents successful install/upgrade to PE 3.2

2014-03-04 Thread Matthaus Owens
Peter, I've opened https://tickets.puppetlabs.com/browse/ENTERPRISE-88 to track this issue. It seems related to https://tickets.puppetlabs.com/browse/MODULES-473. On Tue, Mar 4, 2014 at 10:03 AM, Peter Bukowinski wrote: > When upgrading my master from 3.1 to 3.2 (on a Scientific Linux 6.3 server)

Re: [Puppet Users] Re: puppet master stopped loading facts since puppetdb installation

2014-03-04 Thread Ryan Senior
I think the problem is the following two lines: storeconfigs = true storeconfigs_backend = puppetdb Those need to be in the [master] section. When it's in [main], it applies both the agent and the master on that box. You only want that to apply to the master. -Ryan On Tue, Mar 4, 2014 at 12:10

[Puppet Users] Syntax for echoing Fqdn name inside a hash value (please help)

2014-03-04 Thread Virtual_user
Hi i am using puppet 2.7 i want to echo the Fqdn name in a template by using looping through the hash, Example, in site.pp i have $acc_sudo = $mc_servertype ? { 'system' => [ '%APP *<%= fqdn %>* =/etc/init.d/httpd start, /etc/init.d/httpd stop,/etc/init.d/httpd restart, /sbin/servi

Re: [Puppet Users] Re: puppet master stopped loading facts since puppetdb installation

2014-03-04 Thread cko
The /etc/puppet/puppet.conf looks like this: [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl pluginsync = true storeconfigs = true storeconfigs_backend = puppetdb [live] modulepath = /etc/puppet//modules/live manifest = /etc/puppet/manifests/l

Re: [Puppet Users] Re: puppet master stopped loading facts since puppetdb installation

2014-03-04 Thread Ryan Senior
Can you post your puppet.conf? Should be in /etc/puppet, also the versions of puppet/puppetdb/facter packages? If you want to drop into freenode #puppet IRC channel, we can troubleshoot this more in real time. I'm rsenior there. On Mon, Mar 3, 2014 at 1:35 PM, cko wrote: > I'm still having the

Re: [Puppet Users] LDAP and Local user conflicts

2014-03-04 Thread Christopher Wood
(inline) On Tue, Mar 04, 2014 at 10:50:34AM -0800, Stephen Ward wrote: >Hi! >In our environment servers have admin user accounts created locally by >puppet.  However, we also have accounts (which use the same user name but >different id) in LDAP/AD etc.  This is not normally an iss

[Puppet Users] LDAP and Local user conflicts

2014-03-04 Thread Stephen Ward
Hi! In our environment servers have admin user accounts created locally by puppet. However, we also have accounts (which use the same user name but different id) in LDAP/AD etc. This is not normally an issue as most servers only use local authorisation. However, in a couple of cases servers

[Puppet Users] Bug(?) in puppetlabs-firewall module prevents successful install/upgrade to PE 3.2

2014-03-04 Thread Peter Bukowinski
When upgrading my master from 3.1 to 3.2 (on a Scientific Linux 6.3 server), the install fails during the puppetlabs-firewall module installation with this error: ** /opt/puppet/bin/puppet module install "/misc/local/pe/puppet-enterprise-3.2.0-el-6-x86_64/modules/puppetlabs-firewall-1.0.0.tar.g

Re: [Puppet Users] Gem update fails in puppet daemon mode only

2014-03-04 Thread Josh Cooper
On Tue, Mar 4, 2014 at 4:43 AM, Christof Schöll wrote: > Hello, > > I get the following error when running a puppet agent in daemon mode: > > change from ["2.2.2"] to latest failed: Could not get latest version: > undefined method `[]' for nil:NilClass > /Stage[main]/Ruby/Package[rubygems-update]

[Puppet Users] setting up class default values

2014-03-04 Thread Tim Dunphy
Hey all, I'm attempting to setup some defaults to my postfix 'config' class to require a package and request a refresh of the postfix service. This is my class definition: class postfix::config { $require = Class["postfix::install"] $notify = Class["postfix::service"] File { own

Re: [Puppet Users] in-conditional with virtualized resource

2014-03-04 Thread Race Boyer
thank you very much, you guys are awesome! On Tuesday, March 4, 2014 4:20:45 AM UTC-6, Craig Dunn wrote: > > > If you change "gid => $gid" to "gid => $title" then you don't need any of > the require meta parameters in your user, group or file resource > declarations, they can be removed. > > The

Re: [Puppet Users] "puppet module install" output is missing files for puppetlabs/firewall

2014-03-04 Thread Hunter Haugen
Thanks for pointing this out! The problem is that one of the spec files (spec/acceptance/nodesets/default.yml) is a symlink to another .yml file in that directory (usually centos-64-x64.yml). The `puppet module install` command downloads the tarball to a cache directory in /var, extracts, then mov

[Puppet Users] Puppet Enterprise 3.2 now available

2014-03-04 Thread Eric Sorenson
Hello puppet-users, We're pleased to announce that Puppet Enterprise 3.2 is immediately available for download: http://puppetlabs.com/misc/pe-files/ New in this release is the first set of Puppet Enterprise supported modules

Re: [Puppet Users] munin service wont' star

2014-03-04 Thread José Luis Ledesma
On Tue, Mar 4, 2014 at 3:36 PM, jcbollinger wrote: > > > On Tuesday, March 4, 2014 1:30:44 AM UTC-6, Jose Luis Ledesma wrote: >> >> Although it is not incorrect, you should not bypass class boundaries, so >> it's better: >> >> require=>Class['munin::install'] >> > > Well, that's one school of thou

Re: [Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread michael . obrien
Indeed, I missed a firewall. Thanks for helping me. All sorted now On Tuesday, March 4, 2014 3:04:35 PM UTC, Jose Luis Ledesma wrote: > > So it means there is a firewall dropping the connection somewhere > El 04/03/2014 14:45, > escribió: > >> From agent to master I get "connection timed out" for

[Puppet Users] Re: inhibit notify

2014-03-04 Thread jcbollinger
On Monday, March 3, 2014 6:32:49 AM UTC-6, Cristian Falcas wrote: > > Hi, > > Is it possible to inhibit notify message on per resource basis? > > For example, we use the fog library and it needs the AWS credentials > to be in /root/.fog > > If we manage this file from puppet and anything chan

[Puppet Users] Re: Symlinks to manifests

2014-03-04 Thread jcbollinger
On Monday, March 3, 2014 9:01:30 AM UTC-6, zerozer...@gmail.com wrote: > > Hi, > I'd like to keep symlinks to my manifests in > /etc/puppet/environments/common//manifests/, and have my real > manifests reside elsewhere, so that I can organize the real ones in > subdirectories as I prefer, e.g.

Re: [Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread José Luis Ledesma
So it means there is a firewall dropping the connection somewhere El 04/03/2014 14:45, escribió: > From agent to master I get "connection timed out" for port 8140 but for > port 443 and 80 I get Escape character is '^]' > > From master to agent I get "connection refused" > > On Tuesday, March 4,

[Puppet Users] Re: Report processor failed: uninitialized constant Puppet::FileSystem::File

2014-03-04 Thread jcbollinger
On Monday, March 3, 2014 2:46:37 AM UTC-6, Luke Chavers wrote: > > I'm running into this as well. While it seems to be a rare error, Google > returns at least a few incidents of people with similar problems. Since I > doubt that this is a desired behavior, I'll call it a bug from this point.

Re: [Puppet Users] munin service wont' star

2014-03-04 Thread Tim Dunphy
Hey guys, I've actually found the problem. It turns out that I thought I had defined the "munin-node" package definition in my install.pp (munin::install) manifest. Turns out I only had defined the "munin" package which takes care of all the dependencies for it. Here's my main class in init.pp:

Re: [Puppet Users] munin service wont' star

2014-03-04 Thread jcbollinger
On Tuesday, March 4, 2014 1:30:44 AM UTC-6, Jose Luis Ledesma wrote: > > Although it is not incorrect, you should not bypass class boundaries, so > it's better: > > require=>Class['munin::install'] > Well, that's one school of thought. Personally, I don't have any problem with cross-class rel

[Puppet Users] "puppet module install" output is missing files for puppetlabs/firewall

2014-03-04 Thread David Goldsmith
On a CentOS 6.5 64-bit systems with Puppet 3.4.3 from the PuppetLabs repo: # puppet module install puppetlabs/firewall Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forge.puppetlabs.com ... Notice: Installing -- do not interrupt ... Error: No such file

[Puppet Users] Gem update fails in puppet daemon mode only

2014-03-04 Thread Christof Schöll
Hello, I get the following error when running a puppet agent in daemon mode: change from ["2.2.2"] to latest failed: Could not get latest version: undefined method `[]' for nil:NilClass /Stage[main]/Ruby/Package[rubygems-update]/ensureThis works fine when running "puppet agent -t" from command

[Puppet Users] puppet applying wrong/old configuration to client

2014-03-04 Thread Denny
Hi all, I'm pretty new to puppet and couldn't find any solution yet. Right now I have seven hosts managed via puppet. Four of them are kinda broken since yesterday. They are using an old/cached(?) configuration. My current node definition looks like: node /^host\d+\.domain\.local$/ { include

[Puppet Users] Puppet 2.6.18 Automodule loading -> Wrong number of Arguments (1 for 2)

2014-03-04 Thread Michel Vocks
Dear Puppet-Users, I'm currently stucking at a wired error message. Below I've posted all important output. When I run this configuration on the same machine or on an client I geht the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: wrong number of argum

Re: [Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread michael . obrien
>From agent to master I get "connection timed out" for port 8140 but for port 443 and 80 I get Escape character is '^]' >From master to agent I get "connection refused" On Tuesday, March 4, 2014 1:24:37 PM UTC, Jose Luis Ledesma wrote: > > Good question > > Try a > Telnet puppet-master 8140 > >

RE: [Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread José Luis Ledesma
Good question Try a Telnet puppet-master 8140 >From the "agent" El 04/03/2014 14:20, "Michael.OBrien" escribió: > Wouldn't it be bidirectional if the agent's firewall was off because GCE > doesn't block outgoing traffic with its firewall? > > > > *From:* puppet-users@googlegroups.com [mailto:

RE: [Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread Michael . OBrien
Wouldn't it be bidirectional if the agent's firewall was off because GCE doesn't block outgoing traffic with its firewall? From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of José Luis Ledesma Sent: 04 March 2014 13:11 To: puppet-users@googlegroups.com Subject

Re: [Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread José Luis Ledesma
Hi, I think that 8140 should be bidirectional. Regards, El 04/03/2014 12:55, escribió: > I know this is someone fairly obvious that I'm missing but I'm having > trouble getting a puppet agent running on a google compute instance to talk > to my puppet master > > *Networking* > I have added a fi

[Puppet Users] Re: Excluding hostnames from a module via parameter

2014-03-04 Thread cko
Thanks! That worked On Monday, March 3, 2014 4:33:38 PM UTC+1, cko wrote: > > Hi, > here is what I'm trying to do: > > I want to be able to exclude certain hostnames/ from a module by passing > their hostnames in a parameter (array) within this module. > > Example: > > class centos-default { > >

[Puppet Users] GCE based puppet agent connection to master fails

2014-03-04 Thread michael . obrien
I know this is someone fairly obvious that I'm missing but I'm having trouble getting a puppet agent running on a google compute instance to talk to my puppet master *Networking* I have added a firewall rule to GCE to allow 8140 tcp from my puppet master to instances connected to the network wh

Re: [Puppet Users] in-conditional with virtualized resource

2014-03-04 Thread Craig Dunn
If you change "gid => $gid" to "gid => $title" then you don't need any of the require meta parameters in your user, group or file resource declarations, they can be removed. There is implied dependency between the gid of a user and the title of a group, and between owners/groups of files and their