[Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-12 Thread Michael Knox
Hi all, We have some data in SVN repos and I'd like puppet to ensure that a) the latest copy is checked out, and b) reload a service if it is updated. So I've configured the vcsrepo type (http://forge.puppetlabs.com/puppetlabs/vcsrepo). However when I subscribe to the vcsrepo resource, it is al

Re: [Puppet Users] change puppet dashboard listen interfac

2010-07-12 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > is there some easy way to make the puppet dashboard web-server to listen only > on > the loopback interface? if I want to run it behind apache (to provide > authentication) I don't want to have it bound to all interface but only to > the > loopb

Re: [Puppet Users] Re: puppet and augeas to keep ntp.conf

2010-07-12 Thread Darren Chamberlain
Since you're using the same three NTP servers, couldn't you just copy ntp.conf from a fileserver? * altimon [2010/07/12 16:35]: > Hi Rob and ALL, > > Unfortunately, > > following pp file creating 1st instances and then are adding new > ( I've tried just one ntp1 or triad ntp1,2,3 ) > > class n

Re: [Puppet Users] Re: puppet capistrano and repository

2010-07-12 Thread Patrick Mohr
On Jul 12, 2010, at 6:31 PM, nate wrote: > On Jul 12, 9:33 am, bmort wrote: >> Whew I am struggling on a puppet architecture design learning >> curve. >> >> I believe if i could find a good 'stand alone' example, it would >> clarify a lot of the questions I have and it would help me set up

[Puppet Users] Re: puppet capistrano and repository

2010-07-12 Thread nate
On Jul 12, 9:33 am, bmort wrote: > Whew I am struggling on a puppet architecture design learning > curve. > > I believe if i could find a good 'stand alone' example, it would > clarify a lot of the questions I have and it would help me set up a > test machine. > > I hoping to find an example o

Re: [Puppet Users] puppet capistrano and repository

2010-07-12 Thread Lindsay Holmwood
On 13 July 2010 06:51, Julian Simpson wrote: > > > On 12 July 2010 14:33, bmort wrote: >> >> - start puppet with Capistrano >> - puppet checks the  'repository'  and determines changes have been >> made >> - applies  any changes >> > > Can I ask why you want to do that?  You want to push the Pupp

[Puppet Users] Re: puppet and augeas to keep ntp.conf

2010-07-12 Thread altimon
Hi Rob and ALL, Unfortunately, following pp file creating 1st instances and then are adding new ( I've tried just one ntp1 or triad ntp1,2,3 ) class ntpd{ service { ntpd: name => "ntpd", enable => true, ensure => running, require => File["/etc/ntp.conf"],

Re: [Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-12 Thread Rohan McGovern
ext Jon Choate said: > I have an exec defined as > > exec {"dpkg --configure -a": >path => "/usr/bin:/bin", >user => root > } > > puppet complains: > > Exec[dpkg --configure -a]/returns: change from notrun to 0 failed: dpkg > --configure -a returned 2 instead of one of [0] > > but when

Re: [Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-12 Thread Luke Kanies
On Jul 12, 2010, at 12:00 PM, Jon Choate wrote: I have an exec defined as exec {"dpkg --configure -a": path => "/usr/bin:/bin", user => root } puppet complains: Exec[dpkg --configure -a]/returns: change from notrun to 0 failed: dpkg --configure -a returned 2 instead of one of [0] bu

[Puppet Users] Re: Issue with scope.function_ in a template.

2010-07-12 Thread Trevor Vaughan
I'm replying to myself since I have found a completely hack-ish workaround to this issue, but still no "real" solution. It turns out that the function in question just has to be noted in the manifest *at all*. So, you can do something like the following and then use it in your template: if false

Re: [Puppet Users] puppet capistrano and repository

2010-07-12 Thread Julian Simpson
On 12 July 2010 14:33, bmort wrote: > > - start puppet with Capistrano > - puppet checks the 'repository' and determines changes have been > made > - applies any changes > > Can I ask why you want to do that? You want to push the Puppet manifests out to the node with Capistrano? It would be

Re: [Puppet Users] puppet and augeas to keep ntp.conf

2010-07-12 Thread Rob McBroom
On Jul 9, 2010, at 7:45 PM, altimon wrote: > How I should form onlyif condition with match to make it working: > now I have either it is not working at all or just accumulating > additional lines. I would avoid using a combination of “last()” and “onlyif” whenever possible. See the recent discus

[Puppet Users] dpkg in puppet returns 2 but at command line returns 0

2010-07-12 Thread Jon Choate
I have an exec defined as exec {"dpkg --configure -a": path => "/usr/bin:/bin", user => root } puppet complains: Exec[dpkg --configure -a]/returns: change from notrun to 0 failed: dpkg --configure -a returned 2 instead of one of [0] but when I run dpkg --configure -a outside puppet it ret

Re: [Puppet Users] External nodes script does not work with multiple environments

2010-07-12 Thread Nan Liu
On Jul 12, 2010, at 8:30 AM, Kenneth Holter wrote: I moved the "environments=testing" from "main" to "puppetmasterd", restarted puppetmaster, and tried another puppet client run. Same results. Even tried without that entry, still don't work. What I meant was [main] ... environment=testing [p

[Puppet Users] Re: -o argument functioning properly in 2.6?

2010-07-12 Thread Gary Larizza
yep --> http://projects.puppetlabs.com/issues/4213 On Monday, July 12, 2010, Aurelien Degremont wrote: > Gary Larizza a écrit : > > If I run "puppet agent --no-daemonize --onetime --debug --verbose" the agent > will run, complete its task, and then exit.  If I run "puppet agent > --no-daemonize

Re: [Puppet Users] -o argument functioning properly in 2.6?

2010-07-12 Thread Aurelien Degremont
Gary Larizza a écrit : If I run "puppet agent --no-daemonize --onetime --debug --verbose" the agent will run, complete its task, and then exit. If I run "puppet agent --no-daemonize -o --debug --verbose" it will run, complete its task, and then hang there until you Ctrl + c to break. The debu

Re: [Puppet Users] list of structure..

2010-07-12 Thread Jeff McCune
An external node classier could set these variables for you at top scope, or you could look into using the extlookup function which is able to pull in data from external sources. -Jeff On Monday, July 12, 2010, walexey wrote: > Hello everybody! > > We have puppet infrastructure integrated with l

Re: [Puppet Users] External nodes script does not work with multiple environments

2010-07-12 Thread Alan Barrett
On Mon, 12 Jul 2010, Kenneth Holter wrote: > I'm trying to set up puppetmaster with external node classifier and > multiple environments, and have found that the external nodes script > is only run if I don't define any environments. Once I add an > environment to the /etc/puppet/puppet.conf file,

Re: [Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread Jeff McCune
As Patrick mentions, one solution i recommend is to enable storeconfigs and have each node export a host entry for itself tagged with the tag you want other hosts to collect. For example, each node may export it's host entry with: @@host { "$fqdn": ip_address => $ipaddress, tags => "webserver" }

Re: [Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread Patrick Mohr
Take a look at http://docs.puppetlabs.com/guides/exported_resources.html. I think this will give you what you want. It will only work if you turn on storeconfigs. On Jul 12, 2010, at 5:43 AM, CraftyTech wrote: > Thanks for the feedback Jeff. Interesting feature that I had > unfortunately ov

[Puppet Users] Issue with scope.function_ in a template.

2010-07-12 Thread Trevor Vaughan
All, I'm wondering if anyone knows how to force the scope object to pick up custom functions that have not yet been utilized. If you run a simple test with a custom function that you don't use anywhere but in a template, you should see the template hang and/or fail. If you use the function elsew

[Puppet Users] change puppet dashboard listen interfac

2010-07-12 Thread Antony Mayi
Hi, is there some easy way to make the puppet dashboard web-server to listen only on the loopback interface? if I want to run it behind apache (to provide authentication) I don't want to have it bound to all interface but only to the loopback and pass the requests through the proxy. cheers An

Re: [Puppet Users] User account validation

2010-07-12 Thread Alex Howells
Hi Jeff, Whilst I've never tried to get Puppet to do that level of mangling in the past, I have had success with Likewise. http://www.likewise.com/products/index.php Perhaps that can do what you're after. Cheers, - Alex -- You received this message because you are subscribed to the Googl

[Puppet Users] puppet capistrano and repository

2010-07-12 Thread bmort
Whew I am struggling on a puppet architecture design learning curve. I believe if i could find a good 'stand alone' example, it would clarify a lot of the questions I have and it would help me set up a test machine. I hoping to find an example of a stand alone that has a process flow simila

Re: [Puppet Users] Re: ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!

2010-07-12 Thread James Turnbull
Rudy Gevaert wrote: > > On Jul 12, 8:09 am, James Turnbull wrote: >> Welcome back again to the Puppet release cycle with the long-awaited >> eleventy times better RC2 release. > > Hi James, > > Any chance of providing debian packages for rc2? Or pointing me to an > url where I can download the

Re: [Puppet Users] External nodes script does not work with multiple environments

2010-07-12 Thread Kenneth Holter
Thanks for your reply. This is the line I've been running on the client side: -- code start -- puppetd --server puppetmaster.example.local --environment=testing --verbose --no-daemonize -- code end -- I moved the "environments=testing" from "main" to "puppetmasterd", restarted puppetmaster, and

[Puppet Users] Re: ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!

2010-07-12 Thread Rudy Gevaert
On Jul 12, 8:09 am, James Turnbull wrote: > Welcome back again to the Puppet release cycle with the long-awaited > eleventy times better RC2 release. Hi James, Any chance of providing debian packages for rc2? Or pointing me to an url where I can download the source with the Debian directory i

[Puppet Users] User account validation

2010-07-12 Thread Jeff
Hello, We use puppet to manage user accounts on the Linux platform. Logins are authenticated with ssh keys. We don't assign passwords to accounts. We'd like to validate user accounts with ActiveDirectory. Puppet will add an account only if that account is in ActiveDirectory. It will remove the acc

[Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread CraftyTech
Thanks for the feedback Jeff. Interesting feature that I had unfortunately overlooked until now, but the basic question still remains; how would I then generate specific hostfiles based on nodes of the same tag? For instance, a web server to only have host entries for items tagged webserver only,

Re: [Puppet Users] External nodes script does not work with multiple environments

2010-07-12 Thread Nan Liu
On Mon, Jul 12, 2010 at 7:41 AM, Kenneth Holter wrote: > In my current setup I have the following puppet.conf file: > > -- code start -- > [main] > ... >environments = testing > Looking at the documentation and environments default thread ( http://groups.google.com/group/puppet-users/browse_

Re: [Puppet Users] -o argument functioning properly in 2.6?

2010-07-12 Thread James Turnbull
Gary Larizza wrote: > If I run "puppet agent --no-daemonize --onetime --debug --verbose" the > agent will run, complete its task, and then exit. If I run "puppet > agent --no-daemonize -o --debug --verbose" it will run, complete its > task, and then hang there until you Ctrl + c to break. The deb

[Puppet Users] Re: Problems with require inside a definition

2010-07-12 Thread Tim
Thanks, that fixed it. On Jul 9, 5:10 pm, Alan Barrett wrote: > On Fri, 09 Jul 2010, Tim wrote: > > # Generic config file > > define config-file ($fullpath, $source) { > >         if $require { > >                 require $require > >         } > >         file { $fullpath: > >         source =>

[Puppet Users] External nodes script does not work with multiple environments

2010-07-12 Thread Kenneth Holter
Hi all. I'm trying to set up puppetmaster with external node classifier and multiple environments, and have found that the external nodes script is only run if I don't define any environments. Once I add an environment to the /etc/puppet/puppet.conf file, the external nodes script is no longer ru

[Puppet Users] -o argument functioning properly in 2.6?

2010-07-12 Thread Gary Larizza
If I run "puppet agent --no-daemonize --onetime --debug --verbose" the agent will run, complete its task, and then exit. If I run "puppet agent --no-daemonize -o --debug --verbose" it will run, complete its task, and then hang there until you Ctrl + c to break. The debug and verbose arguments run

[Puppet Users] list of structure..

2010-07-12 Thread walexey
Hello everybody! We have puppet infrastructure integrated with ldap. I can pass different variables via puppetVars attribute in ldap. Currently, I need to write puppet class to configure mod_proxy server. mod_proxy servers has 5-10 configured sites. Every site configuration has some variables: sit