Re: [Puppet Users] Custom provider works only immediately after sync

2011-08-26 Thread Stefan Schulte
On Fri, Aug 26, 2011 at 08:13:03AM -0700, Adrian Casajús wrote: > Hi all, > > I've got a custom type with a single custom provider. I've got > enabled pluginsync in both client and server. When I run the puppet > agent in the client it syncs the type and the provider and properly > executes them.

[Puppet Users] Re: facter identifies Oracle Linux 6.1 as 'RedHat'

2011-08-26 Thread Avi Miller
Hi Nan, On Aug 25, 2:20 am, Nan Liu wrote: > Should we still use OEL? If we change the the value to OracleLinux, > besides manifests changes, we also need to update types and provider > that are currently configured to :confine(OEL). I would prefer to change it to OracleLinux as it is no longer

[Puppet Users] Announce: Dashboard 1.2.0 is available now

2011-08-26 Thread Michael Stahnke
It's here. Puppet Labs Announces Puppet Dashboard version 1.2.0. This is a significant upgrade over the 1.1.x series, with new features, prettier views and some all-in-all awesomeness. Thanks to those who filed bugs, submitted patches and helped with the RC process. Major Highlights: -- *

[Puppet Users] Open Source Team iteration & planning summary 2011-08-26

2011-08-26 Thread Jacob Helwig
Puppet.features.root? will now correctly report whether Puppet is running with elevated administrative privileges on Windows, instead of always returning true (#8662). Management of permissions and ownership of Puppet's internal files was also disabled as part of this change until the general prob

Re: [Puppet Users] Certificate Verify Failed

2011-08-26 Thread Ben House
PuppetNewbie wrote: >I could use some help. I am a newbie with puppet, and am trying to >learn it and use it here at the office. I have created 2 CentOS 5.5 >machines ( puppet.1on1.com - puppetmaster and puppetclient.1on1.com - >which will be the client that I control.) When I attempt to con

Re: [Puppet Users] Certificate Verify Failed

2011-08-26 Thread Ben House
PuppetNewbie wrote: >I could use some help. I am a newbie with puppet, and am trying to >learn it and use it here at the office. I have created 2 CentOS 5.5 >machines ( puppet.1on1.com - puppetmaster and puppetclient.1on1.com - >which will be the client that I control.) When I attempt to con

[Puppet Users] Re: Complex YAML Data in External Nodes

2011-08-26 Thread Douglas Garstang
I must be asking hard questions. On Fri, Aug 26, 2011 at 10:04 AM, Douglas Garstang wrote: > Can I do this in an external node? > > parameters: > foo: > - { id: 0, Name: Doug } > > And access it with: > > notice ("DATA=$foo[0]['Name']") > > ? > > Doug > -- Regards, Douglas Garstang

[Puppet Users] Re: issues with a custom fact, runs fine manually, not via the puppet service...

2011-08-26 Thread Matthew Nicholson
Following up on my own question, I'm closer but not there: The fact no longer breaks a puppet run. On a node, facter -p shows my fact. It is not, however, in the report sent to my master, nor in the yaml file for the host. However, if i run puppet manually (puppet agent -t), once it finishes, it

[Puppet Users] Certificate Verify Failed

2011-08-26 Thread PuppetNewbie
I could use some help. I am a newbie with puppet, and am trying to learn it and use it here at the office. I have created 2 CentOS 5.5 machines ( puppet.1on1.com - puppetmaster and puppetclient.1on1.com - which will be the client that I control.) When I attempt to connect my client to the master

[Puppet Users] Service resource does disable services on reboots

2011-08-26 Thread Frederiko Costa
Hi folks, The question I have is regarding to Service resource on Red Hat systems. I have the following example: service { [ "anacron", "atd" ]: ensure => stopped, enable => false, hasrestart => true, hasstatus => true, } It runs fine, disabling the service while

Re: [Puppet Users] Forcing package resources to fail to install in Solaris sparse root zones when install path is inherited from global zone

2011-08-26 Thread Nan Liu
On Fri, Aug 26, 2011 at 8:30 AM, Matt wrote: > I've have a bunch of Solaris sparse root zones. The share /opt/csw > with the global zone. Because of this, attempts to install a package > that roots in that directory will fail. How do I get puppet to notify > and fail if the package is missing, rat

[Puppet Users] Complex YAML Data in External Nodes

2011-08-26 Thread Douglas Garstang
Can I do this in an external node? parameters: foo: - { id: 0, Name: Doug } And access it with: notice ("DATA=$foo[0]['Name']") ? Doug -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-use

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Frederiko Costa
Hi folks, for the next user looking for help ... augeas did the trick augeas { "selinux": context => "/files/etc/sysconfig/selinux/", changes => [ "set SELINUX disabled" ], } debug: Augeas[selinux](provider=augeas): Augeas version 0.8.1 is installed debug: Augeas[selinux](provider=augeas

Re: [Puppet Users] Announce Only List

2011-08-26 Thread Nigel Kersten
On Fri, Aug 26, 2011 at 8:35 AM, Christopher Webber wrote: > Is there an announce only list for Puppet at this point? > > http://groups.google.com/group/puppet-announce Only final releases, you won't see the RC churn here. -- You received this message because you are subscribed to the Google Gr

[Puppet Users] Custom provider works only immediately after sync

2011-08-26 Thread Adrian Casajús
Hi all, I've got a custom type with a single custom provider. I've got enabled pluginsync in both client and server. When I run the puppet agent in the client it syncs the type and the provider and properly executes them. But if I execute the agent again it will tell me err: Could not run Puppet

[Puppet Users] Forcing package resources to fail to install in Solaris sparse root zones when install path is inherited from global zone

2011-08-26 Thread Matt
Hello, I've have a bunch of Solaris sparse root zones. The share /opt/csw with the global zone. Because of this, attempts to install a package that roots in that directory will fail. How do I get puppet to notify and fail if the package is missing, rather than attempt to install, in such a zone? f

[Puppet Users] Service resource does not seem to be disabling service on reboots

2011-08-26 Thread Frederiko Costa
Hi folks, The question I have is regarding to Service resource on Red Hat systems. I have the following: service { [ "anacron", "atd" ]: ensure => stopped, enable => false, hasrestart => true, hasstatus => true, } It runs fine, disabling the service while the sys

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Frederiko Costa
I tried both suggestions: egrep and adding the -e switch on sed, but none worked. I'm going to try augeas ... -fred On Fri, Aug 26, 2011 at 8:31 AM, Kinzel, David wrote: > > Hi folks, > > > > I have the following resource on my test environ: > > > > exec { "/bin/sed -i 's/^SELINUX=enforcing/S

[Puppet Users] Announce Only List

2011-08-26 Thread Christopher Webber
Is there an announce only list for Puppet at this point? -- cwebber -- 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+

RE: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Kinzel, David
> Hi folks, > > I have the following resource on my test environ: > > exec { "/bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config": > path => [ '/usr/bin', '/bin' ], > onlyif => "/bin/grep '^SELINUX=enforcing' /etc/sysconfig/selinux 2>/dev/null", > logoutput => true

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Frederiko Costa
I will give a try and get back to you soon. You may be correct. -fred On Fri, Aug 26, 2011 at 8:30 AM, Aaron Grewell wrote: > I'm clear on what -i does, but I thought -e was also required. I'm not a > sed expert, but last time I left out -e things went rather badly. > > On Fri, Aug 26, 2011

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Aaron Grewell
I'm clear on what -i does, but I thought -e was also required. I'm not a sed expert, but last time I left out -e things went rather badly. On Fri, Aug 26, 2011 at 8:25 AM, Frederiko Costa wrote: > Hi folks, > > Thanks for the quick help > > Aaron - the -i does an in place modification. If I run

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Frederiko Costa
Hi folks, Thanks for the quick help Aaron - the -i does an in place modification. If I run on the command-line, works fine. If I don't use -i, I would have to use some sort of redirection and replace the original file. I will try placing -e as well for testing sake "-i[SUFFIX], --in-place[=SUFFIX

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Aaron Grewell
Or just push a new file, that's what we do. On Fri, Aug 26, 2011 at 8:16 AM, Frank Sweetser wrote: > On 08/26/2011 11:03 AM, Frederiko Costa wrote: > > Hi folks, > > > > I have the following resource on my test environ: > > > > exec { "/bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' > /etc/

Re: [Puppet Users] manage sudoers with augeas

2011-08-26 Thread Aaron Grewell
My 2c: I avoid the augeas provider whenever possible. I've got it in one manifest, but it's a pain to troubleshoot. I would either assemble the file from fragments using the concat module or drop prebuilt fragments in /etc/sudoers.d/. You may have to create the directory, but recent sudoers rele

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Frank Sweetser
On 08/26/2011 11:03 AM, Frederiko Costa wrote: > Hi folks, > > I have the following resource on my test environ: > > exec { "/bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' > /etc/selinux/config": > path => [ '/usr/bin', '/bin' ], > onlyif => "/bin/grep '^SELINUX=enforcing' /etc/sys

Re: [Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Aaron Grewell
I think you may have a typo in your resource: /bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' should have '-e' after '-i' I believe. On Fri, Aug 26, 2011 at 8:03 AM, Frederiko Costa wrote: > Hi folks, > > I have the following resource on my test environ: > > exec { "/bin/sed -i 's/^SELINUX=

[Puppet Users] Exec resource not being applied properly

2011-08-26 Thread Frederiko Costa
Hi folks, I have the following resource on my test environ: exec { "/bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config": path => [ '/usr/bin', '/bin' ], onlyif => "/bin/grep '^SELINUX=enforcing' /etc/sysconfig/selinux 2>/dev/null", logoutput => true, } Whenever

[Puppet Users] aptitude provider ignores some bad package names

2011-08-26 Thread Andreas Kuntzagk
Hi, for some (mistyped?) bad package names the aptitude provider does not fail. Example manifest: Package { provider => 'aptitude', ensure => 'latest', } package {"qt4": ensure => latest, } # puppet agent --test ... notice: /Stage[main]//Package[qt4]/ensure: ensure changed 'purged'

[Puppet Users] issues with a custom fact, runs fine manually, not via the puppet service...

2011-08-26 Thread Matthew Nicholson
I think i'm missing something small... So, I've got a couple custom facts, this is the one I'm dealing with now: if Facter.value("compute_node") == "true" Facter.add("lsf_queues") do setcode do hostname = Facter.value("hostname")

[Puppet Users] Re: Secure Certification Authority Transfer

2011-08-26 Thread It Dept
On Aug 25, 5:37 pm, Nigel Kersten wrote: > > I may be reading your request incorrectly, but it almost sounds like you > don't really want to have the Puppet CA at all, and just want to generate > certificates manually and distribute them yourself. > > Would launching all your masters with --no-c

RE: [Puppet Users] Re: Unexpected behavior using class inheritance and run stages

2011-08-26 Thread Ricardo Bartolome Mendez
Hello John, Class rsyslog::stats does not override any definition already declared in rsyslog, reason because I was not sure of doing a correct usage of class inheritance. rsyslog was the simpler example, but I have a module was suffering a serious problem of order (it's related to production code

Re: [Puppet Users] manage sudoers with augeas

2011-08-26 Thread vincent
How Can I detect why augeas doesn't treat them ? How can I know if it is a lens failure ? Does augeas have a debug mode ? 2011/8/25 Rob McBroom > On Aug 25, 2011, at 9:35 AM, Vincent wrote: > > > yes it was as root, why the ls /etc doesn't return the sudoers ? > > On Aug 25, 2011, at 9:23 AM,