Re: [Puppet Users] Hiera to hash

2012-08-21 Thread Douglas Garstang
On Tue, Aug 21, 2012 at 11:44 PM, Douglas Garstang wrote: > On Tue, Aug 21, 2012 at 11:19 PM, Stephen Gran > wrote: >> Hi, >> >> On Tue, 2012-08-21 at 21:00 -0700, Douglas Garstang wrote: >>> I know I did this once before but can't find docs on how to do it again. >>> >>> I have this in a yaml fi

Re: [Puppet Users] Hiera to hash

2012-08-21 Thread Douglas Garstang
On Tue, Aug 21, 2012 at 11:19 PM, Stephen Gran wrote: > Hi, > > On Tue, 2012-08-21 at 21:00 -0700, Douglas Garstang wrote: >> I know I did this once before but can't find docs on how to do it again. >> >> I have this in a yaml file: >> >> pvdisks: >> ec2_pvdisks_m1.small: >> disks: /de

Re: [Puppet Users] Hiera to hash

2012-08-21 Thread Stephen Gran
Hi, On Tue, 2012-08-21 at 21:00 -0700, Douglas Garstang wrote: > I know I did this once before but can't find docs on how to do it again. > > I have this in a yaml file: > > pvdisks: > ec2_pvdisks_m1.small: > disks: /dev/xvdb1 > enabled: yes > > Loading it with hiera. > > M

Re: [Puppet Users] Automate puppet agent runs

2012-08-21 Thread Mike Carr
I could, except the app will live outside the puppet master, I could store the certs on nfs though...humm... On Monday, August 20, 2012 1:05:55 PM UTC-7, Christopher Wood wrote: > > On Mon, Aug 20, 2012 at 12:40:11PM -0700, Mike Carr wrote: > >I feel embarrased, I was on that page but did no

[Puppet Users] Hiera to hash

2012-08-21 Thread Douglas Garstang
I know I did this once before but can't find docs on how to do it again. I have this in a yaml file: pvdisks: ec2_pvdisks_m1.small: disks: /dev/xvdb1 enabled: yes Loading it with hiera. Manifest has: $testkey = hiera('pvdisks') notice ("TESTKEY=$testkey[ec2_pvdisks_

Re: [Puppet Users] Scheduled_task + ad user

2012-08-21 Thread Josh Cooper
Hi Jeff, It should be lib/puppet/util/adsi.rb Also please add yourself as a watcher to the ticket. Josh On Aug 21, 2012, at 3:18 PM, Jeff Sussna wrote: > Stupid question: where is the source file for this hack? > > On Monday, July 2, 2012 11:19:46 PM UTC-5, fpommier wrote: > Hi Josh, > Thank

[Puppet Users] Announce: Puppet 2.7.19 Available

2012-08-21 Thread Moses Mendoza
Puppet 2.7.19 is a maintenance release candidate for Puppet in the 2.7.x series. It includes many bug fixes, including Windows improvements, Upstart service provider fixes, and several others. Downloads are available at: * Source https://downloads.puppetlabs.com/puppet/puppet-2.7.19.tar.gz Windo

Re: [Puppet Users] package handling in puppet?

2012-08-21 Thread Tim Mooney
In regard to: [Puppet Users] package handling in puppet?, lamour said (at...: I'm starting to feel like, maybe, I have a fundamentally flawed concept of how puppet is intended to be used. (new to puppet. setting up initial puppet environment. blah blah) so, I've got most of the pieces worked

Re: [Puppet Users] Scheduled_task + ad user

2012-08-21 Thread Jeff Sussna
Stupid question: where is the source file for this hack? On Monday, July 2, 2012 11:19:46 PM UTC-5, fpommier wrote: > > Hi Josh, > Thank for your quick and good reply. > I remove "and LocalAccount = True' at line 56 and 58. > It now work perfectly. > Thanks again. > Fred > > Le lundi 2 juillet 201

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-21 Thread Sean Carolan
It's not really the cleanest-looking thing, but the easiest option for your particular case is to wrap the file resource in an if statement like this: if (! $::security_limits_disabled) { file { '/etc/security/limits.conf': ... } } Super, thanks

[Puppet Users] Re: Puppet equivilent to "adduser [user] [group]"

2012-08-21 Thread Nick Fagerlund
You need to use the "groups" (not to be confused with "group"!) attribute to set a list of supplementary groups, and set the "membership" attribute to "minimum". Docs here: http://docs.puppetlabs.com/references/latest/type.html#user On Tuesday, August 21, 2012 2:12:55 PM UTC-7, David Bell wrote

[Puppet Users] Puppet equivilent to "adduser [user] [group]"

2012-08-21 Thread David Bell
Hi there. I am trying to add an existing user (set up by a package during installation) to a group set up by another package during its installation. So both the group and the user all ready exist. I want the group to be added as an ADDITIONAL group, not to replace the users originally assigne

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-21 Thread Denmat
Hi See inline: On 21/08/2012, at 23:14, "Sergey V. Arlashin" wrote: > Hello! > I have a custom function which requires a ruby gem which I have in my > deb-repository. > If the package is installed beforehand manually the function works well. But > if I want to install the package with puppet

[Puppet Users] List of every core fact is live

2012-08-21 Thread Nick Fagerlund
There's another brand new document today: A master list of every fact in Facter 1.6 core. We hope it's helpful! http://docs.puppetlabs.com/facter/1.6/core_facts.html This is a bit rough, and some of the facts are still undocumented, but it's got pretty much everything. Huge thanks to Ben Hughe

[Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-21 Thread Nick Fagerlund
Hi all, I've finished the all new Puppet 2.7 language reference. EXCITING! Well, exciting to me, at least. Table of contents: http://docs.puppetlabs.com/puppet/2.7/reference/ Visual index (for when you know what you're looking for but you don't know what it's called): http://docs.puppetlabs.c

Re: [Puppet Users] package handling in puppet?

2012-08-21 Thread Ramin K
On 8/21/2012 9:05 AM, lamour wrote: I'm starting to feel like, maybe, I have a fundamentally flawed concept of how puppet is intended to be used. (new to puppet. setting up initial puppet environment. blah blah) so, I've got most of the pieces worked out, but I've hit a major roadblock with t

Re: [Puppet Users] Virtual Resources with variables

2012-08-21 Thread Douglas Brancaglion
Tks! Work fine now. Hugs, 2012/8/21 Walter Heck > Realize add_user instead of user.. > > Sent from my galaxy tab > On Aug 22, 2012 3:01 AM, "Douglas Brancaglion" > wrote: > > > realize > } > On Aug 22, 2012 3:01 AM, "Douglas Brancaglion" > wrote: > >> Hi! >> >> I am facing difficulties in u

Re: [Puppet Users] package handling in puppet?

2012-08-21 Thread lamour
On Tuesday, August 21, 2012 1:22:24 PM UTC-4, Craig White wrote: > > > > if you have packages that are pre-requisites for more than one other > package, create a separate class and include the class where desired. Done. > > Ok, I'm just making sure that I understand what you're sayi

Re: [Puppet Users] Virtual Resources with variables

2012-08-21 Thread Walter Heck
Realize add_user instead of user.. Sent from my galaxy tab On Aug 22, 2012 3:01 AM, "Douglas Brancaglion" wrote: > realize > } On Aug 22, 2012 3:01 AM, "Douglas Brancaglion" wrote: > Hi! > > I am facing difficulties in using the virtual resource types in resorce > custom, I have a definition

[Puppet Users] Virtual Resources with variables

2012-08-21 Thread Douglas Brancaglion
Hi! I am facing difficulties in using the virtual resource types in resorce custom, I have a definition of user creation as shown below: define add_user ( $email, $uid, $key, $groups ) { $username = $title user { $username: comment=> "$email",

[Puppet Users] Using Virtual Resource in custom resource type

2012-08-21 Thread Douglas Brancaglion
Hi! I am facing difficulties in using the virtual resource types in resorce custom, I have a definition of user creation as shown below: define add_user ( $email, $uid, $key, $groups ) { $username = $title user { $username: comment=> "$email",

Re: [Puppet Users] Re: Installing Java software on Windows using Puppet

2012-08-21 Thread Jeff Sussna
After trying out http://mnaoumov.wordpress.com/2012/07/24/powershell-add-directory-to-environment-path-variable/ I realized it's smart enough to: 1. Read the old PATH value from the registry (thus getting around the facter path problem) 2. Only add the new dir if it's not already in PATH 3. Br

Re: [Puppet Users] don't push out facter-1.6.11 without testing ; causes puppetd hang

2012-08-21 Thread Eric Sorenson
Ugh, the only code changes between 1.6.10 and 1.6.11 are /proc related changes for selinux detection. https://github.com/puppetlabs/facter/commit/a836764790be14acc276ab039080316f65b2 So this is somehow tickling the buggy select() behaviour. Will spend more time on tracking this down today;

Re: [Puppet Users] Re: Hiera not overriding values from the Hierarchy files

2012-08-21 Thread R.I.Pienaar
- Original Message - > From: "linuxbsdfreak" > To: puppet-users@googlegroups.com > Sent: Tuesday, August 21, 2012 6:15:03 PM > Subject: [Puppet Users] Re: Hiera not overriding values from the Hierarchy > files > > > > Hi All, > > Can anyone help debug this issue with hiera? I am una

Re: [Puppet Users] package handling in puppet?

2012-08-21 Thread Craig White
On Aug 21, 2012, at 9:05 AM, lamour wrote: > I'm starting to feel like, maybe, I have a fundamentally flawed concept of > how puppet is intended to be used. (new to puppet. setting up initial > puppet environment. blah blah) > > so, I've got most of the pieces worked out, but I've hit a maj

[Puppet Users] Re: Hiera not overriding values from the Hierarchy files

2012-08-21 Thread linuxbsdfreak
Hi All, Can anyone help debug this issue with hiera? I am unable to get hiera to work with puppet as expected. Regards, Kevin On Monday, August 20, 2012 11:21:44 AM UTC+2, linuxbsdfreak wrote: > Hi All, > > I am facing a real issue with hiera not picking values from the Hierarchy > i have

[Puppet Users] erb template test if value in array

2012-08-21 Thread LTH
In an .erb template, I want to test if a value is in an array (and if yes do something). I thought the way to do it might me something like: <% if @testservers.include? @fqdn %> environment = test <% else %> environment = production <% end %> However that blows up complaining that .include is a

[Puppet Users] package handling in puppet?

2012-08-21 Thread lamour
I'm starting to feel like, maybe, I have a fundamentally flawed concept of how puppet is intended to be used. (new to puppet. setting up initial puppet environment. blah blah) so, I've got most of the pieces worked out, but I've hit a major roadblock with the way packages are handled in pupp

Re: [Puppet Users] Dynamic Lookup of facter variable.

2012-08-21 Thread Tim Mooney
In regard to: Re: [Puppet Users] Dynamic Lookup of facter variable., Nigel...: It's one of those things that I wish I had known before I spent hours changing our modules in preparation for what I thought was going to be a requirement for puppet 3.x, but better late than never. :-) I appreciate

Re: [Puppet Users] Dynamic Lookup of facter variable.

2012-08-21 Thread Nigel Kersten
On Mon, Aug 20, 2012 at 9:50 PM, Tim Mooney wrote: > In regard to: Re: [Puppet Users] Dynamic Lookup of facter variable., > Nigel...: > Facts were supposed to be able to be referenced as $factname without throwing the deprecation warning in your release, it's been fixed in later ver

Re: [Puppet Users] Re: Installing Java software on Windows using Puppet

2012-08-21 Thread Jeff Sussna
A path type/provider would be great, since the need is so common. For example, 7Zip has an MSI, but to use the command line tools you have to edit PATH. Also, since facter prepends the Puppet dirs to PATH, every time I update PATH from $::path it adds another copy of the Puppet dirs, and quickl

Re: [Puppet Users] plugin sync and different platforms

2012-08-21 Thread Jeff McCune
Yes, the confine system should work well for this situation. -Jeff On Mon, Aug 20, 2012 at 6:54 PM, James A. Peltier wrote: > > > -- > > -- > > On Monday, August 20, 2012, James A. Peltier wrote: > >> Hi All, >> >> I'm trying to write some

[Puppet Users] Install rubygem package in order to use with library

2012-08-21 Thread Sergey V. Arlashin
Hello! I have a custom function which requires a ruby gem which I have in my deb-repository. If the package is installed beforehand manually the function works well. But if I want to install the package with puppet I get the following error: out: Could not autoload zabbix_host: no such file to

Re: [Puppet Users] Re: Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord

2012-08-21 Thread Sam Kottler
Storeconfigs use activerecord as an ORM. -Sama On Tue, Aug 21, 2012 at 7:30 AM, NewpTone wrote: > > Thx,this really helps me ,but I wonder why storeconfig setting will > cause the error ? > 在 2011年12月22日星期四UTC+8上午3时53分55秒,Joehillen写道: >> >> Ok, I solved the issue. >> >> It took some doing beca

[Puppet Users] Re: Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord

2012-08-21 Thread NewpTone
Thx,this really helps me ,but I wonder why storeconfig setting will cause the error ? 在 2011年12月22日星期四UTC+8上午3时53分55秒,Joehillen写道: > > Ok, I solved the issue. > > It took some doing because apparently puppet doesn't work with the newest > version of activerecord. > > http://projects.puppetlabs