[Puppet Users] Re: How do I "cd" (change directory) with Puppet's exec?

2012-07-05 Thread Benjamin Lei
Specifically, when I have "cd" in command => ".." it says it cannot find the command "cd". On Thursday, July 5, 2012 10:31:38 PM UTC-7, Benjamin Lei wrote: > > I sort of "need" to do this to run a Makefile that uses local > directories... -- You received this message because you are subscribed

[Puppet Users] How do I "cd" (change directory) with Puppet's exec?

2012-07-05 Thread Benjamin Lei
I sort of "need" to do this to run a Makefile that uses local directories... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/NWcJKsG5-SYJ. To post to this g

Re: [Puppet Users] switching to puppet 3

2012-07-05 Thread Peter Brown
On 6 July 2012 13:57, Walter Heck wrote: > On Fri, Jul 6, 2012 at 11:46 AM, Peter Brown wrote: >> I guess it's time to build myself a vm on the laptop (probably with >> puppet :) )and see how it goes. >> If my code works I may switch the production env over and see how that goes. > Look into virt

[Puppet Users] Multiple execs within a class

2012-07-05 Thread Mike Reed
Hello all, I'm looking to run multiple commands via exec within a single class like so: class boost_install { # This will place the gzip locally in /tmp. File is pulled from puppet. file { "/tmp/boost_1_41_0.tar.bz2" : source => "puppet:///boost_install/boost_1_

Re: [Puppet Users] switching to puppet 3

2012-07-05 Thread Walter Heck
On Fri, Jul 6, 2012 at 11:46 AM, Peter Brown wrote: > I guess it's time to build myself a vm on the laptop (probably with > puppet :) )and see how it goes. > If my code works I may switch the production env over and see how that goes. Look into virtualbox, vagrant and veewee, the three combined ma

Re: [Puppet Users] is nodes.pp a default file?

2012-07-05 Thread Peter Brown
you can put this in the main section of your puppet.conf file [main] manifestdir = /home/puppet/manifests that looks for your site.pp in that directory you also can specify this in your puppet.conf for each environment. manifest= /etc/puppet/manifests/site.pp then in site.pp you do

Re: [Puppet Users] switching to puppet 3

2012-07-05 Thread Peter Brown
On 6 July 2012 12:59, Walter Heck wrote: > I would hope you have a development environment to test this on before > you make the switch? I wouldn't actually recommend switching a > production environment to a release candidate. It's okay to start > testing puppet 3 in a staging environment to see

Re: [Puppet Users] switching to puppet 3

2012-07-05 Thread Walter Heck
I would hope you have a development environment to test this on before you make the switch? I wouldn't actually recommend switching a production environment to a release candidate. It's okay to start testing puppet 3 in a staging environment to see if you are going to have majore issues, but I pers

[Puppet Users] is nodes.pp a default file?

2012-07-05 Thread Hai Tao
Hi, is nodes.pp a default file,like sites.pp, or I have to import it in puppet.conf? I cannot find a paramater in "puppetmasterd genconfig | grep nodes.pp", can someone advice? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post t

Re: [Puppet Users] Re: How to make send in a "q" when a screen shows up from exec?

2012-07-05 Thread Benjamin Lei
No that did not work. It worked when I ran it myself, but when puppet ran it the previous Ruby version I had was not replaced. On Thursday, July 5, 2012 6:48:58 PM UTC-7, Brian Gupta wrote: > > On Thu, Jul 5, 2012 at 9:43 PM, Benjamin Lei > wrote: > > I see; thanks. I'll try that later. > > T

Re: [Puppet Users] Built in rollback features

2012-07-05 Thread Brian Gupta
On Thu, Jul 5, 2012 at 4:45 PM, gilbertc777 wrote: > Hi Everyone, > > I am relativly new to writing puppet modules, and am working to architecht > our puppet implementation. One of the questions I have, is rolling back a > puppet run. What are the best ways to accomplish this. > > For instance,

Re: [Puppet Users] Re: How to make send in a "q" when a screen shows up from exec?

2012-07-05 Thread Brian Gupta
On Thu, Jul 5, 2012 at 9:43 PM, Benjamin Lei wrote: > I see; thanks. I'll try that later. > The next thing I'm trying to do is: > rvm use 1.8.7 --default > > The command executes successfully, but when I SSH back into my server the > version is still its old one. What might be going wrong? > > On

[Puppet Users] Re: How to make send in a "q" when a screen shows up from exec?

2012-07-05 Thread Benjamin Lei
I see; thanks. I'll try that later. The next thing I'm trying to do is: rvm use 1.8.7 --default The command executes successfully, but when I SSH back into my server the version is still its old one. What might be going wrong? On Thursday, July 5, 2012 8:37:28 AM UTC-7, jcbollinger wrote: > > >

[Puppet Users] Announce: Puppet Dashboard 1.2.10rc1 Available

2012-07-05 Thread Moses Mendoza
1.2.10rc1 is a maintenance release of Puppet Dashboard. It includes contributions from Will Hopper and Moses Mendoza. Thanks to Aaron Patterson for the security content in commit e17269f. This release is available for download at: https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.10r

[Puppet Users] switching to puppet 3

2012-07-05 Thread Peter Brown
Hi everyone, I noticed puppet 3 has made it to rc3 and they have made it available in the devel repositories. I am getting tempted to switch now and avoid the rush. I have tried to find out what is new or different with puppet 3 but haven't been able to find anything. I am currently running 2.7.17

[Puppet Users] Announce: puppetlabs_spec_helper 0.2.0 available

2012-07-05 Thread Branan Purvine-Riley
puppetlabs_spec_helper is a Rubygem to make writing and running module spec tests using rspec-puppet easier. It includes a set of common rake tasks and a spec_helper that correctly initializes puppet and rspec-puppet for testing. The code is available on github at http://github.com/puppetlabs/pupp

[Puppet Users] puppet with stored configurations mysql connection error

2012-07-05 Thread ashrith
I am testing out the store configurations on my puppet master, packages installed: - puppet - puppet-master - rubygems - ruby-mysql - ruby-devel - mysql-server - mysql - mysql-devel *Configuration Files:* *Puppet.conf* [main] logdir = /var/log/puppet rundir =

Re: [Puppet Users] Automated deployement with puppet

2012-07-05 Thread Peter Brown
Hi Mouhcine, I find that if you can script it you can manage it with puppet and I haven't run into much I don't manage with puppet. I haven't used puppet to manage a Tomcat instance (you will likely find something on http://forge.puppetlabs.com/ for doing that though) but if you are deploying a j

Re: [Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 11:26:48 AM UTC-5, Matthew Burgess wrote: > > On Thu, Jul 5, 2012 at 4:56 PM, jcbollinger wrote: > > > Are you sure a Puppet run needs to have already completed before the > facts > > are available from the inventory service? That would be surprising. > Also > > m

Re: [Puppet Users] Re: proper usage of global variables / node variables / +=

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 2:59:07 PM UTC-5, fpee wrote: > > On 07/05/2012 08:30 AM, jcbollinger wrote: > > > If that's so then you are relying on a Puppet bug, or perhaps you have > > oversimplified your example. The language guide specifically states > > that the += operator affects the obse

[Puppet Users] Re: Ruby DSL parameterized classes and defaults

2012-07-05 Thread llow...@oreillyauto.com
Comments inline. On Thursday, July 5, 2012 2:31:47 PM UTC-5, polaris_s0i wrote: > > I've been reading the Docs on this, and its not very clear. > > I want to have a parameterized class that takes arrays and objects as > parameters. > I'm using puppet 2.6.16. > > I define a hostclass like this: >

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 11:33:03 AM UTC-5, eduardo wrote: > > I need a facter because each node have different users. The facter > return a list of local users that not are into whitelist (unique). > Maybe it would be fruitful to come at this from a different direction. For what purpose do

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 10:58:54 AM UTC-5, eduardo wrote: > > Thanks you john for your answer. I comment you something that work > well for me. > > I think get a solution while reading puppet cookbook. It's based on > run stages. > > I have site.pp : > > import 'sync_files.pp' > > The

[Puppet Users] Updated Puppet Labs Release Key

2012-07-05 Thread Matthaus Litteken
Our current release key is expiring on July 9th, so we've extended the expiration of our gpg key to sign our releases and repositories. The keyid of the key has not changed, it is still 4BD6EC30. To obtain the new key, you can use `gpg --refresh-keys` or `gpg --recv-keys 4BD6EC30`. We are also rele

[Puppet Users] Re: Double quotes within an exec statement

2012-07-05 Thread Mike Reed
Hey Guys, Thanks for the input. Your comments were most helpful and I definitely get it now. I realize that the way I'm going about doing this one probably isn't the most desirable and as soon as I have my important manifests working in a basic state, I'll come back to each one and fix them

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 11:16:56 AM UTC-5, eduardo wrote: > > John the whitelist is a dynamic file create/update by administrators, > so puppetmaster don't know about whilelist's content. > If the file is served by the master, then the master can know whatever it needs to know about its con

[Puppet Users] Built in rollback features

2012-07-05 Thread gilbertc777
Hi Everyone, I am relativly new to writing puppet modules, and am working to architecht our puppet implementation. One of the questions I have, is rolling back a puppet run. What are the best ways to accomplish this. For instance, if I add a module to manage autofs, apply it to a server,

[Puppet Users] Re: Double quotes within an exec statement

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 3:23:47 PM UTC-5, Mike Reed wrote: > > Hello all, > > I've been trying to run this exec statement (which to my peril was > initially thought to be something simple): > > exec { "/opt/pbis/bin/config UserDomainPrefix "" " : } > > After the command is run I'm getting the

Re: [Puppet Users] Double quotes within an exec statement

2012-07-05 Thread Mike Zupan
escape your inner quotes \" \" exec { "/opt/pbis/bin/config UserDomainPrefix \"\" " : } On Thu, Jul 5, 2012 at 1:23 PM, Mike Reed wrote: > Hello all, > > I've been trying to run this exec statement (which to my peril was initially > thought to be something simple): > > exec { "/opt/pbis/bin/con

Re: [Puppet Users] Double quotes within an exec statement

2012-07-05 Thread Christopher Wood
On Thu, Jul 05, 2012 at 01:23:47PM -0700, Mike Reed wrote: >Hello all, > >I've been trying to run this exec statement (which to my peril was >initially thought to be something simple): > >exec { "/opt/pbis/bin/config UserDomainPrefix "" " :  } Escape the inside double quotes: $

[Puppet Users] Double quotes within an exec statement

2012-07-05 Thread Mike Reed
Hello all, I've been trying to run this exec statement (which to my peril was initially thought to be something simple): exec { "/opt/pbis/bin/config UserDomainPrefix "" " : } After the command is run I'm getting the following error: err: Could not retrieve catalog from remote server: Error 4

Re: [Puppet Users] Re: proper usage of global variables / node variables / +=

2012-07-05 Thread fp
On 07/05/2012 08:30 AM, jcbollinger wrote: Thank you very much for the response, I am going over it in detail and trying out all of the options you have presented (this may take me a couple days). I will reply again once I have gone over your message in more detail. If that's so then you ar

[Puppet Users] Ruby DSL parameterized classes and defaults

2012-07-05 Thread polaris_s0i
I've been reading the Docs on this, and its not very clear. I want to have a parameterized class that takes arrays and objects as parameters. I'm using puppet 2.6.16. I define a hostclass like this: hostclass :test, :arguments => { :param1 => "blah" } do end I call from Puppet DSL: class {"t

Re: [Puppet Users] can puppet-dashboard be installed on CentOS 5.4?

2012-07-05 Thread Hai Tao
does it mean that after I upgraded Ruby to 1.8.7 version, then I can just use the rpm for EL6 to install the dashboard, or I have to install from source? On Tue, Jul 3, 2012 at 4:24 PM, Michael Stahnke wrote: > Puppet Dashboard *can* be installed on EL 5 based systems if you've > updated Ruby to

Re: [Puppet Users] can nodes be grouped with IP address?

2012-07-05 Thread Steph Gosling
Hi, On Thu, 5 Jul 2012 11:34:39 -0700 Hai Tao wrote: > instead of using hostname wildcard, is there a way to define nodes by their > IP addresses? for example, I want to put all nodes with 10.0.2.x and > 10.0.3.0 to a nodes group called "testing". how can I do this? > > thanks. Seems a bit bac

[Puppet Users] can nodes be grouped with IP address?

2012-07-05 Thread Hai Tao
instead of using hostname wildcard, is there a way to define nodes by their IP addresses? for example, I want to put all nodes with 10.0.2.x and 10.0.3.0 to a nodes group called "testing". how can I do this? thanks. -- You received this message because you are subscribed to the Google Groups "P

Re: [Puppet Users] hash to_yaml in erb template not giving valid yaml

2012-07-05 Thread Stefan Schulte
On Thu, Jul 05, 2012 at 05:43:10PM +0200, Martin Willemsma wrote: > Hi, > > I want to use a file resource to write a facts.yaml file for > Mcollective. For some reason it won't provide a valid yaml format if I > dump my scope to hash and convert to_yaml. > > file { > "/etc/mco

[Puppet Users] Re: Nvidia driver install - condition for install

2012-07-05 Thread Mike Reed
Hey All, I got moved onto another project and I hadn't been able to get back to this one until today. I first wanted to thank you all for the information and suggestions. I'll take a look and see what I can do and I'll be sure to let everybody know what the outcome is. I like Nan's suggest

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread eduardo
I need a facter because each node have different users. The facter return a list of local users that not are into whitelist (unique). whitelist = Array.new File.readlines("/etc/puppet/whitelist").each { |line| whitelist << line.chomp }

Re: [Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread Matthew Burgess
On Thu, Jul 5, 2012 at 4:56 PM, jcbollinger wrote: > Are you sure a Puppet run needs to have already completed before the facts > are available from the inventory service? That would be surprising. Also > most unfortunate, inasmuch as it implies that the inventory service would be > serving sta

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread eduardo
John the whitelist is a dynamic file create/update by administrators, so puppetmaster don't know about whilelist's content. I pretending to get advantage of fileserver funcionality (instead of any other remote copy tool like rsync) in order to get centralized copy of the file whitelist to all nod

[Puppet Users] Re: Filebucket with SVN

2012-07-05 Thread jcbollinger
On Wednesday, July 4, 2012 1:10:53 AM UTC-5, Tharanga Abeyseela wrote: > > Hello folks, > > I like to store all my configuration archives (Client file changes) on a > SVN or GIT repository instead of a local file system. currently i am using > following config to store all backups (client file

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread eduardo
Thanks you john for your answer. I comment you something that work well for me. I think get a solution while reading puppet cookbook. It's based on run stages. I have site.pp : import 'sync_files.pp' Then, sync_files.pp is : class sync_files { notify { "sync whitelist file": } file {

[Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread jcbollinger
On Wednesday, July 4, 2012 8:20:51 AM UTC-5, Matthew Burgess wrote: > > Hi all, > > We have a mixed Linux and Windows environment and have so far just > been using Puppet on our Linux servers. Having configured the > inventory service, we've got an auditing script that uses the data to > rep

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread jcbollinger
On Wednesday, July 4, 2012 2:37:06 PM UTC-5, eduardo wrote: > > To be more clear about my first intend. it had init.pp like : > > file { "/etc/puppet/whitelist": > ensure => present, > source => 'puppet:///files/whitelist', >} > > $users_local = split($localus

[Puppet Users] hash to_yaml in erb template not giving valid yaml

2012-07-05 Thread Martin Willemsma
Hi, I want to use a file resource to write a facts.yaml file for Mcollective. For some reason it won't provide a valid yaml format if I dump my scope to hash and convert to_yaml. file { "/etc/mcollective/facts.yaml" : owner => root,

[Puppet Users] Re: How to make send in a "q" when a screen shows up from exec?

2012-07-05 Thread jcbollinger
On Wednesday, July 4, 2012 6:01:02 PM UTC-5, Benjamin Lei wrote: > > So I'm trying to exec something, but during the exec a screen will show up > that I need to "q" out of to finish it. Specifically speaking, I'm trying > to exec: rvm --force install 1.8.7 Ideally, there would be a command-li

[Puppet Users] Re: proper usage of global variables / node variables / +=

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 5:34:13 AM UTC-5, fpee wrote: > > Hello puppet masters, I am cleaning up some puppet modules, using > puppet-lint. The warning I am getting is: > > top-scope variable being used without an explicit namespace > > I can turn this particular check off, but in doing my re

Re: [Puppet Users] Automated deployment with puppet

2012-07-05 Thread Christopher Wood
Use the file resource to put your jar somewhere useful, and then have the file resource notify the tomcat daemon's service resource to restart/reload the daemon. http://docs.puppetlabs.com/references/stable/type.html#file http://docs.puppetlabs.com/references/stable/type.html#service http://docs

[Puppet Users] Automated deployment with puppet

2012-07-05 Thread mouhcine MOULOU
Hi , I am new to Puppet and I just started testing it on my Debian OS, I was wondering if it's possible to create an artifact that allows auto-deploying jar file without using SSH & SCP? I Found some Threads explaining how to deploy web application on Tomcat Server, but i need to deploy a si

[Puppet Users] Automated deployement with puppet

2012-07-05 Thread mouhcine MOULOU
Hi , I am new to Puppet and I just started testing it on my Debian OS, I was wondering if it's possible to create an artifact that allows auto-deploying jar file without using SSH & SCP? I Found some threads explaining how to deploy web application on Tomcat Server, but i need to deploy a

[Puppet Users] Aptitude uninstalls puppet package when installing bind9

2012-07-05 Thread Gareth Humphries
Hi Puppeteers, I wonder if anyone else has seen or fixed this issue - I find that when I provision new servers, after the first run I have to manually re-run 'apt-get install puppet', as it gets removed. Nothing in the puppet log, however in the aptitude log there is an entry like the below (t

Re: [Puppet Users] puppet doc problem.

2012-07-05 Thread llow...@oreillyauto.com
Comments inline. On Tuesday, July 3, 2012 4:43:52 PM UTC-5, LoreLLo wrote: > > Additionally, when I try to use an rdoc type I either am not getting any >> output or can't find it. >> >> $puppet doc -m rdoc --manifestdir >> /etc/puppet/environments/test/manifests/ --modulepath >> /etc/puppet/env

[Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread ad
Hey Matt, I'm not exactly sure how you have things setup now, but the operating system fact is baked into factor and will be available on the first run. Rather than having the ENC supply your default classes, you could do so in your site.pp. Here's how I do it: stage { 'first': before => Stage['m

[Puppet Users] Re: Using onlyif

2012-07-05 Thread ad
fwiw, I put this at the top of my global site.pp (one of 3 lines in the file). # Globally set exec path so we don't have to specify it each time we use exec. Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] } hth, Adam -- You received this message because you are subscribed to

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-07-05 Thread Greg Swift
the manifest is now attached to the ticket On Friday, June 22, 2012 2:23:31 PM UTC-5, Josh Cooper wrote: > > Thanks Greg. Can you attach the manifest you are using (with the > arguments) to the ticket? > > On Fri, Jun 22, 2012 at 12:20 PM, Greg Swift wrote: > > attached to the ticket. I won't

[Puppet Users] Re: groups dependencies at user creation

2012-07-05 Thread jcbollinger
On Tuesday, July 3, 2012 4:43:24 PM UTC-5, eduardo wrote: > > Thanks your answers. > I don't figure out how avoid execute because i have a massive input > account by ENC json setting all users and membership of each one of > them. I had to make uniq entries array to avoid Duplicate definitio

[Puppet Users] proper usage of global variables / node variables / +=

2012-07-05 Thread fp
Hello puppet masters, I am cleaning up some puppet modules, using puppet-lint. The warning I am getting is: top-scope variable being used without an explicit namespace I can turn this particular check off, but in doing my research I'm finding all sorts of messages saying to avoid using +=, to

[Puppet Users] Re: Inventory access forbidden

2012-07-05 Thread Andreas Paul
Did you generate the necessary certs to access the puppetmaster facts with the dashboard? http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html#generating-certs-and-connecting-to-the-puppet-master On Thursday, July 5, 2012 3:52:15 AM UTC+2, Dennis Jacobfeuerborn wrote: > > Hi, > I've

Re: [Puppet Users] Using onlyif

2012-07-05 Thread Felix Frank
On 07/03/2012 03:15 PM, jcbollinger wrote: > On Monday, July 2, 2012 11:14:25 PM UTC-5, Ryan Coleman wrote: > > Binaries like curl and test must be fully qualified (ex. /bin/rm) or > you must pass the path attribute to your exec resource with a search > path like '/bin:/usr/bin' as the

Re: [Puppet Users] Inventory access forbidden

2012-07-05 Thread Matthew Burgess
On Thu, Jul 5, 2012 at 2:52 AM, Dennis Jacobfeuerborn wrote: > Hi, > I've just set up a puppet server using passenger plus the dashboard and > these parts all work fine but now I have enabled the inventory and added > this to the auth.conf: > > path /facts > auth any > method find, search > allow