[Puppet Users] "Future" parser and "return value" of resource definition

2013-05-24 Thread Simon Marechal
A simple example : file { '/tmp/out': content => [1,2,3,8].each |$v| { file { "/tmp/$v": content => $v; } } } Should it be valid to use "each" here ? If it is, what is the expected behavior (in my test the content of /tmp/ou

Re: [Puppet Users] puppet apply -- override node name, module path

2013-05-24 Thread Nan Liu
On Fri, May 24, 2013 at 3:39 PM, Martin Langhoff wrote: > Hi folks, > > testing puppet configs, I have > > /home/martin/mytestingpuppetconfigs/{manifests,modules} > > and while working in there, I would like to be able to say something > along the lines of: > > puppet apply --noop --nodename=fo

[Puppet Users] Error: Could not find dependency Yumrepo[puppetlabs-products] for Package[puppet]

2013-05-24 Thread Jagan Kommineni
I have installed puppet from puppet-labs yum repository on OEL familiy of Red Hat Enterprise Linux Server release 5.9 (Tikanga) [root@oel-puppet-master modules]# yum list facter Loaded plugins: rhnplugin, security This sy

Re: [Puppet Users] apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Greg Sutcliffe
On 24 May 2013 21:55, Eric Sorenson wrote: > Hi Greg, thanks for the info -- I slightly disagree that the docs should > describe manual installation; IMO they should describe supported/official > ways to do things, because anything that's documented gets interpreted as > being supported and offic

[Puppet Users] Re: PuppetDb Query Help/Problems

2013-05-24 Thread Worker Bee
Actually, I am getting no results.. [ ] I assume this means that facts are not being stored but, I cannot figure out why/how to troubleshoot... Thanks! On Fri, May 24, 2013 at 7:23 PM, Worker Bee wrote: > Hi All; > > I am using the PuppetDD 1.3 docs. I am attempting to run the following >

[Puppet Users] PuppetDb Query Help/Problems

2013-05-24 Thread Worker Bee
Hi All; I am using the PuppetDD 1.3 docs. I am attempting to run the following query: curl -H 'Accept: application/json' -X GET http://localhost:8080/v2/resources--data-urlencode query@db_look Contents of db_look: ["=", "certname", "puppet-satellite"] However, I get no results with this... I

[Puppet Users] puppet apply -- override node name, module path

2013-05-24 Thread Martin Langhoff
Hi folks, testing puppet configs, I have /home/martin/mytestingpuppetconfigs/{manifests,modules} and while working in there, I would like to be able to say something along the lines of: puppet apply --noop --nodename=foo01 --modulepath=./modules manifests/site.pp which should tell me what p

[Puppet Users] zpool resource fails with incorrect error

2013-05-24 Thread treydock
I'm working to expand / develop on the zpool built-in type, but the zpool command is failing and Puppet's returned stderr is not what I get if I copy/paste the command given by the debug output. # cat /etc/puppet/manifests/zpool_raidz2.pp zpool { 'tank': ensure => present, raidz =

[Puppet Users] PuppetDB Architecture Questions

2013-05-24 Thread Worker Bee
Hi Everyone; I am having a bit of challenge understanding the PuppetDB 1.3 Architecture. When I installed using the packages in the puppet repo, it was difficult for me to determine where the postgres database was installed but, I found that it was installed in /var/lib/puppetdb. I am a serious

Re: [Puppet Users] PuppetDB

2013-05-24 Thread Worker Bee
Thanks! Sorry for the blackout there I just found it! That was too easy! :) Worked perfectly! Thank you! Bee On Fri, May 24, 2013 at 5:36 PM, Ashley Penney wrote: > You definitely still need postgres! If you grab > http://forge.puppetlabs.com/puppetlabs/puppetdb instead of installing it

Re: [Puppet Users] PuppetDB

2013-05-24 Thread Ashley Penney
You definitely still need postgres! If you grab http://forge.puppetlabs.com/puppetlabs/puppetdb instead of installing it manually, it will help you get postgres and all the other dependencies you need installed. On Fri, May 24, 2013 at 5:33 PM, Worker Bee wrote: > Hi Everyone; > > I am sorry t

[Puppet Users] PuppetDB

2013-05-24 Thread Worker Bee
Hi Everyone; I am sorry to be a pest but, I am very confused here. I just installed the latest PuppetDB from the repo packages. However, it does not appear that postgres is installed. I am really lost here... is postgres no longer required? Thanks! Bee -- You received this message because you

Re: [Puppet Users] apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Eric Sorenson
On May 24, 2013, at 1:53 AM, Greg Sutcliffe wrote: > I've hit this, but it's because I have the main Puppetlabs repo in my preseed > file for new virtual machines, so it's available within the installer > environment. That's just text, so I only have a line for "deb > http://apt.puppetlabs.com

Re: [Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2013-05-24 Thread Josh Cooper
On Wed, May 22, 2013 at 12:39 AM, Russell Maclean < hyperthinker1...@gmail.com> wrote: > Thank you for clearing this up. > What I am not understanding is why this fails. If anyone could help me > figure this out would be greatly appreciated. > > [files] > path /etc/puppet/files > allow_ip 10.0.0.0

[Puppet Users] Apache Passenger: Action 'configtest' failed

2013-05-24 Thread valentino
I am running apache for the first time and get this error. puppet@puppetmastervm:/etc/apache2/mods-available$ sudo service apache2 restart[sudo] password for puppet: Syntax error on line 3 of /etc/apache2/sites-enabled/puppetmaster: Invalid command 'PassengerHighPerformance', perhaps misspelled

[Puppet Users] Apache Passenger Fail

2013-05-24 Thread valentino
I just setup my puppetmaster with passenger and I get the following error. Any help would be appreciated. I'm on Ubuntu 13.04 puppet@puppetmastervm:/etc/apache2/mods-available$ sudo service apache2 restart[sudo] password for puppet: Syntax error on line 3 of /etc/apache2/sites-enabled/puppetmas

[Puppet Users] Re: accessing one master via multiple hostnames (internal & external)

2013-05-24 Thread jcbollinger
On Thursday, May 23, 2013 6:01:14 AM UTC-5, Ernest Beinrohr wrote: > > Hi, I currently use one puppetmaster for my external and internal servers. > For the externals however I have to modify my /etc/hosts for puppet to > work. > > Is it possible to use a different hostname for my master withou

Re: [Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Matthaus Owens
Maik, there was an update via the puppetlabs-release package to update the sources.list file to add the dependencies repo. 2013/5/24 Maik Kulbe : > I can confirm this too and think the way of installing this via a .deb is > not very nice to admins with more then 10 servers. Why do I need to instal

Re: [Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Matthaus Owens
Peter, hiera-puppet is built in to puppet 3.x, so you don't need to install it explicitly. On Fri, May 24, 2013 at 4:56 AM, Peter wrote: > Eric, > > Damn forgot to cut message down and include the error messages. > > Essentially when I try to install puppet-hiera I get this error message: > > roo

[Puppet Users] Re: Suppress deprecation warnings because of Referencing Variables

2013-05-24 Thread Christopher Rutter
I am in the same boat here. For example there are a few puppetlabs modules that currently don't have a stable release that fixes this: - https://github.com/puppetlabs/puppetlabs-mysql - tag 0.6.1 (pull request ) - https://github.

[Puppet Users] ossec integration

2013-05-24 Thread Björn
Hello, I recently found this great sample in the wiki to integrate ossec. http://projects.puppetlabs.com/projects/1/wiki/OSSEC-HIDS_Patterns Once you installed openssl-devel on your ossec server while installation, the ossec-authd is compilied too and you are able to add clients to ossec ser

[Puppet Users] Re: Problems installing git for windows using Puppet

2013-05-24 Thread Kevin D
Louis, Unfortunately, the way that Git for Windows is packaged, it doesn't update the registry (HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall) or touch the Windows Installer Database (and update the WMI Win32_Product). As a result, no matter how you perform the installation (using e

Re: [Puppet Users] Announce: Puppet 3.2.1 Available

2013-05-24 Thread Andreas Ntaflos
On 24/05/13 11:43, Paul Tötterman wrote: Did something change in the way Puppet outputs messages? Until this morning we used the following to run Puppet from Cron on all our nodes: But as of 3.2.1 this produces output on every Puppet agent run and that output is mailed out, resu

[Puppet Users] Re: manifest for fusioninventory-agent

2013-05-24 Thread Stan
thanks a lot i change my manifest with hasstatus false and it's ok!!! service { 'fusioninventory-agent': ensure => running, hasstatus => false, hasrestart => false, enable => true,

[Puppet Users] Re: Suppress deprecation warnings because of Referencing Variables

2013-05-24 Thread Nam Nguyen
John, thanks so much for your notice, yes I thought about this too, and, now I think I should spend sometime fixing them rather than suppressing. At first I was frustrated because of so many warning, but now I got it, I dont think I should stop at version < 3.2. NN On Friday, May 24, 2013 9:1

Re: [Puppet Users] Puppet/Nagios/PuppetDB slow performance

2013-05-24 Thread Ken Barber
Its probably the nagios resource, its well known for not scaling when the files contain a lot of entries. That would explain why your PuppetDB is showing low load - as its probably not the bottleneck. The most performant work-around I've seen for this is that you can use the nagios_* resources to

[Puppet Users] Re: Exec question: variable expansion to set gconf string

2013-05-24 Thread Kodiak Firesmith
D'oh! I figured out how to just get it to cat /etc/issue which wins since I'll only have to manage the banner in one place. # Turn on and enforce the contents of the GDM legal banner. exec { 'gconftool-2 --set --type=string /apps/gdm/simple-greeter/banner_message_text "$(cat /etc/issue)"':

[Puppet Users] Re: Execution order of classes

2013-05-24 Thread jcbollinger
On Friday, May 24, 2013 5:12:33 AM UTC-5, Markus Shorty Uckelmann wrote: > > Hi all, > > I'm stuck in the hell of class dependencies and hope that someone here > can help me. > > Puppet-Version is 2.7.21 > It's the Debian Squeeze package from the Puppetlabs Repo. > > I want one class to mana

[Puppet Users] Re: Suppress deprecation warnings because of Referencing Variables

2013-05-24 Thread jcbollinger
On Thursday, May 23, 2013 11:09:51 PM UTC-5, Nam Nguyen wrote: > > Hey guys, > after upgrading Puppet to version 3.2.1 I got lots of warning like this: > > Warning: Variable access via 'logroot' is deprecated. Use '@logroot' > instead. > template[/etc/puppet/modules/apache/templates/vhost-def

[Puppet Users] Re: Example of a working runinterval + splay configuration?

2013-05-24 Thread Michael O'Dea
Oops nevermind. The host I sampled in the logs still was running the 2.7.18 Puppet client. I re-checked a host running 3.1.1 and it does appear to be varying it's runs somewhat. Need to retire all those puppet 2.7 hosts! On Friday, May 24, 2013 9:47:49 AM UTC-4, Michael O'Dea wrote: > > I ha

[Puppet Users] Re: Execution order of classes in a node

2013-05-24 Thread jcbollinger
On Thursday, May 23, 2013 1:45:55 PM UTC-5, Bikram Agarwal wrote: > > Hi. > > I have three modules in my puppet/modules - > >1. jdk_installer >2. weblogic_installer >3. wldomain_create > > Each of them have one class (same names as modules). > > I have a node in site.pp which cal

[Puppet Users] Example of a working runinterval + splay configuration?

2013-05-24 Thread Michael O'Dea
I have a substantial number of Windows hosts running puppet 3.1.1 with the following in their puppet.conf: runinterval = 1800 > splay = true > splaylimit = 900 However in checking puppet logs, I'm finding that these hosts are dialing in at 30 minute intervals +/- 5-10 seconds. Can someone pro

[Puppet Users] Puppet/Nagios/PuppetDB slow performance

2013-05-24 Thread Jonathan Gazeley
Hi all, For months now I've been using Puppet with PuppetDB backend to manage my Nagios configs. We now have 1200+ services being checked and including servicedependency, host, hostdependency, command and other Nagios resources being managed, that's about 3000 resources in total. Unfortunatel

Re: [Puppet Users] Execution order of classes

2013-05-24 Thread Markus "Shorty" Uckelmann
Am 24.05.2013 11:35, schrieb Markus Uckelmann: > Hi all, Sorry for the double post. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@goo

Re: [Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Peter
Eric, Damn forgot to cut message down and include the error messages. Essentially when I try to install puppet-hiera I get this error message: root@play apt/sources.list.d# apt-get install hiera-puppet Reading package lists... Done Building dependency tree Reading state information... Done Some

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Kodiak Firesmith
Hello, We are doing something similar to manage our entire Puppet hierarchy with Subversion. Essentially we make changes 'go live' in Puppet by using post-hooks that copy the modified files into the normal puppet areas upon committing. We use svnserve with GSSAPI auth and sub-repository leve

[Puppet Users] Exec question: variable expansion to set gconf string

2013-05-24 Thread Kodiak Firesmith
Hi Everybody, So I'm working on a workstation_policies module that will basically set a ton of gconf keys. I think I have everything figured out except for a clean way to throw a long legal banner into an exec for gconf. This should give an idea of what I thought would work per my interpretati

Re: [Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Peter
Hi Eric, I was setting up a fresh VM in my dev environment and ran into this same issue. Here is how I setup and install puppet in my VM #!/bin/bash -x CODENAME=$(lsb_release -cs | tr '[A-Z]' '[a-z]') [ -z $CODENAME ] && echo "Codename not set" && exit 1; pkgname="puppetlabs-release-${CODE

[Puppet Users] Re: Manage config files with Puppet and version control software

2013-05-24 Thread Maik Kulbe
You could create a puppet module and clone the repo into a subirectory of the files-dir of that module. Then you create a cronjob(on the puppet master) that pulls the repo every n minutes. Then you can use this file now in a puppet manifest. But I would highly recommend to add some kind of autom

[Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Maik Kulbe
I can confirm this too and think the way of installing this via a .deb is not very nice to admins with more then 10 servers. Why do I need to install a package for installing some sources.list.d file when I want it all automated. Automation has to do a lot with simplification IMHO, because the

[Puppet Users] Execution order of classes

2013-05-24 Thread Markus Uckelmann
Hi all, I'm stuck in the hell of class dependencies and hope that someone here can help me. Puppet-Version is 2.7.21 It's the Debian Squeeze package from the Puppetlabs Repo. I want one class to manage everything database related. So I call it in "site.pp" like this: node client1 { class

[Puppet Users] Execution order of classes

2013-05-24 Thread Markus "Shorty" Uckelmann
Hi all, I'm stuck in the hell of class dependencies and hope that someone here can help me. Puppet-Version is 2.7.21 It's the Debian Squeeze package from the Puppetlabs Repo. I want one class to manage everything database related. So I call it in "site.pp" like this: node client1 { class

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Dusan Dordevic
Thanks for feedback once more. I will try it as well then... Best regards, Dušan On Fri, May 24, 2013 at 11:20 AM, Brian Lalor wrote: > On May 24, 2013, at 6:14 AM, Dusan Dordevic < > dusan.dorde...@clavistechnology.com> wrote: > > My problem is following, if I want to manage /etc/mysql/my.cnf

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Brian Lalor
On May 24, 2013, at 6:14 AM, Dusan Dordevic wrote: > My problem is following, if I want to manage /etc/mysql/my.cnf and other > config files, that means I would need to make repository in / which I am not > really happy with. Mercurial that we are using do not support relocating > files, so I

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Dusan Dordevic
Hi, Yes, I know about vcsrepo module and that part is not a problem. It is fairly easy to set it up and pull release from repository. My problem is following, if I want to manage /etc/mysql/my.cnf and other config files, that means I would need to make repository in / which I am not really happy

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Brian Lalor
On May 24, 2013, at 4:12 AM, dusan.dorde...@clavistechnology.com wrote: > I want to manage some configuration files (let's say my.cnf) using Puppet. I > want to keep that file in some version control repository and developers will > have access to it. Once they change it, Puppet should pull it,

Re: [Puppet Users] Announce: Puppet 3.2.1 Available

2013-05-24 Thread Paul Tötterman
> > Did something change in the way Puppet outputs messages? Until this morning we used the following to run Puppet from Cron on all our nodes: > But as of 3.2.1 this produces output on every Puppet agent run and that > output is mailed out, resulting in hundreds of messages which contain

Re: [Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-24 Thread Greg Sutcliffe
On 23 May 2013 22:25, Eric Sorenson wrote: > Quick question for those of you affected by this -- what did you to do to > add the puppetlabs apt repo? > > Did you do it through the method described here: > http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#for-debian-and-ubuntu

[Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread dusan . dordevic
Hi, I want to manage some configuration files (let's say my.cnf) using Puppet. I want to keep that file in some version control repository and developers will have access to it. Once they change it, Puppet should pull it, put it in place on server and restart service. Is there any general gui