Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Peter Bukowinski
On Mar 14, 2012, at 5:20 PM, Peter Bukowinski wrote: > On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: > On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: > > Checkout the 'creates' property, it seems like a cleaner way of doing > this: > > http://docs.puppet

[Puppet Users] Re: hiera on puppet 2.6.12

2012-03-14 Thread psychobyte
OK. got it to work. created directory /var/lib/puppet/lib/puppet/parser/functions copied the hiera files there: cp /usr/lib64/ruby/gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/ functions/* /var/lib/puppet/lib/puppet/parser/functions/ restarted puppetmaster and it seems to work now. Thank

Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Peter Bukowinski
On Mar 14, 2012, at 5:00 PM, Eugene Vilensky wrote: >>> On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: Checkout the 'creates' property, it seems like a cleaner way of doing this: http://docs.puppetlabs.com/references/2.6.8/type.html#exec >>> >>> >>> Pardon th

Re: [Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Justin Lloyd
Note that I'm testing puppetd -t on the master, just for simplicity, so I gave it a blank node entry, i.e. "node 'puppet-master' { }", to eliminate recent module changes as the culprit. On Wed, Mar 14, 2012 at 1:32 PM, Justin Lloyd wrote: > I did verify correctness of the puppet user in /etc/pas

Re: [Puppet Users] Use of regular expressions

2012-03-14 Thread Denmat
Hi, This is the sort of thing I would use hiera for. It may not match your workflow but I would create a yaml file with details for the portals like so: Portals: ID_Centro: path: /var/. owner: ... Then you could use create_resource to apply the resource. $my_list = hiera('portal

Re: [Puppet Users] Use onlyif in EXEC

2012-03-14 Thread Eugene Vilensky
>> On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: >>> >>> Checkout the 'creates' property, it seems like a cleaner way of doing >>> this: >>> >>> http://docs.puppetlabs.com/references/2.6.8/type.html#exec >> >> >> Pardon the newbie question, but does work on or de-reference symlinks? >>

Re: [Puppet Users] Database and user not created (Puppetlabs mysql module)

2012-03-14 Thread Adam Heinz
I don't know anything about that particular module, but I have been using github.com/camptocamp/puppet-mysql for over a year without much trouble. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@

Re: [Puppet Users] Sanity Check Request: Trying something Out-Of-The-Box - MasterLess Puppet

2012-03-14 Thread Adam Heinz
That's pretty much how I bootstrap a puppet master, except that I use svn to copy configuration into /etc/puppet, and I don't use an alternate module path. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to pupp

Re: [Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Justin Lloyd
I did verify correctness of the puppet user in /etc/passwd, shadow, group, and gshadow. I'm also seeing it on multiple systems (probably all) so it's likely something in my config, just not sure what it could be so far. On Wed, Mar 14, 2012 at 1:22 PM, Peter Berghold wrote: > I saw that when the

Re: [Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Peter Berghold
I saw that when the userid "puppet" did not exist on a system. On Wed, Mar 14, 2012 at 3:00 PM, Justin Lloyd wrote: > I'm suddenly getting the below errors from Rack during puppetd -t > (excerpted from the pink HTML output and cleaned for readability): > > Could not prepare for execution: Got 1

Re: [Puppet Users] template/files - ignoring lines

2012-03-14 Thread Denmat
Hi, That depends on what you have available to you to test for. You can use 'if' statements and other ruby conditional statements in your template which can test values of variables and make appropriate decisions. You might like to provide a bit more info on what you are trying to do? Den On

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Douglas Garstang
On Wed, Mar 14, 2012 at 12:37 PM, Darin Perusich wrote: > Hi Douglas, > > > On Wed, Mar 14, 2012 at 3:22 PM, Douglas Garstang > wrote: >> On Wed, Mar 14, 2012 at 9:59 AM, Darin Perusich wrote: >>> There's a .spec in the tarball that builds cleanly when you comment >>> out the two %defines and ma

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Darin Perusich
Hi Douglas, On Wed, Mar 14, 2012 at 3:22 PM, Douglas Garstang wrote: > On Wed, Mar 14, 2012 at 9:59 AM, Darin Perusich wrote: >> There's a .spec in the tarball that builds cleanly when you comment >> out the two %defines and manually set the version and release. The >> %defines cause a "Too man

Re: [Puppet Users] hiera on puppet 2.6.12

2012-03-14 Thread Markus Falb
On 14.3.2012 18:50, psychobyte wrote: > I'm trying to use standard hiera on puppet (gentoo). I simply did > > # gem install hiera > > Then setup /etc/hiera.yaml > > When i call the hiera() function in puppet i get > > "Error 400 on SERVER: Unknown function hiera at /data/puppe/manifests/ > site.pp

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Douglas Garstang
On Wed, Mar 14, 2012 at 9:59 AM, Darin Perusich wrote: > There's a .spec in the tarball that builds cleanly when you comment > out the two %defines and manually set the version and release. The > %defines cause a "Too many levels of recursion in macro expansion." > error. Darin, I haven't gone b

[Puppet Users] Re: restarting the smf services on solaris 10

2012-03-14 Thread Afroz Hussain
Thanks, It helps me a lot to solve my issue. On Mar 14, 12:04 pm, qutic development wrote: > Why would you like to do this? With the following service provider (as a > sample) openvpn would be restarted if the service is in a maintenance state > (if possible) or disabled. Or do I miss your poin

Re: [Puppet Users] Load-Balancing puppetmaster

2012-03-14 Thread hai wu
Thanks a lot Jeff!!! In puppet.conf, after changing from: ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY To:  ssl_client_verify_header = HTTP_X_CLIENT_VERIFY  ssl_client_header = HTTP_X_CLIENT_DN Things are working fine. I am not sure why this is the case, as

Re: [Puppet Users] Load-Balancing puppetmaster

2012-03-14 Thread Jeff McCune
On Tue, Mar 13, 2012 at 10:30 PM, hai wu wrote: > I am following steps in 'Pro Puppet' book to setup load balancing for > puppetmaster. I am using passenger 3.0.11.9, ruby 1.8.7, puppet 2.7.12. > While things were fine when it is single node configuration, after following > the steps from 'Pro pup

[Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Justin Lloyd
I'm suddenly getting the below errors from Rack during puppetd -t (excerpted from the pink HTML output and cleaned for readability): Could not prepare for execution: Got 10 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: Permission denied

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-14 Thread Ken Barber
> Since the whole fwpre class is run before everything else, is it necessary > to define each resource with dependencies with firewall {"002 testing": > ...}->firewall {... as in your gist? No its not. > Anyway, works great for us now. Thanks much! Good to hear - I'll get the documentation fixed

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-14 Thread Christian McHugh
Super, it all works great! Since the whole fwpre class is run before everything else, is it necessary to define each resource with dependencies with firewall {"002 testing": ...}->firewall {... as in your gist? Anyway, works great for us now. Thanks much! All that remains is waiting for a new

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-03-14 Thread Julien C.
Wow, I didn't even know it was out. Thanks ! Le mercredi 14 mars 2012 15:05:03 UTC+1, Darin Perusich a écrit : > > The package has been updated to 2.7.14 in the repo. > > -- > Later, > Darin > > On Tue, Mar 13, 2012 at 7:38 AM, Julien C. wrote: > > By the way, I just noticed the version in your r

Re: [Puppet Users] Re: CentOS 5 packages in EPEL are outdated ?

2012-03-14 Thread Julien C.
Le mercredi 14 mars 2012 01:02:53 UTC+1, Todd Zullinger a écrit : > > Julien C. wrote: > > Answering to myself: no 2.6.14 doesn't send reports. > > Is this only an issue with integrating with dashboard or are you not > getting reports at all with 2.6.14? I'm using the EPEL packages and > my rep

[Puppet Users] hiera on puppet 2.6.12

2012-03-14 Thread psychobyte
Hi, I'm trying to use standard hiera on puppet (gentoo). I simply did # gem install hiera Then setup /etc/hiera.yaml When i call the hiera() function in puppet i get "Error 400 on SERVER: Unknown function hiera at /data/puppet/manifests/ site.pp:27" Is there a step that I'm missing? BTW. s

Re: [Puppet Users] CentOS 5 packages in EPEL are outdated ?

2012-03-14 Thread Michael Stahnke
On Tue, Mar 13, 2012 at 7:04 PM, Derek J. Balling wrote: > Is there rsync access to that repo?  I'd like to mirror it behind our > firewall so our machines can access it, and HTTP mirroring is so sub-optimal. > [ben@enlil:~]% nmap -p 873 yum.puppetlabs.com Starting Nmap 5.51 ( http://nmap.org )

[Puppet Users] Re: Creating multiple resources from an array

2012-03-14 Thread Andy Taylor
Thanks for the solution, works great :) And I had to resort to google for the barney reference - I'll pass that right along :) On Mar 13, 9:37 pm, jcbollinger wrote: > And tell Barney I said "hey." -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

[Puppet Users] Use of regular expressions

2012-03-14 Thread Antonio Xanxess
Hello everyone! I have a problem and would like to help me. I have to control the configuration of an application that has special features. The application itself is an educational portal. These sites are hosted on a single machine and serve different schools. The file where you see that school

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Darin Perusich
There's a .spec in the tarball that builds cleanly when you comment out the two %defines and manually set the version and release. The %defines cause a "Too many levels of recursion in macro expansion." error. -- Later, Darin On Wed, Mar 14, 2012 at 12:25 PM, Douglas Garstang wrote: > Sorry if

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-14 Thread Ken Barber
> You said: >> >> the numbers in the namevar are ultimately for how they get >> ordered in the file ruleset as you state - but not what order >> they are _inserted_. > > Which makes me still think that the order various modules kick can affect > the firewall rules. Thus, a stage after main is still

Re: [Puppet Users] How Puppet can interact with CloudStack API?

2012-03-14 Thread David Nalley
On Wed, Mar 14, 2012 at 11:55 AM, Giuseppe Futia wrote: > Hello everyone, > > has anyone used Puppet to configure virtual > machines managed and deployed with CloudStack? > > In other words, are there any mechanisms by which > Puppet is able to easily interact with CloudStack API? > > Thanks in ad

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread R.I.Pienaar
- Original Message - > From: "Douglas Garstang" > To: "Puppet Users" > Sent: Wednesday, March 14, 2012 4:25:28 PM > Subject: [Puppet Users] Mcollective for OpenSUSE > > Sorry if there's an mcollective mailing list... > > So, I'm working for a company that using OpenSUSE, which in my >

[Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Douglas Garstang
Sorry if there's an mcollective mailing list... So, I'm working for a company that using OpenSUSE, which in my opinion is a very bad idea. Anyway, how can I get collective for OpenSUSE that doesn't involve using tarballs? It's not in the standard OpenSUSE repo's. Does someone else have a repo? Ar

[Puppet Users] template/files - ignoring lines

2012-03-14 Thread Gamon
I have a file containing: line1 line2 line3 How can I use puppet (template/file) to maintain line1 and line3 and ignore line2? Thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegro

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-14 Thread Christian McHugh
Great! ... almost? The Firewall notify dependency check almost covers everything. I really like its elegance. The one problem I can still think of is that the firewall module is not the only one setting firewall rules. In the puppetlabs/apache module, for example, it attempts to open up port 8

[Puppet Users] ENC with Hiera

2012-03-14 Thread Pablo Fernandez
Hi, After some time playing with Puppet, I came to realize simple node inheritance with includes is not enough, and you may experience unwanted results. Then I started playing with the External Node Classifier that Puppet Dashboard brings in, and even though they implement node groups the way o

[Puppet Users] How Puppet can interact with CloudStack API?

2012-03-14 Thread Giuseppe Futia
Hello everyone, has anyone used Puppet to configure virtual machines managed and deployed with CloudStack? In other words, are there any mechanisms by which Puppet is able to easily interact with CloudStack API? Thanks in advance, Giuseppe -- You received this message because you are subscrib

[Puppet Users] Re: [ssh_authorized_key] target definition bug?

2012-03-14 Thread Antidot SAS
After a little bit of digging it seems that the error is due to rights of '/home/user/.ssh'. In fact puppet tries to create those with the following rights: drwxr-xr-x 2 test test 4096 Mar 14 15:51 /home/test drwx-- 2 test root 4096 Mar 14 15:51 /home/test/.ssh When I change the rights to:

[Puppet Users] [ssh_authorized_key] target definition bug?

2012-03-14 Thread Antidot SAS
Hi everyone, I am using puppet 2.7.9 on debian linux setup with gem. I am trying to setup the define as followed: -- define user::environment::create_authorized_key ( $dst_user = undef, $local_file = "/var/lib/keys/${name}", $home = undef, $options = undef ) { # --[ defau

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-03-14 Thread Darin Perusich
The package has been updated to 2.7.14 in the repo. -- Later, Darin On Tue, Mar 13, 2012 at 7:38 AM, Julien C. wrote: > By the way, I just noticed the version in your repo is 2.7.10, which > shouldn't be used according to puppetlabs. > Any chance you can make the time to push a new version ? >

[Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-14 Thread jcbollinger
On Mar 13, 4:24 pm, Christian McHugh wrote: > I appreciate the interest but I don't understand how you can tell me you > don't have any experience with the module but yet know that I'm doing it > wrong. I didn't say you were doing it wrong. I said you were incorrect that run stages are the on

Re: [Puppet Users] Puppet Dashboard, arrays and hashes

2012-03-14 Thread Pablo Fernandez
Hi, I am actually interested in this... what is the actual status? I would like to be able to have arrays and define them in the dashboard, possibly filling parts of the array from different groups. Is it possible? How? Thanks! BR/Pablo On Miércoles, 7 de Marzo de 2012 23:22:09 Nan Liu escri

[Puppet Users] Re: Hiera and Nodeless Puppet HELP

2012-03-14 Thread Daysmen
The same would apply to customised facts used to provide information to puppet master to compile the catalog If the facts can be change the surely this would alter the build My customised facts are stored in a root owned file that - i guess for security you could as well audit that file or lock i

Re: [Puppet Users] Can Puppet Windows version support system variables like "%HOMEDRIVE%"?

2012-03-14 Thread Bruce Richardson
On Tue, Mar 13, 2012 at 11:48:20PM -0700, Feifei Jia wrote: > > I'd like to know if Puppet Windows support Windows environment variables? Operating system environment variables are not directly accessible, no, although any that beging FACTER_ will be imported as facts (so that "%FACTER_EXAMPLE%"

[Puppet Users] Can Puppet Windows version support system variables like "%HOMEDRIVE%"?

2012-03-14 Thread Feifei Jia
I've created a testing manifest like this: file { '%HOMEDIRVE%\testdir': ensure => directory, provider => windows, } Applied with error: C:\Users\Administrator>puppet apply c:\init.pp warning: Could not retrieve fact fqdn Could not parse for environment production: Could not match %HOMED

Re: [Puppet Users] restarting the smf services on solaris 10

2012-03-14 Thread qutic development
Why would you like to do this? With the following service provider (as a sample) openvpn would be restarted if the service is in a maintenance state (if possible) or disabled. Or do I miss your point? service { 'openvpn': ensure=> running, provider => smf, enable=> true,