AW: [Puppet Users] Undo

2012-04-17 Thread Bernd Adamowicz
I'm not aware of any undo functions in Puppet. I think the only thing you can do is do create a proper user configuration for your Suse and Solaris boxes and let Puppet fix it. Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von root Gesendet: Diensta

Re: [Puppet Users] Case statements in a file directive

2012-04-17 Thread Peter Bukowinski
Looks like you're missing a question mark in the selector in your source parameter. It should look like this: source => $::architecture ? { /(i386|i586|i686)/ => "puppet:///files/32/usr/local/nagios/libexec", x86_64 => "puppet:///files/64/usr/local/nagios/libexec", } -- Pete

Re: [Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Geoff Davis
Yup, I fat-fingered my response. On Apr 17, 2012, at 4:10 PM, Denmat wrote: >> /(i386|i586|i686/) => > should be >> /(i386|i586|i686)/ => > shouldn't it? > > Den > On 18/04/2012, at 9:01, Forrie wrote: > >> So, it's choking on this still at the line with the cond

Re: [Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Denmat
>/(i386|i586|i686/) => should be >/(i386|i586|i686)/ => shouldn't it? Den On 18/04/2012, at 9:01, Forrie wrote: > So, it's choking on this still at the line with the conditional: > > Apr 17 18:58:17 test-system puppet-agent[7590]: Could not retrieve > catalog f

[Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Forrie
So, it's choking on this still at the line with the conditional: Apr 17 18:58:17 test-system puppet-agent[7590]: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at '{'; expected '}' at /etc/ puppet/manifests/classes/nagio

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

2012-04-17 Thread Steve Roberts
On Apr 17, 6:25 am, jcbollinger wrote: > On Apr 16, 10:03 pm, Steve Roberts wrote: > > I thought one of the key ideas for puppet was the ability to define a > > manifest and puppet would make the machine look like that manifest. > > That is correct.  Another key idea, however, is that Puppet does

[Puppet Users] function template: use of variable '$string' = BUG?

2012-04-17 Thread Antidot SAS
Hi everyone, I am using puppet setup with gem: -- root@linux-install:/tmp# facter |egrep -i "pupp|lsbdistdescription" lsbdistdescription => Debian GNU/Linux 6.0.4 (squeeze) puppetversion => 2.7.9 root@linux-install:/tmp# gem list puppet ***

[Puppet Users] Re: how to get ruby-shadow installed before trying to make users,groups

2012-04-17 Thread Steve Roberts
On Apr 16, 9:52 pm, Paul Hinze wrote: > I've run into this too, and worked around it by considering > ruby-shadow as a "prerequisite" for puppet, and therefore taking > responsibility for that package up to my bootstrapping scripts. IOW, > it is one of the short list of packages that need to be th

[Puppet Users] Re: how to get ruby-shadow installed before trying to make users,groups

2012-04-17 Thread Steve Roberts
On Apr 17, 7:08 am, Michael Stahnke wrote: > Much of this depends on *how* you install puppet.  If you use yum or > apt, I think shadow is pulled in as a dep (I know it is for rpm).  If > you use gems, I'm quite sure it's not. If you're on mac or Windows you > can use the native packages and get p

[Puppet Users] Re: Question regarding multi-OS NTP manifest

2012-04-17 Thread Jesse
Ooops, forgot the default page: file { 'default.html': path => "${docu_root}/default.html", source => "puppet:///modules/apache2/default.html", ensure => file, require => Package["$webservice_name"], -- You received this message because you are subscribed to the G

[Puppet Users] Re: Question regarding multi-OS NTP manifest

2012-04-17 Thread Jesse
On Tuesday, April 17, 2012 1:34:02 AM UTC-4, Wil Cooley wrote: > > On Apr 15, 4:44 pm, Jesse wrote: > > > case $operatingsystem { > > centos, redhat: { $ntp = "ntp" } > > debain, ubuntu: { $ntp = "ntpd" } > > This is backwards; centos/redhat should be 'ntpd' and debian/ubuntu > shoul

Re: [Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Geoff Davis
The $:: business is to force the variable look up to be in the top scope. It didn't fix have anything to do with the conditional, I just put it there for correctness. In this case, you are using a variable that is set by facter, so it appears in the top scope. Variables that you set yourself ca

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
Cool, thanks for the quick response. In the meantime, it might be helpful to ship a default hiera.yaml in the PuppetLabs packages. I'm using the Vagrant boxes from vstone.eu [1], and he's just pulling your Puppet packages from yum.puppetlabs.com. [2] Version in my VM is: puppet.noarch 2.

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Gary Larizza
And here's the bug to track --> http://projects.puppetlabs.com/issues/10367 On Tue, Apr 17, 2012 at 12:31 PM, Eric Shamow wrote: > As a +1 on this (and as the guy who wrote safe_hiera) -- > > It shouldn't be a function, the safety should be wrapped into hiera. But > yes, this will get you the r

[Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Forrie
Thank you, I appreciate it.Still learning all the interesting nuances of this syntax. I'm not yet familiar with this $:: -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Eric Shamow
As a +1 on this (and as the guy who wrote safe_hiera) -- It shouldn't be a function, the safety should be wrapped into hiera. But yes, this will get you the right syntax so you can just search/replace safe_hiera for hiera once it's fixed. -Eric -- Eric Shamow Professional Services http://p

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Gary Larizza
Hey Geoff, We actually had a talk about this. There is this code that will help catch that scenario FOR NOW --> https://github.com/puppetlabs/hiera-puppet/pull/23 I believe this is a bug and should DEFINITELY be fixed in source. Until then, the 'safe_hiera()' function allows you to make this ch

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Stefan Heijmans
Hi, > > What will be the option(s) for Puppet users with no internet connection (not allowed), if things start to depend more on PMT and Puppet Forge? Will we be able to make a local repo and do something like a 'puppet module localinstall' ? -- You received this message because you are subsc

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
Alas that doesn't work as the manifest fails to compile properly without the /etc/puppet/hiera.yaml file being there. Nan's code does provide defaults for the hiera lookups similar to what you are doing below, but the compiler balks before they are even evaluated. Here's the version of staging/

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Gary Larizza
Hey Geoff, I see that as two separate steps (Is Hiera enabled and is Hiera configured). I think the function satisfies the former, but you might want to write your own check for the latter (as each person probably interprets 'configured' differently). You could do a check like: if function_avai

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
I've found a potential issue, but I'm not sure if this is within the scope of function_available or not. The vagrant basebox I'm using actually does ship with puppet-hiera, but there's no /etc/puppet/hiera.yaml Thus, even though function_available('hiera') returns true, the function isn't actu

[Puppet Users] Undo

2012-04-17 Thread root
So.. I am evaluating Puppet Enterprise 2.5. I was messing with Live Management and I cloned a user account to all my nodes instead of just one. This overwrote the account settings on all my Solaris and SUSE with the account data from a RHEL server. I'd like to know how I would undo this, ple

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Ken Barber
I'm going to review this now. Its destined for master, so someone from the release team can probably comment on the next major release schedule for stdlib. On Tue, Apr 17, 2012 at 7:35 PM, Geoff Davis wrote: > That's what I'm looking for. I'll fold in that branch into my testing until > it goes m

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Kelsey Hightower
On Tue, Apr 17, 2012 at 2:28 PM, Walter Heck wrote: > Yeah, right after that email I saw the 2.7.14rc1 release notes and > answered my own question, my apologies :) No worries, we're here to help. -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
That's what I'm looking for. I'll fold in that branch into my testing until it goes mainline. Any ETA on it going mainline? On Apr 17, 2012, at 11:14 AM, Nigel Kersten wrote: > > > On Tue, Apr 17, 2012 at 11:08 AM, Geoff Davis wrote: > I'm doing some work on module development inside of a Va

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Walter Heck
Yeah, right after that email I saw the 2.7.14rc1 release notes and answered my own question, my apologies :) On Wed, Apr 18, 2012 at 02:26, Kelsey Hightower wrote: > On Tue, Apr 17, 2012 at 2:19 PM, Walter Heck wrote: >> >> >> On Apr 18, 2012 1:39 AM, "Nigel Kersten" wrote: >> >> > Absolutely.

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Kelsey Hightower
On Tue, Apr 17, 2012 at 2:19 PM, Walter Heck wrote: > > On Apr 18, 2012 1:39 AM, "Nigel Kersten" wrote: > > > Absolutely. This is the functionality we'll have available in Puppet. > > > > # puppet module list > > /etc/puppetlabs/puppet/production/modules > > └── nigelkersten-testmac (v0.0.2) > >

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Walter Heck
On Apr 18, 2012 1:39 AM, "Nigel Kersten" wrote: > Absolutely. This is the functionality we'll have available in Puppet. > > # puppet module list > /etc/puppetlabs/puppet/production/modules > └── nigelkersten-testmac (v0.0.2) > /opt/puppet/share/puppet/modules > ├── puppetlabs-pe_accounts (v1.0.2)

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Nigel Kersten
On Tue, Apr 17, 2012 at 11:08 AM, Geoff Davis wrote: > I'm doing some work on module development inside of a Vagrant VM of CentOS > 6.2. This VM has the community version of Puppet installed (2.7.13 I > think), but that doesn't include Hiera by default. > > My module is dependent on Nan Liu's pup

[Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
I'm doing some work on module development inside of a Vagrant VM of CentOS 6.2. This VM has the community version of Puppet installed (2.7.13 I think), but that doesn't include Hiera by default. My module is dependent on Nan Liu's puppet-staging module, which requires hiera. This puts me into t

[Puppet Users] Announce: Puppet 2.7.14rc1 Available

2012-04-17 Thread Matthaus Litteken
Puppet 2.7.14rc1 is a maintenance release candidate for Puppet in the 2.7.x series. This release is on the heels of Puppet 2.7.13 because our regular monthly release for April got preempted by our security release. Downloads are available: * Source http://downloads.puppetlabs.com/puppet/puppet-2

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Nigel Kersten
On Tue, Apr 17, 2012 at 10:34 AM, Tim Mooney wrote: > In regard to: Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types...: > > > Todd, welcome and I feel your pain. Trust me, I pushed every way I >> could to use native packages as our module deliver mechanism. However >> we have some odd

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-17 Thread Tim Mooney
In regard to: Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types...: Todd, welcome and I feel your pain. Trust me, I pushed every way I could to use native packages as our module deliver mechanism. However we have some odd requirements that make things not work as well with RPM (or deb, o

Re: [Puppet Users]

2012-04-17 Thread Jeff McCune
On Tue, Apr 17, 2012 at 3:52 AM, Afroz Hussain wrote: > Thanks a lot Jeff, > > yes, It is an warning but still I am not able to access the dashboard, > Pasted the error: > I'm unable to decode this message in a timely manner. =) Could you please paste the details of the error, perhaps with scre

[Puppet Users] file type with links => follow uses wrong permissions if not explicit

2012-04-17 Thread Adam Heinz
I think I've hit a minor permissions bug using puppet-2.6.13-2.el6.noarch from EPEL on CentOS 6. In order to reproduce production bugs on a test environment, I use puppet to copy the latest backup to a test server, followed by the remainder of the puppet-driven configuration necessary. I just sta

Re: [Puppet Users] how to get ruby-shadow installed before trying to make users,groups

2012-04-17 Thread Michael Stahnke
On Mon, Apr 16, 2012 at 9:52 PM, Paul Hinze wrote: > On Mon, Apr 16, 2012 at 4:55 PM, Steve Roberts wrote: >> But since the provider has already clipped the attributes they don't >> get set in the first run. >> >> when run a second time the attributes do get set correctly, but that >> seems a bit

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

2012-04-17 Thread jcbollinger
On Apr 16, 10:03 pm, Steve Roberts wrote: > I'm hoping I'm just missing something simple. > > I ran across this in my deployment setup and have replicated in a > simple set of manifests.  command output and the manifests below. > > basically start with a user/group name but it had the name was >

Re: [Puppet Users] Re: collecting resources for iteration in a template

2012-04-17 Thread Jonathon Anderson
On Tuesday, April 17, 2012 11:14:15 AM UTC+3, Luke Bigum wrote: > > Just in case you haven't seen it, RIP's original concat module: > https://github.com/ripienaar/puppet-concat I hadn't seen it. Thank you for the pointer. Like I said, this is basically what we're doing now; but It's probably

Re: [Puppet Users] Re: Requiring defines from other classes in a fact

2012-04-17 Thread Boudewijn Ector
On 04/17/2012 07:14 AM, Wil Cooley wrote: > On Apr 16, 2:39 pm, Boudewijn Ector > wrote: > >> Very very simple, except for the fact that I want to add the >> dependency for the mysql::database too. I'm using this excellent >> module for managing mysql:https://github.com/camptocamp/puppet-mysql >>

Re: [Puppet Users] Puppet Learner

2012-04-17 Thread Luke Bigum
Yes, your Puppet Master can be an Agent, it just talks to itself. Most people manage Puppet Agent and Master configuration with Puppet itself - get it to manage it's own config and restart itself when it changes. This means you only need a bunch of text files - your modules and manifests - to r

Re: [Puppet Users] Puppet Learner

2012-04-17 Thread Kukki
Thanks guys that was really very helpful and did clear lots of concepts in my mind for puppet. Absolutely brilliant that means that with collective I can even launch the instances on EC2 aswel and can even run the required services on demand within the boxs. One thing I also like to know say puppe

[Puppet Users] Functionality provided puppet dashboard.

2012-04-17 Thread mangesh sawant
Hi All, can we use puppet dashboard for following requirements. 1. List all the nodes with the role they play. 2. View the binary versions on the nodes and also the node status. 3. Ability to start / stop a node. 4. Have an interface to view logs from all nodes - Logs gen

Re: [Puppet Users] how to get ruby-shadow installed before trying to make users,groups

2012-04-17 Thread Paul Hinze
On Mon, Apr 16, 2012 at 4:55 PM, Steve Roberts wrote: > But since the provider has already clipped the attributes they don't > get set in the first run. > > when run a second time the attributes do get set correctly, but that > seems a bit kludgy to have to run puppet twice to get the desired > af

[Puppet Users] Re: collecting resources for iteration in a template

2012-04-17 Thread Jonathon Anderson
On Tuesday, April 17, 2012 8:46:33 AM UTC+3, Wil Cooley wrote: > > Have you considered instead using something like the "file fragment > pattern"? Basically, you add 'notifiy' to sysctl::variable resources > to notify an exec that rebuilds sysctl.conf [...] Yeah, that's what we're already doing

Re: [Puppet Users] Re: collecting resources for iteration in a template

2012-04-17 Thread Luke Bigum
Just in case you haven't seen it, RIP's original concat module: https://github.com/ripienaar/puppet-concat It hides a lot of the concatenation implementation detail in defined types and the temporary file fragments are stored under /var/lib/puppet/. On 17/04/12 06:46, Wil Cooley wrote: On Ap

Re: [Puppet Users] Puppet Learner

2012-04-17 Thread Luke Bigum
Overdue, Walter is right in that you will need to look to another tool, such as MCollective. Puppet is not the best at orchestrating operations across multiple servers. It can reacting to things on one machine, like an Apache servers' config file updating, but there's nothing in core Puppet t

Re: [Puppet Users] how to get ruby-shadow installed before trying to make users,groups

2012-04-17 Thread Luke Bigum
Hi Steve, This is a long standing 'chicken and egg' situation with Puppet installing dependencies for it's own providers. There was an issue I thought I was watching, but I can't find it now to quote it to you. People do different things: they either put up with the 2 pass approach, or for m

Re: [Puppet Users] hiera puppet augeas and hash keys ?

2012-04-17 Thread Luke Bigum
On 16/04/12 21:08, puppetguest wrote: Hi, if possible can someone post a working example please ? I am using hiera => puppet => augeas. cat myserver.yaml --- myserver: "Birthday": '1' "Debug": '5' The no. of settings will change, so i would like to use a hash here. The hiera