Re: [Puppet Users] Condition on class existence on agent

2014-02-26 Thread Nikola Petrov
On Wed, Feb 26, 2014 at 07:12:19AM -0800, zerozerouno...@gmail.com wrote: > On Wednesday, February 26, 2014 2:47:32 PM UTC+1, nikolavp wrote: > > > > What is the reason for the definition of those classes on the same host? > > > > That's because I have some more general "role A" to which some

[Puppet Users] Re: Hiera isn't merging hashes

2014-02-26 Thread Charlie Sharpsteen
On Wednesday, February 26, 2014 2:19:23 PM UTC-8, paul@complex.com wrote: > > I have been doing some experimenting with Puppet + Hiera with some of my > hashes, but when it is going through my hierarchy it is returning whatever > hash it hits first and skipping the others. > > For my node 's

Re: [Puppet Users] Hiera isn't merging hashes

2014-02-26 Thread paul . lewis
I currently have these versions of puppet related packages installed: # yum list installed | grep puppet facter.x86_64 1:1.7.3-1.el6 @puppetlabs-products hiera.noarch1.3.1-1.el6@puppetlabs puppet.noarch 3.3.1-1.el6

[Puppet Users] Re: debugging puppet/hiera-eyaml decryption problems?

2014-02-26 Thread William Leese
What does the actual yaml containing the encrypted value look like? I've had some trouble simply copy & pasting eyaml output into yaml files. I found using something like this works best: mysql::server::root_password: ENC[PKCS7,MxxZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBAD

[Puppet Users] Announce: Hiera 1.3.2 Now Available

2014-02-26 Thread Melissa Stone
**Final Release** Hiera 1.3.2 --- - Final: February 26, 2014 - RC2: February 20, 2014 - RC1: February 11, 2014 Hiera 1.3.2 Downloads -- Source: https://downloads.puppetlabs.com/hiera/hiera-1.3.2.tar.gz Available

[Puppet Users] recovery from foreman

2014-02-26 Thread mjackson
I am new to puppet. running puppet 2.7.19 didn't know that you couldn't install foreman and dashboard on the same system/puppet master. I've uninstalled both of them. puppet nodes are complaining about not being able to get their catalogs. puppet.conf has: snippet: [main] # The Puppet va

Re: [Puppet Users] Hiera isn't merging hashes

2014-02-26 Thread Andrey Kozichev
you need to use hiera 1.2 and enable deep merging On 26 Feb 2014 22:19, wrote: > I have been doing some experimenting with Puppet + Hiera with some of my > hashes, but when it is going through my hierarchy it is returning whatever > hash it hits first and skipping the others. > > For my node 'san

Re: [Puppet Users] Re: Puppet Dashboard Radiator view thru iframe

2014-02-26 Thread brettsw...@gmail.com
Got an answer directly as google showed this/my message as deleted. Firefox extension to show websites in a grid was the solution. Or stagger two Firefox browsers lol High tech! :) Brett Sent from my iPhone > On Feb 26, 2014, at 14:19, Brett Swift wrote: > > did you ever solve th

[Puppet Users] Hiera isn't merging hashes

2014-02-26 Thread paul . lewis
I have been doing some experimenting with Puppet + Hiera with some of my hashes, but when it is going through my hierarchy it is returning whatever hash it hits first and skipping the others. For my node 'sandbox1' sandbox.pp: node /^sandbox\d+/ { class { 'php':} notify { 'PHP hash': m

[Puppet Users] ensure user and group created

2014-02-26 Thread Tim Dunphy
Hey all, I've created a puppet module to control LDAP in my environment. The ldap packages on both the centos and ubuntu hosts seem to require a user and group called 'ldap' (respectively). in my ldap::install class I have the following defined: user { "ldap": ensure => present, } grou

[Puppet Users] Re: Puppet Dashboard Radiator view thru iframe

2014-02-26 Thread Brett Swift
did you ever solve this? I just tried the same setup - no luck. On Monday, 14 October 2013 12:20:26 UTC-6, Matt Shields wrote: > > Is it possible to create an iframe in an html page and display the > Radiator view in the Puppet Dashboard? For some reason all my other NOC > iframe's are displ

[Puppet Users] puppet agent SRC for AIX?

2014-02-26 Thread Ryan Anderson
Has anyone successfully created a puppet agent SRC (system resource controller) for AIX? It is an AIX-specific subsystem like Solaris SMF or traditional sysV init, but with more bells 'n whistles. I've created them, and can start up the puppet agent successfully, but status and stop do not work

[Puppet Users] debugging puppet/hiera-eyaml decryption problems?

2014-02-26 Thread Christopher Wood
I am getting this error with a manifest run in puppet: Feb 26 12:05:46 cwt1 puppet-master[30680]: Hiera eyaml backend: Unable to decrypt hiera data. Do the keys match and are they the same as those used to encrypt? Unfortunately I get that same line with no additional details with "puppet mast

Re: [Puppet Users] Best practices: client/server VS Git

2014-02-26 Thread Julien Deloubes
Very interesting , thanks for your feedbacks. Le mardi 25 février 2014 15:09:43 UTC+1, Ken Barber a écrit : > > > This is the approach we are currently taking and it allows you to use > > virtual resources. This is the only thing which should drive you to this > > setup - the other is much simpl

[Puppet Users] Provider macports is not functional on this host error

2014-02-26 Thread Pascal Robert
Hi, I'm working on our first Puppet deployment, and one of the things we want to install is the NRPE (Nagios agent) on our CentOS, Ubuntu and OS X boxes. The problem is: MacPorts don't get installs, and I get: Error: /Stage[main]/Nagios/Package[${nagios_plugins}]: Provider macports is not func

[Puppet Users] Re: How to purge and install package on same run?

2014-02-26 Thread jcbollinger
On Tuesday, February 25, 2014 8:17:56 AM UTC-6, kbrede wrote: > > I've got a situation where I need to remove a set of packages and then > install the upgraded versions. I can't just upgrade. It's rare that I > have to upgrade the software but I'd like to have something in place to > upgrade

Re: [Puppet Users] Condition on class existence on agent

2014-02-26 Thread zerozerounouno
On Wednesday, February 26, 2014 2:47:32 PM UTC+1, nikolavp wrote: > What is the reason for the definition of those classes on the same host? > That's because I have some more general "role A" to which some hosts belong, but I also have "role B" which is some sort of further specification of

[Puppet Users] Re: How to use puppet modules on the forge on vagrant

2014-02-26 Thread James Stallings
http://docs.vagrantup.com/v2/provisioning/puppet_apply.html On Monday, February 24, 2014 6:12:53 PM UTC-5, bko...@ucr.edu wrote: > > I am trying to use this module > https://forge.puppetlabs.com/puppetlabs/ntp#usage > on vagrant but when I copy the manifests to the puppet module path on > vagra

[Puppet Users] Re: puppet agent gives error undefined method `empty?' for nil:NilClass

2014-02-26 Thread jcbollinger
On Tuesday, February 25, 2014 5:17:04 PM UTC-6, Tom Hanstra wrote: > > I have a puppet master which has over 50 puppet agents talking to it just > fine. But I have one particular server on which the agent, after > connecting and exchanging keys, gives the following error: > > Error: Could not

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-26 Thread Alessandro Franceschi
Craig, Not sure to have understood the difference between a defaults.pp pattern and a params.pp pattern, given that I suppose that if there were parameters in the main module class of Gareth's example they would inherit values in params.pp exactly as the defaults example you've written. Can be e

Re: [Puppet Users] hiera variable and "if statements" in manifest not working

2014-02-26 Thread Kenton Brede
On Wed, Feb 26, 2014 at 8:26 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > On 02/26/2014 03:18 PM, Kenton Brede wrote: > > vmw_tools_purge: > > - 'PURGE' > > not that you are defining an array here, not a string. That would look like > > vm_tools_purge: 'PURGE' > > > $vmw

[Puppet Users] Re: Custom service status not working

2014-02-26 Thread jcbollinger
On Tuesday, February 25, 2014 5:31:32 PM UTC-6, Guy Knights wrote: > > I have a service set up with a custom status check, but when I run puppet > it ignores my custom status command and runs the standard upstart status > check. > > My service definition is as follows: > > service { "gamedeplo

Re: [Puppet Users] hiera variable and "if statements" in manifest not working

2014-02-26 Thread Felix Frank
Hi, On 02/26/2014 03:18 PM, Kenton Brede wrote: > vmw_tools_purge: > - 'PURGE' not that you are defining an array here, not a string. That would look like vm_tools_purge: 'PURGE' > $vmw_tools_purge = hiera('vmw_tools_purge') > notify { $vmw_tools_purge: } This works because puppet helpfull

[Puppet Users] hiera variable and "if statements" in manifest not working

2014-02-26 Thread Kenton Brede
So I've got a variable set in Hiera: --- vmw_tools_purge: - 'PURGE' In the manifest, the following works fine: $vmw_tools_purge = hiera('vmw_tools_purge') notify { $vmw_tools_purge: } But this does not work. The "if statement" is just ignored and notify isn't triggered. What am I doing wr

Re: [Puppet Users] Re: notify on agent from puppet function

2014-02-26 Thread jcbollinger
On Tuesday, February 25, 2014 10:50:51 AM UTC-6, bazil wrote: > > Unfortunately, the message could be computed only in function. Do I > understand correctly that it is impossible to push Notify in catalog from > function during compilation. > > No, you do not: notify { 'a-message-from-our-spo

Re: [Puppet Users] Condition on class existence on agent

2014-02-26 Thread Nikola Petrov
Hmm not sure what but there is something smelly here going on... What is the reason for the definition of those classes on the same host? Can't it just be a single class with a parameter moved to hiera or something else? My other suggestion would be to create a fact that changes the setting on the

[Puppet Users] Condition on class existence on agent

2014-02-26 Thread zerozerounouno
Hi, how can I create a condition based on the presence of a specific puppet class on the host? I'm using Foreman, some hosts have myclass_a applied, while others have myclass_a AND myclass_b. Resources in myclass_b are applied after resources in myclass_a. Both classes change a parameter inside

[Puppet Users] Hiera to define an array of packages that should be installed

2014-02-26 Thread Richard Fussenegger
Right now my init.pp contains the following code block: package { [ 'package-1', 'package-2', '...' ]: ensure => 'present', require => *Exec*['apt_update'], } This works great — no problem there — but I'd love to use a single init.ppfor production and development and control the behavior of

[Puppet Users] Get Fedora 19 client working with CentOS 6.4 master

2014-02-26 Thread xbglowx
I have a CentOS 6.4 puppet masters that has puppet-server-3.3.1-1.el6.noarch installed. I am trying to get a puppet client fedora19 working, which has puppet-3.3.1-1.fc19.noarch installed. If I run puppet agent: /usr/bin/puppet agent --onetime --no-daemonize --verbose --server= --environment

[Puppet Users] Puppet for ubuntu

2014-02-26 Thread Gokul Skumar
Hi, I am trying to setup puppet master and agent in Ubuntu(VM). Please help with setup details. 1. Installed Virtual box and connected with Ubuntu 2.Installed puppet as master. When i trying to connect web console, not working.I believe some config needs update. Please help on this. -- Y

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-26 Thread Craig Dunn
This is cool, though I realise that it's a (self confessed) opinionated module design, the only thing that really stands out for me is that it follows a rather old, and limited, 'params.pp' pattern. There is no place for Hiera in this model without hard coding hiera lookup functions in the classe

Re: [Puppet Users] Re: Does r10k play nicely with Puppet Enterprise gems?

2014-02-26 Thread Steven James
Another r10k related question - is repo sync (or will repo sync) from SVN be supported? There appears to be some evidence that it was in the codebase a while back, but may have been removed e.g. https://github.com/adrienthebo/r10k/issues/58 If no SVN support now, I suppose alternate workaround ma