[Puppet Users] Re: Augeas & Arrays

2012-05-29 Thread steve foster
Thanks for the suggestions... so now we have: class {'test': tport => ['1700', '1701'], } class test ($tport) { fwport{"spoo": fport => $tport, } } define fwport ($fport) { augeas{$fport: context => "/files/etc/sysconfig/iptables/table", changes => ['ins append before append[.="IN

Re: [Puppet Users] Re: Puppet on Windows: Avoid download msi files if they aren't going to be installed

2012-05-29 Thread tiochan
That worked, thanks a lot. El viernes, 25 de mayo de 2012 16:49:30 UTC+2, Jeff McCune escribió: > > On Fri, May 25, 2012 at 5:43 AM, jcbollinger wrote: > >> >> On May 25, 3:58 am, tiochan wrote: >> >> This stanza: >> >> > file { 'C:\\SOFTWARE\\7z920.msi': >> > source => 'puppet://pup

Re: [Puppet Users] Managing Puppet modules as RPMs

2012-05-29 Thread Kristof Willaert
Hi, [snip] Very interesting that you should say that you created a Puppet master for > each environment ... it's the obvious way to accommodate the limits of RPM > packaging while retaining the ability to use Puppet in full agent mode. > > Is this considered a best practice? What other considerat

[Puppet Users] "could not find user" when running as daemon

2012-05-29 Thread pattryn
Hi all, I have this problem I can't figure out. I have a very simple define to deploy SSH keys to certain LDAP users: define sshkeys::install () { file{"/home/${title}": ensure => directory, owner => "${title}", group => "ldapgroup", } } which I then call using:

Re: [Puppet Users] Re: Augeas & Arrays

2012-05-29 Thread Denmat
Hi Steve, I believe he meant that you pass your array directly to the defined type: > class test ($tport) { > fwport{ $fport: } > } > define fwport { > $fport = $name > augeas{$fport: > context => "/files/etc/sysconfig/iptables/table", I hope that gives you the idea. Regards, Den

[Puppet Users] Re: Puppet/Hiera and Git workflow

2012-05-29 Thread Jos Houtman
I am setting up a new workflow myself, it will be as follows: One git repo for modules and manifests, a second for hiera. Branches are for features and personal development branches. I might install forge repositories in a different modulepath to force working with the community. The git reposi

[Puppet Users] Re: Puppet/Hiera and Git workflow

2012-05-29 Thread Carlos Rico
We work only with one Git repository for Puppet, and it contains: - 1 directory for hiera-data -> structured environments. For instance: hiera-data |--common | |- us |--master | |- us |--production (etc) - 1 directory for all nodes, and 1 manifests file (xx.pp) for each

Re: [Puppet Users] Re: Augeas & Arrays

2012-05-29 Thread steve foster
Cheers for the clarification Den... Works a charm now :-) S On Tuesday, May 29, 2012 11:43:21 AM UTC+1, denmat wrote: > > Hi Steve, > > I believe he meant that you pass your array directly to the defined type: > > class test ($tport) { > fwport{ $fport: } > } > > > define fwport { > $fport =

[Puppet Users] Re: Puppet First Run after Install failing in module pe_mcollective

2012-05-29 Thread Shiva
Jeff This is where the keytool is lrwxrwxrwx. 1 root root 49 Apr 27 08:18 keytool -> /usr/lib/jvm/ jre-1.6.0-openjdk.x86_64/bin/keytool Thanks Shiva On May 24, 6:47 pm, wrote: > -- Sent from my HP VeerOn May 24, 2012 17:21, Jeff McCune > wrote:On Tue, May 22, 2012 at 6:58 AM, > Shivawrote:I

[Puppet Users] Re: Managing Puppet modules as RPMs

2012-05-29 Thread jcbollinger
On May 26, 8:56 pm, Anthony Shortland wrote: > We're using Puppet as part of a broader toolchain that relies on delivering > software for deployment using sets of Yum-based RPM packages. We've setup > system, role and application specific Yum repositories on an > environment-by-environment ba

[Puppet Users] Re: cannot generate tempfile `/tmp/puppet.30616.9'

2012-05-29 Thread jcbollinger
On May 27, 9:30 am, Mukul Malhotra wrote: > This error is due to the attributes which are applied to the paticular file. > > Check lsattr & remove the chattr attribute then run puppet > again My guess would be that the filesystem containing /tmp is mounted read- only. The kernel could pu

[Puppet Users] how to reassign variable extlookup in manifest files

2012-05-29 Thread liondgr8
Hi puppet users, I would like to know how to reassign the global variables specifically extlookup_datadir, extlookup_precedence. My use case is in such a way that suppose I have 2 agents handled by master. Agent1 requires the custom parameters for the module installation. These parameter files(*.

[Puppet Users] Re: err: Invalid argument - /var/lib/puppet/state/puppetdlock

2012-05-29 Thread jcbollinger
On May 25, 12:48 pm, Ed Greenberg wrote: > I have the error err: Invalid argument - /var/lib/puppet/state/ > puppetdlock   appearing on one of my servers. > > I have plenty of disk and plenty of inodes. > > The daemon is not running.  I run it manually using /usr/sbin/puppetd > --verbose --no-da

[Puppet Users] Re: Variable qualification: ordering or reset possible?

2012-05-29 Thread jcbollinger
On May 25, 10:12 am, Mathias Klette wrote: > Hi, > > I'm wondering in which order puppet qualifies variables when using default > values at the same time. > > I'm trying to set this up for a general ntp-class serving ntp.conf for > server and client-mode. There is a general params-subclass which

Re: [Puppet Users] puppet-load forbidden request to /catalog/*

2012-05-29 Thread Matthew Burgess
On Tue, May 22, 2012 at 5:43 PM, Ryan Coleman wrote: > On Tue, May 22, 2012 at 2:56 AM, Matthew Burgess > wrote: >> Thanks for any help, either in being able to get puppet-load to load >> test our environment, or in letting me know what might cause our >> clients to fail to check in reliably if i

[Puppet Users] Re: Puppet caching user/uids

2012-05-29 Thread jcbollinger
On May 28, 11:17 am, Luke Bigum wrote: > Hi all, > > Does anyone have an all-in-one-run work around for this issue: > > http://projects.puppetlabs.com/issues/791 > > Where Puppet / Ruby / libc is not rereading the naming service settings > if Puppet itself changes them. I've got a situation wher

[Puppet Users] I did something stooopid in a custom fact and I do not know what

2012-05-29 Thread Dan White
I'm a custom fact n00b :( ---broadcast.rb: #Return the broadcast address of eth0 require 'facter' Facter.add("broadcast") do ipaddr = Facter.value('ipaddress') nmask = Facter.value('netmask') setcode do Facter::Util::Resolution.exec{"ipcalc -s -b #{ipaddr} #{nmask} | cut -d=

[Puppet Users] Interactive Debian Package Installation?

2012-05-29 Thread Dennis Benzinger | hybris
Hello! For some machines I want to do a semi automated installation via puppet apply. Is it possible to tell Puppet to install Debian packages interactively in this case? So that for example the MySQL root password can be entered. Cheers, Dennis Benzinger | hybris GmbH -- You received t

Re: [Puppet Users] I did something stooopid in a custom fact and I do not know what

2012-05-29 Thread Gary Larizza
On Tue, May 29, 2012 at 8:55 AM, Dan White wrote: > I'm a custom fact n00b :( > > ---broadcast.rb: > #Return the broadcast address of eth0 > require 'facter' > > Facter.add("broadcast") do >ipaddr = Facter.value('ipaddress') >nmask = Facter.value('netmask') >setcode do >Facter

Re: [Puppet Users] Interactive Debian Package Installation?

2012-05-29 Thread Nan Liu
On Tue, May 29, 2012 at 7:03 AM, Dennis Benzinger | hybris wrote: > Hello! > > For some machines I want to do a semi automated installation via puppet > apply. Is it possible to tell Puppet to install Debian packages > interactively in this case? So that for example the MySQL root password can > b

[Puppet Users] Puppet Dashboard: Setting up RAILS environment

2012-05-29 Thread Gmoney
no matter what I try I keep getting this error: rake RAILS_ENV=production db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake aborted! Access denied for user 'dashboard'@'localhost' to database 'production' I ha

[Puppet Users] Simply Auto Increment A Number

2012-05-29 Thread Brian Carpio
Hi, I have a template which looks like this <% scope.lookupvar('openldap::params::ldapservers').each do |var| -%> olcSyncrepl: {0}rid=001 provider="ldap://<%= var %>:389" type=refreshAndPer sist retry="5 5 300 +" searchbase="<%= scope.lookupvar('openldap::params::searchbase') %>" attrs="*,+" bin

Re: [Puppet Users] I did something stooopid in a custom fact and I do not know what

2012-05-29 Thread Dan White
Fantastic ! Thanks, Gary. I knew it had to be some bone-head boo-boo like that. I trimmed it down further: #Return the broadcast address of eth0 require 'facter' Facter.add("broadcast") do setcode ("ipcalc -s -b #{Facter.value('ipaddress')} #{Facter.value('netmask')} | cut -d= -f2") end “

Re: [Puppet Users] Re: Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread Matthaus Litteken
Yes, as mentioned in the release notes, hiera and the hiera puppet functions (hiera-puppet) are required for Puppet 3.0. That dependency is not limited to puppetmasters, which is why it isn't in the puppet-server section. With respect to /sbin files, the release notes mentioned the following: * S

Re: [Puppet Users] I did something stooopid in a custom fact and I do not know what

2012-05-29 Thread Gary Larizza
You can go further by removing the require facter line as it should be unnecessary too :) On Tue, May 29, 2012 at 11:41 AM, Dan White wrote: > Fantastic ! > Thanks, Gary. I knew it had to be some bone-head boo-boo like that. > > I trimmed it down further: > > #Return the broadcast address of et

[Puppet Users] Re: Puppet/Hiera and Git workflow

2012-05-29 Thread Andy Taylor
Thanks guys, very interesting. I guess the main thing I'm concerned about with my workflow is that I'll be doing a lot of merging, and I'm not sure how sustainable that is. For example: 1. Add new feature to unstable 2. Merge to dev 3. Merge to testing 4. Merge to production The idea being that o

[Puppet Users] Puppet kick --ping retrieves and applies the catalog on the agent host!!

2012-05-29 Thread Vitthal "Suhas" Gogate
When I do puppet kick --ping to puppet agent on some host, agent retrieves the catalog from master and applies it locally.. is it the intended behavior for --ping option. Man page says it just does ICMP echo on agent port. Pl. help if you have more insight.. may be I am missing something.. Appr

[Puppet Users] Re: Puppet Dashboard: Setting up RAILS environment

2012-05-29 Thread Gmoney
solved my own issue, the DB name should be: dashboard, comes as production_dashboard in Ubuntu 12.04 database.yml file. then: rake RAILS_ENV=production db:remove rake RAILS_ENV=production db:create rake RAILS_ENV=production db:migrate I hope this helps the poor soul that stumbles across this as

Re: [Puppet Users] Puppet/Hiera and Git workflow

2012-05-29 Thread Nigel Kersten
On Mon, May 28, 2012 at 6:14 AM, Andy Taylor wrote: > I'm currently trying to work out the best way structure my Puppet > environments and VCS structure. At the moment I'mk working on > something like this: > > Three Git repositories (one for modules, one for Hiera, one for node > manifests) > Mu

Re: [Puppet Users] I did something stooopid in a custom fact and I do not know what

2012-05-29 Thread Dan White
I will try that and report back. Thanks again for your assistance. - Gary Larizza wrote: > You can go further by removing the require facter line as it should be > unnecessary too :) > > On Tue, May 29, 2012 at 11:41 AM, Dan White wrote: > > > Fantastic ! > > Thanks, Gary. I knew it had

[Puppet Users] Re: Puppet/Hiera and Git workflow

2012-05-29 Thread Andy Taylor
The git branches/Puppet environments actually mirror the infrastructure. So we have groups of servers. Unstable is just for nodes which I test new functionality on, dev is for web developers. So it seemed to make sense to mirror the environments in the git repository with branches. On May 29, 9:28

Re: [Puppet Users] Re: Puppet First Run after Install failing in module pe_mcollective

2012-05-29 Thread Jeff McCune
On Tue, May 29, 2012 at 6:19 AM, Shiva wrote: > Jeff > > This is where the keytool is > > lrwxrwxrwx. 1 root root 49 Apr 27 08:18 keytool -> /usr/lib/jvm/ > jre-1.6.0-openjdk.x86_64/bin/keytool > That looks correct. What version of the package do you have installed? You can check using: rpm -qf

Re: [Puppet Users] Re: Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread hai wu
Hello, Maybe I am missing something major, but why we would need to install both hiera and hiera-puppet packages on every puppet nodes (including client)? My understanding is that hiera is just for backend data, and is only needed on puppetmaster .. I was referring to /usr/sbin/puppetmasterd is m

Re: [Puppet Users] Interactive Debian Package Installation?

2012-05-29 Thread Brian Gupta
On Tue, May 29, 2012 at 12:11 PM, Nan Liu wrote: > On Tue, May 29, 2012 at 7:03 AM, Dennis Benzinger | hybris > wrote: >> Hello! >> >> For some machines I want to do a semi automated installation via puppet >> apply. Is it possible to tell Puppet to install Debian packages >> interactively in thi

Re: [Puppet Users] Re: Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread Adrien Thebo
> '/rpm/SOURCES/CIG-puppet-3.0.0rc2/conf/redhat/server.init' What's CIG-puppet? -- Adrien Thebo | Puppet Labs Operations Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, May 29, 2012 at 2:11 PM, hai wu wrote: > Hello, > > Maybe I am missing something major, but why we woul

Re: [Puppet Users] Re: Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread hai wu
Please disregard that, it should be /rpm/SOURCES/puppet-3.0.0rc2/conf/redhat/server.init. I just changed the folder name. Thanks, Hai On 5/29/12, Adrien Thebo wrote: >> '/rpm/SOURCES/CIG-puppet-3.0.0rc2/conf/redhat/server.init' > > What's CIG-puppet? > > -- > Adrien Thebo | Puppet Labs Operation

Re: [Puppet Users] Re: Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread Daniel Pittman
On Tue, May 29, 2012 at 2:11 PM, hai wu wrote: G'day. > Maybe I am missing something major, but why we would need to install > both hiera and hiera-puppet packages on every puppet nodes (including > client)? My understanding is that hiera is just for backend data, and > is only needed on puppetm

Re: [Puppet Users] Re: Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread Matthaus Litteken
Hai, Thanks for catching the problems with the redhat init scripts, they have been updated to reference the correct files. The updated init scripts will be available in the next rc. On Tue, May 29, 2012 at 2:11 PM, hai wu wrote: > Hello, > > Maybe I am missing something major, but why we would ne

Re: [Puppet Users] puppet-dashboard with SELinux enforced - anyone frpm PuppetLab care to comment?

2012-05-29 Thread Sans
Thanks nseagoon! But that didn't help. I already did that. And I'm still trying to understand the audit log. Does any one have any other suggestion(s) for me? Cheers!! On Monday, May 28, 2012 3:48:03 AM UTC+1, nseagoon wrote: > > If you're running puppet as a daemon with selinux in enforcing mo

Re: [Puppet Users] Announce: Puppet 3.0.0rc1 Available

2012-05-29 Thread hai wu
I see, this is to support puppetmaster-less. Thanks for clarifying this. Thanks, Hai On 5/29/12, Daniel Pittman wrote: > On Tue, May 29, 2012 at 2:11 PM, hai wu wrote: > > G'day. > >> Maybe I am missing something major, but why we would need to install >> both hiera and hiera-puppet packages on

[Puppet Users] Announce: Puppet 2.7.15rc3 Available

2012-05-29 Thread Moses Mendoza
Puppet 2.7.15rc3 is a maintenance release candidate for Puppet in the 2.7.x series. Downloads are available at: * Source https://downloads.puppetlabs.com/puppet/puppet-2.7.15rc3.tar.gz Windows package is available at https://downloads.puppetlabs.com/windows/puppet-2.7.15rc3.msi RPMs are availab

Re: [Puppet Users] puppet-dashboard with SELinux enforced - anyone frpm PuppetLab care to comment?

2012-05-29 Thread Romeo Theriault
On Tue, May 29, 2012 at 1:39 PM, Sans wrote: > > Thanks nseagoon! But that didn't help. I already did that. And I'm still > trying to understand the audit log. > Does any one have any other suggestion(s) for me? Cheers!! It may be useful for you to install the 'setroubleshoot' package (that's wha