Re: [Puppet Users] facter values in upper case

2010-05-27 Thread Ohad Levy
you can use inline_template to sanitize your values.. e.g.: $my_type = inline_template("<%= type.upcase %> Ohad On Fri, May 28, 2010 at 2:44 PM, Adam Winberg wrote: > Hi, > > facter variables typically have values in lower case. We are looking > into moving to puppet for our config administrati

[Puppet Users] facter values in upper case

2010-05-27 Thread Adam Winberg
Hi, facter variables typically have values in lower case. We are looking into moving to puppet for our config administration and are currently using a system where we do file name matching dependent on specific suffixes - for example a file named "*--LAPTOP" will only be deployed on machines tagge

Re: [Puppet Users] Puppet Labs Announces Puppet Forge, a Central Repository for Puppet Modules

2010-05-27 Thread Paul Lathrop
Haha! So much for my purchase of puppetstrings.net! I guess I can scrap the crappy code I had put together, too. :-P --Paul On Thu, May 27, 2010 at 6:56 AM, Scott Olson wrote: > Details and links to the Puppet Forge can be found here: > > http://www.puppetlabs.com/blog/puppet-labs-announces-pup

Re: [Puppet Users] Re: running sudo commands

2010-05-27 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/28/2010 07:30 AM, prudhvi wrote: > I face the same problem when trying the package type > [...] > It asks me for root privileges.. well I know 0 system-wide package management systems that don't require root to change the system. but if you got

Re: [Puppet Users] Re: running sudo commands

2010-05-27 Thread Patrick
You have two possible problems. It's also possible that the directory was locked because something else was doing stuff with packages. This is rather unlikely though. The puppet client runs as the user you run it as. If you start it as a service, it runs as root. If you start is as an ordin

[Puppet Users] Re: running sudo commands

2010-05-27 Thread prudhvi
I face the same problem when trying the package type class apache { package { ["apache"] : ensure => latest, } } err: //apache/Package[apache]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--

Re: [Puppet Users] Puppetmaster directly on the Internet

2010-05-27 Thread Daniel Pittman
sasepp writes: > I apologize if this issue has been discussed earlier. If so, please > point me to relevant information. Anyways, here it goes... > > I plan on deploying Puppet to manage several separate nodes, all of > which are accessible directly from the Internet. The nodes are > connected by

[Puppet Users] Re: SuSE and zypper

2010-05-27 Thread jb
looks like a typo/omission. Add: commands :zypper => "/usr/bin/zypper" to zypper.rb or change :rub to :zypper would probably be the right thing to do? On Apr 14, 2:59 am, Alpar wrote: > Hi, > > I found the zypper provider mentioned on this list in another thread, > but it failes with the

Re: [Puppet Users] External nodes Ignore Missing Classes

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 3:25 PM, Douglas Garstang wrote: > On Thu, May 27, 2010 at 2:51 PM, Nigel Kersten wrote: > > > > > > On Thu, May 27, 2010 at 2:47 PM, Douglas Garstang < > doug.garst...@gmail.com> > > wrote: > >> > >> All, > >> > >> I just did a super simple test where I used the simple ex

Re: [Puppet Users] External nodes Ignore Missing Classes

2010-05-27 Thread Douglas Garstang
On Thu, May 27, 2010 at 2:51 PM, Nigel Kersten wrote: > > > On Thu, May 27, 2010 at 2:47 PM, Douglas Garstang > wrote: >> >> All, >> >> I just did a super simple test where I used the simple external nodes >> script at http://docs.puppetlabs.com/guides/external_nodes.html. >> >> I ran it against

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Michael DeHaan
> > Aw Jeez... I wonder if someone could, like, document just how that works? > :) I'll file a bug on myself to clean up that section of the doc site. I'd suspect that returning nothing is an error because it's not YAML, but I'll have to check. --Michael -- You received this message because y

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Douglas Garstang
On Thu, May 27, 2010 at 2:58 PM, Nigel Kersten wrote: > > > On Thu, May 27, 2010 at 2:56 PM, Douglas Garstang > wrote: >> >> On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten wrote: >> > >> > >> > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang >> > >> > wrote: >> >> >> >> On Thu, May 27, 2010 a

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 2:56 PM, Douglas Garstang wrote: > On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten wrote: > > > > > > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang < > doug.garst...@gmail.com> > > wrote: > >> > >> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan < > mich...@puppetlabs.

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Douglas Garstang
On Thu, May 27, 2010 at 2:52 PM, Nigel Kersten wrote: > > > On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang > wrote: >> >> On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan >> wrote: >> > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang >> > wrote: >> >> On Thu, May 27, 2010 at 9:55 AM, Nigel

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 2:42 PM, Douglas Garstang wrote: > On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan > wrote: > > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang > > wrote: > >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten > wrote: > >>> > >>> > >>> On Thu, May 27, 2010 at 9:35 AM, D

Re: [Puppet Users] External nodes Ignore Missing Classes

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 2:47 PM, Douglas Garstang wrote: > All, > > I just did a super simple test where I used the simple external nodes > script at http://docs.puppetlabs.com/guides/external_nodes.html. > > I ran it against an existing node (which you have to since I don't see > how you can tell

[Puppet Users] External nodes Ignore Missing Classes

2010-05-27 Thread Douglas Garstang
All, I just did a super simple test where I used the simple external nodes script at http://docs.puppetlabs.com/guides/external_nodes.html. I ran it against an existing node (which you have to since I don't see how you can tell it not to), and there was no errors. I then realised that even though

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Douglas Garstang
On Thu, May 27, 2010 at 10:34 AM, Michael DeHaan wrote: > On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang > wrote: >> On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten wrote: >>> >>> >>> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang >>> wrote: Does switching to external nodes requi

Re: [Puppet Users] Nagios checks

2010-05-27 Thread Richard Crowley
On Thu, May 27, 2010 at 12:19 PM, Michael DeHaan wrote: > On Thu, May 27, 2010 at 2:37 PM, Peter Berghold > wrote: >> Has anybody out there written a custom check for Nagios to determine if >> puppetd and/or puppetmasterd is running? I am considering writing one if >> not. I did a minimal check

Re: [Puppet Users] Re: running sudo commands

2010-05-27 Thread Patrick
On May 27, 2010, at 5:00 AM, Marley Bacelar wrote: > Shouldn't you use? > > class test { > exec { "sudocmd" : >cwd => "/home/server/", >path => ["/usr/bin/","/usr/sbin/","/ > bin"], >command => "sudo apt-get update -y", >timeout => "-1" >} > } I think the -y is only needed f

Re: [Puppet Users] Nagios checks

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 2:37 PM, Peter Berghold wrote: > Has anybody out there written a custom check for Nagios to determine if > puppetd and/or puppetmasterd is running? I am considering writing one if > not. > I've found a few things: http://www.kallisti.net.nz/blog/2009/02/monitoring-puppet-

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Am Do den 27. Mai 2010 um 17:57 schrieb Nigel Kersten: > > > You'll need to be logged in. > > Ah. Bad. I have no account there and I dislike the idea to create a > > account anywhere to just report a bug. I have that many accounts sprayed > > around

[Puppet Users] Nagios checks

2010-05-27 Thread Peter Berghold
Has anybody out there written a custom check for Nagios to determine if puppetd and/or puppetmasterd is running? I am considering writing one if not. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us.

[Puppet Users] Re: puppetd checkin time??

2010-05-27 Thread CraftyTech
Thanks a lot, Henry On May 27, 12:09 pm, Michael DeHaan wrote: > On Thu, May 27, 2010 at 12:09 PM, Michael DeHaan > wrote: > > Sure, there's a way to do that ... in puppet.conf > > > [puppetd] > > runinterval = 60 > > Sorry, you want 3600 here ... it's specified in seconds. -- You received t

Re: [Puppet Users] Re: Toplevel domain and facter (Offtopic)

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 11:15 AM, seph wrote: > Nigel Kersten writes: > > > On Thu, May 27, 2010 at 9:40 AM, Klaus Ethgen > > < > klaus%2bpup...@ethgen.de > > > >> Ah. Bad. I have no account there and I dislike the idea to create a > >> account anywhere to just report a bug. I have that many acc

[Puppet Users] Re: Toplevel domain and facter (Offtopic)

2010-05-27 Thread seph
Nigel Kersten writes: > On Thu, May 27, 2010 at 9:40 AM, Klaus Ethgen > >> Ah. Bad. I have no account there and I dislike the idea to create a >> account anywhere to just report a bug. I have that many accounts sprayed >> around the net that I do not want to manage one more, sorry. >> > > That'

Re: [Puppet Users] Question about templates from variables

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 11:17 AM, James Cammarata wrote: > > On Thu, 20 May 2010 15:05:28 -0500, James Cammarata wrote: >> I'm running into an issue trying to do something like the following: >> >> class test { >>  file {"test": >>   content => template('mytemplate1','mytemplate2'), >>  } >> } >>

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 1:23 PM, Douglas Garstang wrote: > On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten wrote: >> >> >> On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang >> wrote: >>> >>> Does switching to external nodes require a forklift approach? >>> >>> The other day, I specified an extern

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Douglas Garstang
On Thu, May 27, 2010 at 9:55 AM, Nigel Kersten wrote: > > > On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang > wrote: >> >> Does switching to external nodes require a forklift approach? >> >> The other day, I specified an external node script in puppet.conf, and >> puppet complained about every

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 9:40 AM, Klaus Ethgen > wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Am Do den 27. Mai 2010 um 17:05 schrieb Paul Nasrat: > > I maintain facter - if it's not in redmine it may get missed. > > Oh well... :-) > > > > Ah, thanks. I didn't find this link anyw

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Nigel Kersten
On Thu, May 27, 2010 at 9:35 AM, Douglas Garstang wrote: > Does switching to external nodes require a forklift approach? > > The other day, I specified an external node script in puppet.conf, and > puppet complained about every single node that wasn't handled by the > external script. It would be

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Am Do den 27. Mai 2010 um 17:05 schrieb Paul Nasrat: > I maintain facter - if it's not in redmine it may get missed. Oh well... :-) > > Ah, thanks. I didn't find this link anywhere. And how to create a new > > ticket? There is no link to create a n

[Puppet Users] External Nodes Require a Forklift?

2010-05-27 Thread Douglas Garstang
Does switching to external nodes require a forklift approach? The other day, I specified an external node script in puppet.conf, and puppet complained about every single node that wasn't handled by the external script. It would be nice (and more realistic) to be able to cut one node over at a time

Re: [Puppet Users] Puppetmaster directly on the Internet

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 10:33 AM, Gabriel - IP Guys wrote: > I would suggest to make your puppet master available on the net or via a > firewall forwarding, and then configure your puppetmaster/firewall to > only accept connections from those IPs that belong to your clients. > > I assume your clie

Re: [Puppet Users] puppetd checkin time??

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 12:09 PM, Michael DeHaan wrote: > Sure, there's a way to do that ... in puppet.conf > > [puppetd] > runinterval = 60 Sorry, you want 3600 here ... it's specified in seconds. -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

Re: [Puppet Users] puppetd checkin time??

2010-05-27 Thread Michael DeHaan
Sure, there's a way to do that ... in puppet.conf [puppetd] runinterval = 60 you can do puppetd --genconfig to look at all the available options and their current values as set by the configuration file (or defaults, if not mentioned in the file). --Michael On Thu, May 27, 2010 at 11:42 AM, Cra

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Paul Nasrat
On 27 May 2010 16:54, Klaus Ethgen > wrote: > > Am Do den 27. Mai 2010 um 10:25 schrieb Paul Nasrat: > > > I don't work for puppet labs and do not receive email from the info@ > > address. > > Well, yes, but the puppetlab people should receive the bug report. > I maintain facter - if it's not in

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Am Do den 27. Mai 2010 um 10:25 schrieb Paul Nasrat: > > However, as I had some problems subscribing this list with my > > non-google-mail I mailed i...@... so they told me how to subscribe here. > > So they should know about the bug. > That ass

[Puppet Users] puppetd checkin time??

2010-05-27 Thread CraftyTech
Hello All, Is there a way that I can change the check in time for puppetd (check in with puppet master)? I've looked through the docs and don't seem to be able to find anything on that topic. Basically I'd like to be able to to change from the default 30 mins checkin time to let's say 1 hr.

Re: [Puppet Users] Question about templates from variables

2010-05-27 Thread James Cammarata
On Thu, 20 May 2010 15:05:28 -0500, James Cammarata wrote: > I'm running into an issue trying to do something like the following: > > class test { > file {"test": > content => template('mytemplate1','mytemplate2'), > } > } > > class test::test2 inherits test { > File["test"] { content +> t

Re: [Puppet Users] Puppet Labs Announces Puppet Forge, a Central Repository for Puppet Modules

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 10:26 AM, Gabriel - IP Guys wrote: > This is good news :) Thank you guys, (and girls) for setting that up for > the community. > > -Original Message- > From: puppet-users@googlegroups.com > [mailto:puppet-us...@googlegroups.com] On Behalf Of Scott Olson > Sent: 27 M

RE: [Puppet Users] Puppetmaster directly on the Internet

2010-05-27 Thread Gabriel - IP Guys
I would suggest to make your puppet master available on the net or via a firewall forwarding, and then configure your puppetmaster/firewall to only accept connections from those IPs that belong to your clients. I assume your clients all have static IP's otherwise you would not have floated the int

RE: [Puppet Users] Puppet Labs Announces Puppet Forge, a Central Repository for Puppet Modules

2010-05-27 Thread Gabriel - IP Guys
This is good news :) Thank you guys, (and girls) for setting that up for the community. -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Scott Olson Sent: 27 May 2010 14:57 To: Puppet Users Subject: [Puppet Users] Puppet Labs Announ

[Puppet Users] Puppet Labs Announces Puppet Forge, a Central Repository for Puppet Modules

2010-05-27 Thread Scott Olson
Details and links to the Puppet Forge can be found here: http://www.puppetlabs.com/blog/puppet-labs-announces-puppet-forge-a-central-repository-for-puppet-modules/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send emai

[Puppet Users] Puppetmaster directly on the Internet

2010-05-27 Thread sasepp
Hi, I apologize if this issue has been discussed earlier. If so, please point me to relevant information. Anyways, here it goes... I plan on deploying Puppet to manage several separate nodes, all of which are accessible directly from the Internet. The nodes are connected by a VPN (OpenVPN), so th

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Paul Nasrat
On 27 May 2010 10:25, Paul Nasrat wrote: > > > On 26 May 2010 21:25, Klaus Ethgen > > > wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA512 >> >> Hello, >> >> Am Mi den 26. Mai 2010 um 2:20 schrieb Joe McDonagh: >> [Problem with facter and toplevel domain] >> > Did you file a bug? >

Re: [Puppet Users] Re: running sudo commands

2010-05-27 Thread Marley Bacelar
Shouldn't you use? class test { exec { "sudocmd" : cwd => "/home/server/", path => ["/usr/bin/","/usr/sbin/","/ bin"], command => "sudo apt-get update -y", timeout => "-1" } } -- Marley Bacelar Project Fedora Ambassador VCP, VSP. VTSP., ITILF, IBM 000-076, IBM 000-330, IBM 000-331

[Puppet Users] Re: running sudo commands

2010-05-27 Thread DWIM
On May 27, 1:49 pm, DWIM wrote: > Hi Prudhvi, > > puppet = NOPASSWD: /usr/sbin/apt-get update > Oops, think to have forgotten a glob wildcard here and it should rather read uppet = NOPASSWD: /usr/sbin/apt-get update * But the first more unspecific rule I mentioned should accept any number

[Puppet Users] Re: running sudo commands

2010-05-27 Thread DWIM
Hi Prudhvi, though I'm a Puppet newbie I do think indeed that the puppetd usually is run as user root because most configuration changes do require root privileges. Was there any particular reason why you instead have your puppetd run as user puppet? Anyway, I would assume that in this case the

Re: [Puppet Users] Puppet Dashboard error.

2010-05-27 Thread Marley Bacelar
Gabriel, I my CentOS, enabled in /etc/sysconfig in /etc/sysconfig/puppetmaster: PUPPETMASTER_EXTRA_OPTS="--reports puppet_dashboard --reports store" -- Marley Bacelar Project Fedora Ambassador VCP, VSP. VTSP., ITILF, IBM 000-076, IBM 000-330, IBM 000-331 marleybace...@gmail.com 2010/5/27 Gabri

RE: [Puppet Users] Puppet Dashboard error.

2010-05-27 Thread Gabriel - IP Guys
Where did you enable this reports switch? I'm having similar problems J From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Marley Bacelar Sent: 25 May 2010 01:26 To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Puppet Dashboard error. Yeahhh

[Puppet Users] running sudo commands

2010-05-27 Thread prudhvi
Hi All, When I try to run any sudo commands like the below class test { exec { "sudocmd" : cwd => "/home/server/", path => ["/usr/bin/","/usr/sbin/","/bin"], command => "sudo apt-get update", } } Im getting the following error # puppetd --server prudhvi.example.com --test info:

Re: [Puppet Users] Toplevel domain and facter

2010-05-27 Thread Paul Nasrat
On 26 May 2010 21:25, Klaus Ethgen > wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hello, > > Am Mi den 26. Mai 2010 um 2:20 schrieb Joe McDonagh: > [Problem with facter and toplevel domain] > > Did you file a bug? > > No, I didn't. I do not find where to do so. > > However, as