[Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread josbal
Yeah thats what i was thinking Nathan, but wasn't sure if it was just me. Nan we are running facter 1.5.9 on RHEL 5.3 servers. On Jun 24, 2:34 pm, Nan Liu wrote: > What version of facter? I'm not producing the error from 1.5.0 through > 1.5.9 (did not have to pass -t). > > Thanks, > > Nan > > >

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread Nan Liu
On Thu, Jun 23, 2011 at 7:43 PM, flex wrote: > er...that's what we use now, but define and external node cannot use > together, we want to use external node to manage nodes configuration easily, > so that's why i want to change all the define to class ENC doesn't support resources, and defines ar

Re: [Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread Nan Liu
What version of facter? I'm not producing the error from 1.5.0 through 1.5.9 (did not have to pass -t). Thanks, Nan On Thu, Jun 23, 2011 at 8:03 PM, Nathan Clemons wrote: > Sounds like a bug with facter handling headless running where a TTY is not > allocated (thus the error about $TERM not bei

Re: [Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread Nathan Clemons
Sounds like a bug with facter handling headless running where a TTY is not allocated (thus the error about $TERM not being set). -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Thu, Jun 23, 2011 at 7:56 PM, josbal wrote: > Hi Den, > > ssh -t

[Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread josbal
Hi Den, ssh -t seems to not produce the tput errors. But how come these tput errors are only presented when running facter command, and no others? Cheers, Josh On Jun 24, 8:17 am, Denmat wrote: > Hi, > Haven't tested but what does ssh -t server2 give you? > > Cheers > Den > > On 24/06/201

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread flex
Thank you for your advice. Actually, the application need to be deployed is a webapp and may be modified many times a day, so package it is too heavy for us. 2011/6/23 jcbollinger > > On Jun 22, 9:35 pm, flex wrote: > > These is another question, i have many defines which will apply an > > appl

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread flex
er...that's what we use now, but define and external node cannot use together, we want to use external node to manage nodes configuration easily, so that's why i want to change all the define to class 2011/6/23 Martin Alfke > On 06/23/2011 11:52 AM, flex wrote: > > But i think class is singleton

Re: [Puppet Users] Package pre-requisites prior to file exec

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 4:07 PM, Craig White wrote: > class nginx::install { >  $prerequisites = [ "build-essential", "libcurl4-openssl-dev", "libssl-dev", > "zlib1g-dev" ] >  case $operatingsystem { >    centos, redhat: { >    } >    debian, ubuntu: { >      package { $prerequisites : ensure =>

[Puppet Users] Announce: Facter 1.6.0

2011-06-23 Thread Michael Stahnke
Facter 1.6.0 is a feature release containing fixes, updates and refactoring. This release is available for download at: http://puppetlabs.com/downloads/facter/facter-1.6.0.tar.gz See the Verifying Puppet Download section at: http://projects.puppetlabs.com/projects/puppet/wiki/Downloading_Puppe

[Puppet Users] Package pre-requisites prior to file exec

2011-06-23 Thread Craig White
class nginx::install { $prerequisites = [ "build-essential", "libcurl4-openssl-dev", "libssl-dev", "zlib1g-dev" ] case $operatingsystem { centos, redhat: { } debian, ubuntu: { package { $prerequisites : ensure => "installed" : ensure => present { exec { "Ins

Re: [Puppet Users] Re: [Puppet-dev] Announce: 2.6.9 Released

2011-06-23 Thread Derek J. Balling
Todd, Do you have an ETA for 2.7.x RPMs in that repo by any chance? Cheers, D On Jun 23, 2011, at 11:21 AM, Todd Zullinger wrote: > Michael Stahnke wrote: >> This release is a maintenance release of the 2.6.x series of Puppet. >> This will likely be the last release in the 2.6.x series for Pupp

Re: [Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread Denmat
Hi, Haven't tested but what does ssh -t server2 give you? Cheers Den On 24/06/2011, at 7:51, josbal wrote: > No one has seen this issue before? > > On Jun 23, 3:08 pm, josbal wrote: >> Hi Guys, >> >> Not sure if this issue is a facter one or not, but thought i might >> post here to see

[Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread josbal
No one has seen this issue before? On Jun 23, 3:08 pm, josbal wrote: > Hi Guys, > > Not sure if this issue is a facter one or not, but thought i might > post here to see if anyone else has had the same issue. > > When executing facter command on remote ssh server, i am getting tput > errors. Howe

Re: [Puppet Users] Re: Make puppet automatically recognize new files in nodes directory?

2011-06-23 Thread Aaron Grewell
I have a similar command in my svn post-commit. It works well for convincing Puppet that something has happened. On Thu, Jun 23, 2011 at 1:10 PM, Pheran wrote: > Hmm, if that's enough to make it reread all the nodes, then I suppose > I could have my git hook scripts that syncs the puppet manife

Re: [Puppet Users] Re: Make puppet automatically recognize new files in nodes directory?

2011-06-23 Thread Daniel Pittman
I don't believe so. I don't have time to dig deeply into the code and confirm right now, but I believe we don't model include operations as a glob, just as the resultant set of files to watch. Touching site.pp will trigger it to reparse, which will re-run the import operation and watch those file

Re: [Puppet Users] apache vhosts include files

2011-06-23 Thread Craig White
On Jun 23, 2011, at 12:47 PM, Daniel Pittman wrote: > On Thu, Jun 23, 2011 at 12:25, Craig White wrote: >> >> Perhaps I am going at this the wrong way but I am getting far using the >> vhosts methodology from Pro Puppet and now I want to optionally include a >> static text file. >> >> <% if

Re: [Puppet Users] apache vhosts include files

2011-06-23 Thread Markus Falb
On 23.6.2011 21:47, Daniel Pittman wrote: > On Thu, Jun 23, 2011 at 12:25, Craig White wrote: >> >> Perhaps I am going at this the wrong way but I am getting far using the >> vhosts methodology from Pro Puppet and now I want to optionally include a >> static text file. >> >> <% if location_file_

[Puppet Users] Re: Make puppet automatically recognize new files in nodes directory?

2011-06-23 Thread Pheran
Hmm, if that's enough to make it reread all the nodes, then I suppose I could have my git hook scripts that syncs the puppet manifests from my git repo always touch the site.pp file after it fires. Any other good methods for handling this? On Jun 23, 4:05 pm, Aaron Grewell wrote: > touch site.pp

Re: [Puppet Users] Make puppet automatically recognize new files in nodes directory?

2011-06-23 Thread Aaron Grewell
touch site.pp? On Jun 23, 2011 1:01 PM, "Pheran" wrote: > So, instead of defining all my nodes in one file, I use what seems to > be a fairly common practice, from site.pp I do: > > import 'nodes/*' > > Then I have a nodes directory containing a .pp file for each node. > The only problem with this

[Puppet Users] Make puppet automatically recognize new files in nodes directory?

2011-06-23 Thread Pheran
So, instead of defining all my nodes in one file, I use what seems to be a fairly common practice, from site.pp I do: import 'nodes/*' Then I have a nodes directory containing a .pp file for each node. The only problem with this setup is that puppet seems oblivious to new node files in the nodes

Re: [Puppet Users] apache vhosts include files

2011-06-23 Thread Daniel Pittman
On Thu, Jun 23, 2011 at 12:25, Craig White wrote: > > Perhaps I am going at this the wrong way but I am getting far using the > vhosts methodology from Pro Puppet and now I want to optionally include a > static text file. > > <% if location_file_inc != '' %-> >  <% include #{location_file_inc} %

[Puppet Users] apache vhosts include files

2011-06-23 Thread Craig White
Perhaps I am going at this the wrong way but I am getting far using the vhosts methodology from Pro Puppet and now I want to optionally include a static text file. <% if location_file_inc != '' %-> <% include #{location_file_inc} %>

Re: [Puppet Users] Re: Puppet module layout

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 3:09 AM, Bruce Bushby wrote: > Thanks Nigel, appreciate the heads up! > > I'm finding that puppet module are great when you want a module for > "ssh" or a module for "sudoers"  ...but I can't find an example where > there is a module called "os" which contains "ssh.pp" , >

Re: [Puppet Users] apt-key and untrusted packages

2011-06-23 Thread Craig White
On Jun 22, 2011, at 10:32 PM, Martin Alfke wrote: > On 06/22/2011 11:29 PM, Craig White wrote: >> Perhaps this is a Debian/Ubuntu question and not a puppet problem but... >> >> Seems as though the key is good but the install failed. >> >> # apt-key list >> /etc/apt/trusted.gpg >> --

[Puppet Users] Re: Using require and notify across class resources cause a dependency cycle

2011-06-23 Thread jcbollinger
On Jun 23, 9:54 am, Nigel Kersten wrote: > On Thu, Jun 23, 2011 at 6:01 AM, jcbollinger wrote: > > > > > While I'm on my soapbox, this is one reason why I don't like > > interclass dependencies very much, and why run stages (which magnify > > this problem) need to be approached with caution.  Th

[Puppet Users] Re: Puppet on Windows

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 10:07 AM, Arm Adam wrote: > Hi all, > > I realize this thread is a little old but hoping someone can tell me > if much progress has been made on getting Puppet running on Windows. > I just tried to set up an agent according to the directions at > http://projects.puppetlabs.

[Puppet Users] Re: exporting resources that aren't built-in resources...

2011-06-23 Thread JoE
How well does concat work with exported resources? I'm about to try the same thing, and I am wondering if you have any tips. On Jun 22, 3:32 pm, Rich Rauenzahn wrote: > On Wed, Jun 22, 2011 at 3:03 PM, Rich Rauenzahn wrote: > > We seem to be able to export resources (and import them) just fine i

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 9:25 AM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > I am hesitant for us to put something like this in the core distribution though, simply because we know it's a maintenance problem over time. >>> >>> Fair enough. >>> >>> Though I imag

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >>> I am hesitant for us to put something like this in the core distribution >>> though, simply because we know it's a maintenance problem over time. >> >> Fair enough. >> >> Though I imagine not having this feature will lose puppet some people. > > T

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Aaron Grewell
There are at least three ways to do this: 1) Use an Augeas resource to edit the file. For system files this can be a good solution since Augeas generally has lenses for them. 2) Use an Exec resource and something like sed or cat. Not my preferred approach but sometimes the easiest, especially if y

[Puppet Users] Puppet 2.6.9 & 2.7.1 packages for Solaris

2011-06-23 Thread Mark Phillips
CSW packages in experimental - http://buildfarm.opencsw.org/experimental.html#markp Both contain Dom Cleal's patched pkgutil[1] provider that supports 'source'[2] for -t alternative repositories. --Mark [1] https://github.com/domcleal/puppet/blob/tickets/master/8011/lib/puppet/provider/packag

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 8:06 AM, Nico -telmich- Schottelius wrote: > Nigel Kersten [Thu, Jun 23, 2011 at 07:51:23AM -0700]: >> nico-puppet-us...@schottelius.org> wrote: >> [...] >> I am hesitant for us to put something like this in the core distribution >> though, simply because we know it's a mai

[Puppet Users] Re: [Puppet-dev] Announce: 2.6.9 Released

2011-06-23 Thread Todd Zullinger
Michael Stahnke wrote: > This release is a maintenance release of the 2.6.x series of Puppet. > This will likely be the last release in the 2.6.x series for Puppet, > now that 2.7 is out. For those using Fedora or RHEL/CentOS, I've updated the yum repos at: http://tmz.fedorapeople.org/repo/pu

[Puppet Users] available built-in variables

2011-06-23 Thread Patrick
Is there anywhere that lists the available built-in variables aside from facter and http://docs.puppetlabs.com/guides/faq.html#are-there-variables-available-other-than-those-provided-by-facter ? I'm referring to variables like $title and $name, which are mentioned by http://docs.puppetlabs.com/gui

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nico -telmich- Schottelius
Nigel Kersten [Thu, Jun 23, 2011 at 07:51:23AM -0700]: > nico-puppet-us...@schottelius.org> wrote: > [...] > I am hesitant for us to put something like this in the core distribution > though, simply because we know it's a maintenance problem over time. Fair enough. Though I imagine not having th

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 8:00 AM, Kinzel, David wrote: > > I just think having some built-in functions for text patterns would be > lovely. There are many cases where something like addifnosuchline would > be perfectly valid. Just because it won't be the solution in all cases > doesn't mean it shou

RE: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Kinzel, David
Apoologies for this top posting. Blame Outlook. I don't disagree at all. And for your specific example of sshd_config I precisely do have a proper pattern for editing text files to set values as needed (or not). This works extremely well and I am satisfied with the results. I just think having

Re: [Puppet Users] Re: Using require and notify across class resources cause a dependency cycle

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 6:01 AM, jcbollinger wrote: > > While I'm on my soapbox, this is one reason why I don't like > interclass dependencies very much, and why run stages (which magnify > this problem) need to be approached with caution. There is certainly > something to be said for the layer o

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 7:46 AM, Nico -telmich- Schottelius < nico-puppet-us...@schottelius.org> wrote: > Nigel, > > Nigel Kersten [Thu, Jun 23, 2011 at 07:37:30AM -0700]: > > [...] > > > > It's simple enough at first, [...] > > > > that's exactly the use case for __addifnosuchline in cdist. > The

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nico -telmich- Schottelius
Nigel, Nigel Kersten [Thu, Jun 23, 2011 at 07:37:30AM -0700]: > [...] > > It's simple enough at first, [...] > that's exactly the use case for __addifnosuchline in cdist. The type let's you do what you want to do right now, fast and simple. That's what a feature I've always missed in puppet. >

[Puppet Users] Re: How to add extra lines in the existing files?

2011-06-23 Thread Sans
I [found and] started looking in the "Augeas" module - but looks like there are some advantages as well. S, what's the best options (/ suggestions) we have? Basically I wanna add lines in the file like "/ etc/sysctl.conf", "/etc/my.cnf" etc. Cheers!! -- You received this message because you are s

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nigel Kersten
On Thu, Jun 23, 2011 at 6:37 AM, Kinzel, David wrote: > >> this is not directly built into puppet. > > > >Is there any specific reason why this is not built into puppet? > > > >We've put __addifnosuchline [0] into cdist [1] as one of > >the most basic features, because it's often needed if you do

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Martin Alfke
On 06/23/2011 03:37 PM, Kinzel, David wrote: >>> this is not directly built into puppet. >> >> Is there any specific reason why this is not built into puppet? >> >> We've put __addifnosuchline [0] into cdist [1] as one of >> the most basic features, because it's often needed if you do not >> care a

RE: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Kinzel, David
>> this is not directly built into puppet. > >Is there any specific reason why this is not built into puppet? > >We've put __addifnosuchline [0] into cdist [1] as one of >the most basic features, because it's often needed if you do not >care about the existing contents, but just need to add a line.

[Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread jcbollinger
On Jun 22, 9:35 pm, flex wrote: > These is another question, i have many defines which will apply an > application to sepcified path, called as: > > application::add { "app1": path => "/var/app1" } > > by this i can apply app1 and app2 in node1, app3 and app4 in node2, etc. > > now, how do i swit

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Nico -telmich- Schottelius
Martin Alfke [Thu, Jun 23, 2011 at 02:51:07PM +0200]: > On 06/23/2011 12:55 PM, Sans wrote: > > [...] how do I add some extra lines in a existing file [...] > > this is not directly built into puppet. Is there any specific reason why this is not built into puppet? We've put __addifnosuchline [0]

[Puppet Users] Re: Using require and notify across class resources cause a dependency cycle

2011-06-23 Thread jcbollinger
On Jun 22, 4:27 pm, PBWebGuy wrote: > I have a simple sample below that illustrates a problem I ran into > today.  What I am trying do is execute a command only if another > class, that which is dependent on it's class, triggers the command > with a notify.  I'm using the refreshonly => true to

Re: [Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Martin Alfke
On 06/23/2011 12:55 PM, Sans wrote: > Dear all, > > As in the title, how do I add some extra lines in a existing file and > check every time for its presence? I just don't want to copy over the > existing file for some good reason (system files etc.). > > Any idea how should I do that? cheers!! >

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread Martin Alfke
On 06/23/2011 11:52 AM, flex wrote: > But i think class is singletons, means when using class you can not get > more than one copy of the resource, that's the biggest difference > between class and define. > > Your example give a duplicate definition error in my environment. > > So is this my fau

[Puppet Users] How to add extra lines in the existing files?

2011-06-23 Thread Sans
Dear all, As in the title, how do I add some extra lines in a existing file and check every time for its presence? I just don't want to copy over the existing file for some good reason (system files etc.). Any idea how should I do that? cheers!! -- You received this message because you are subs

[Puppet Users] Re: Puppet module layout

2011-06-23 Thread Bruce Bushby
Thanks Nigel, appreciate the heads up! I'm finding that puppet module are great when you want a module for "ssh" or a module for "sudoers" ...but I can't find an example where there is a module called "os" which contains "ssh.pp" , "prod_sudoers.pp" , "dev_sudoers.pp" , "userauth.pp", "iptables.p

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread flex
But i think class is singletons, means when using class you can not get more than one copy of the resource, that's the biggest difference between class and define. Your example give a duplicate definition error in my environment. So is this my fault or there another way? 2011/6/23 Martin Alfke