[Puppet Users] puppet 2.7.5 and augeas break grub.conf on RHEL5

2011-10-07 Thread rvlinden
Hi, I was running puppet (2.7.5) on a host which needed to have some settings changed in it's /boot/grub/menu.lst file. This file is however a link to /boot/grub/grub.conf When I used augeas in puppet like shown below augeas { "${dom0::params::module_label}_menu.lst_memory": incl => '/ boot/grub

[Puppet Users] how to modify a parameter inside a parametrized class

2011-10-07 Thread Arnau Bria
Hi all, I think I'm not understanding something... from http://docs.puppetlabs.com/guides/parameterized_classes.html : "The parameters you name can be used as normal local variables throughout the class definition" so, I have a class like: class common::nrpe($ensure='absent') { [...] if ($::

[Puppet Users] Re: how to modify a parameter inside a parametrized class

2011-10-07 Thread jcbollinger
On Oct 7, 6:05 am, Arnau Bria wrote: > Hi all, > > I think I'm not understanding something... > > fromhttp://docs.puppetlabs.com/guides/parameterized_classes.html: > > "The parameters you name can be used as normal local variables > throughout the class definition" > > so, I have a class like: >

[Puppet Users] Re: I can't seem to create mountpoint and change permissions after mounting in 2.7.3

2011-10-07 Thread jcbollinger
On Oct 5, 10:54 pm, Chris McDermott wrote: > I haven't used them yet, but isn't this what stages are meant to facilitate? > > http://docs.puppetlabs.com/references/stable/metaparameter.html#stage Run stages are syntactic sugar. There is nothing you can do with them that you cannot also do wit

Re: [Puppet Users] Re: how to modify a parameter inside a parametrized class

2011-10-07 Thread Arnau Bria
On Fri, 7 Oct 2011 05:55:34 -0700 (PDT) jcbollinger jcbollinger wrote: Hi John, > You are misunderstanding that Puppet variables' values can never be > reassigned. Once a variable has a value, it never changes throughout > the compilation of that catalog. This is an aspect of Puppet DSL's > dec

Re: [Puppet Users] Feature 4815: Allow Mount to create a mount point and set the under lying permission?

2011-10-07 Thread Jeffrey Ollie
On Thu, Oct 6, 2011 at 11:22 PM, Stefan Schulte wrote: > > You could create the mountpoint with an exec resource. Like > >    define mymount (.) { >      exec { "create_${name}": >        command => "/bin/mkdir -m 0755 ${name}", >        creates => $name, >      } >      mount { $name: >      

[Puppet Users] Re: how to modify a parameter inside a parametrized class

2011-10-07 Thread jcbollinger
On Oct 7, 8:11 am, Arnau Bria wrote: > On Fri, 7 Oct 2011 05:55:34 -0700 (PDT) > > jcbollinger jcbollinger wrote: > > While I'm on this topic, I'll throw in that I would find it terribly > > confusing if a class or definition failed to honor my specification > > for a parameter named 'ensure'.  

Re: [Puppet Users] Re: how to modify a parameter inside a parametrized class

2011-10-07 Thread Arnau Bria
On Fri, 7 Oct 2011 06:34:00 -0700 (PDT) jcbollinger jcbollinger wrote: > On Oct 7, 8:11 am, Arnau Bria wrote: > > On Fri, 7 Oct 2011 05:55:34 -0700 (PDT) > > > > jcbollinger jcbollinger wrote: > > > While I'm on this topic, I'll throw in that I would find it > > > terribly confusing if a class or

Re: [Puppet Users] Concat::Fragment collection broken in 2.7.5

2011-10-07 Thread Bruno Leon
Hello, sorry for the delay, I did a few tests and found out that the puppet master does not even go as far a querying the database. Starting from a clean query log (mysql), there is no sign of Concat::Fragment (tried small case as well). I guess this info also applies to the post "Problems wi

[Puppet Users] Re: Hostname fact doesn't handle hostnames with periods

2011-10-07 Thread easybeats
Hi Tim, > IMO, you've got to be clear what the underlying information model that > puppet / facter supports is. In particular, if you simply say that the > facts are the data reported by the underlying tools, then you've got > zero abstraction of the model and it's 'an exercise for the user to > h

Re: [Puppet Users] Re: Hostname fact doesn't handle hostnames with periods

2011-10-07 Thread Matthew Black
You are confusing Standards (RFC) and POSIX. They are typically mutually exclusive in their roles. RFC dictates the standards the information should be presented. POSIX dictates the API that the information is obtained. The difference can be plainly seen in message protocols, like smtp. http://nem

[Puppet Users] Re: Trigger when on any package change

2011-10-07 Thread devon
One option would be to create a define to use as a wrapper around "package". Something like this: define package::special($ensure) { package { $name: ensure => $ensure, } exec { "rkhunter-$name": command => "rkhunter --propupd", refreshonly => true subscribe => Package

[Puppet Users] Open Source Team iteration & planning summary 2011-10-07

2011-10-07 Thread Jacob Helwig
Good news, everyone! The Windows work is (nearly) done. There are a couple of topic branches that are left to review and merge but other than these we're back to our regularly scheduled program/backlog. Currently, the plan is to divide our effort roughly equally between catching back up on revie

[Puppet Users] Cloud Provisioner: What works and what doesn't work?

2011-10-07 Thread Eivind Hagen
Hi all, I'm very excited about using puppet cloud provisioner to spin up new EC2 instances and have puppet auto-installed on them and then get them to play their part by getting them classified using either puppet master or puppet dashboard, so that each node will install all the appropriate packag

[Puppet Users] Exec {rake db:mgirate } not working

2011-10-07 Thread damniamgood
Hello, I have master and agent puppet server setup and i am running the manifest which includes the exec block exec{"install-gems": command => "cd /opt/redmine/current && rake gems:install && rake db:migrate", } When i run on the client side , the execution of the install-gems fail

[Puppet Users] More cloud provisioner stuff

2011-10-07 Thread Joshua Vaughn-Uding
I'm still having some issues with cloud provisioner. I have a fresh install of provisioner, .60rc1, puppet 2.7.3, and dashboard 1.2.0. Everything has a very default install as described in the documentation. I was unable to get bootstrap to work, so I did things in a linear fashion (create, inst

[Puppet Users] Problem with custom function returning array

2011-10-07 Thread Nate
Hi, I'm trying create a custom function that will return an array of file paths for the file type source. Instead of defining the following array for source for each file type: file: { "some_file": source => [ "puppet:///file/$hostname/path", "puppet:///file/$role/ $mode/path", "puppet:///file

[Puppet Users] Announce: Puppet 2.7.6rc2 available

2011-10-07 Thread Michael Stahnke
Puppet 2.7.6rc2 is available. This release candidate fixes issues undercovered with using storedconfigs. Release Notes for 2.7.6 series -- https://projects.puppetlabs.com/projects/puppet/wiki/Release_Notes This release is available for download at: http://downloads.puppetlabs.com/puppet/ See

Re: [Puppet Users] Re: Problems with exported resources after upgrade to 2.7.5

2011-10-07 Thread Michael Stahnke
This should be fixed in 2.7.6rc2. Please test. -- 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 unsubscribe from this group, send email to puppet-users+unsubscr...@googlegro

Re: [Puppet Users] Exec {rake db:mgirate } not working

2011-10-07 Thread Matthew Black
One thing you might want to try, which could resolve the issue is use cwd meta for exec. I would also split the actions up, like below, with refreshonly meta set to true so it doesnt execute them on every puppet run. You would need a resource that would trigger them, like package install or somethi

Re: [Puppet Users] Re: Hostname fact doesn't handle hostnames with periods

2011-10-07 Thread Adrien Thebo
You can effectively override a fact by setting the weight, as follows Facter.add(:hostname) do has_weight 200 setcode do # your own hostname implementation end end On Fri, Oct 7, 2011 at 12:57 PM, Matthew Black wrote: > You are confusing Standards (RFC) and POSIX. They are typically mu

[Puppet Users] how to use optional parameters

2011-10-07 Thread maillists0
New to puppet and I just don't understand how to do this. Apologies in advance if it's a dumb question. Let's say I have a module called httpd and inside that is a class called httpd::service, which accepts a couple of parameters: class httpd::service ( $running = 'running', $enabled

Re: [Puppet Users] how to use optional parameters

2011-10-07 Thread Dominik Zyla
On 10/08/2011 12:28 AM, maillis...@gmail.com wrote: New to puppet and I just don't understand how to do this. Apologies in advance if it's a dumb question. Let's say I have a module called httpd and inside that is a class called httpd::service, which accepts a couple of parameters: class httpd

[Puppet Users] Re: Official puppetlabs position on cron vs puppet as a service?

2011-10-07 Thread Larry Ludwig
Mostly stlll run as cron. Though for some instances we run as a daemon. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/itTFPtfZLocJ. To post to this group,