[Puppet Users] Re: Puppet client not auto updating

2013-04-08 Thread Sy Doveton
Hi Martijn, Thanks for your comments. I am using puppet agent --test now that I have upgraded to ver3 as it was not available previously. The service appears to be working better now and am having more luck with things applying. Thanks all for your help. Regards Sy On Monday, 8 April 2013 1

[Puppet Users] How to executing puppet module via puppetrun

2013-04-08 Thread Love Anthony Vish
Hello Guys, I am able to execute puppetrun on specified client. #puppetrun mars.example.co.in But the above command only load or read .pp file under * /etc/puppet/manifests*. Is there any way, Where i can describe my own module or specified module for specific puppet client. e.g. #puppetrun j

Re: [Puppet Users] How do I check content of a file in puppet

2013-04-08 Thread jyang
If you are still looking for an audit/compliance solution, check out www.metaforsoftware.com. We can track daily changes on your servers and send alerts when we find diffs from one day to the next. Can also do large scale diffs across servers in a cluster. We're in free beta and also working

Re: [Puppet Users] puppet uninstall package

2013-04-08 Thread Andy Harley
Hi Francesco, On Mon, Apr 8, 2013 at 6:46 PM, Francesco Fragolino wrote: > Hy I m a new user in world puppet > I have installed a packge test on a node "screen" without problem > Now i want to try to uninstall it but without success. This is the file > configuration > this is my file init.pp > pa

[Puppet Users] puppet uninstall package

2013-04-08 Thread Francesco Fragolino
Hy I m a new user in world puppet I have installed a packge test on a node "screen" without problem Now i want to try to uninstall it but without success. This is the file configuration this is my file init.pp package {"screen-4.0.3-16.el6": ensure=> "absent" } #package and purge its conf

Re: [Puppet Users] replacing mkdir -p

2013-04-08 Thread John Warburton
On 5 April 2013 03:23, Mike Power wrote: > Puppet right now requires every element of a path to have an individual > file definition. This makes it had to take an arbitrary path as a > parameter. You are forced to require your client to make the entire path > structure for you or instead you us

Re: [Puppet Users] Re: replacing mkdir -p

2013-04-08 Thread Tony C
I have the same issue, I basically create an array, that way it cuts it down to one FILE, and not the same thing over and over again. file { ["/blah", "/blah/blah", "/blah/blah/blah", "/blah/blah/blah/blah", "/blah/blah/blah/blah/blah"]: ensure => directory, owner => "blah", group => "blah", mo

[Puppet Users] Puppet parameterized class - include for declaration?

2013-04-08 Thread Shantanu
The parameterized classes guide mentions that a parameterized class is declared using following syntax [1]: class {'classname': } But the puppetlabs postgresql modulementions that a parameterized class ' postgresql::server

Re: [Puppet Users] Re: replacing mkdir -p

2013-04-08 Thread Luca Gioppo
Can you post a complete example please? Thanks Luca 2013/4/4 Mike Power > Actually I found if I created a resource between path and file called > element, I could give it a unique name. Then inside the body I could check > to see if the File is declared, if not I could declare it. > > On Thurs

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Tony C
Right on! Thanks Jon, That was it. Got it working just as you stated. It's exactly what I need. Tony On Monday, April 8, 2013 1:01:58 PM UTC-7, Jonathan Proulx wrote: > > > On Mon, Apr 8, 2013 at 3:33 PM, Tony C >wrote: > >> Jon, >> >> Can you tell me some more detail about puppetlabs_stdlib?

[Puppet Users] Re: Show manifest code in rdoc

2013-04-08 Thread llowder
On Monday, April 8, 2013 12:36:33 PM UTC-5, banjer wrote: > > Is it possible to have puppet doc show all of the manifest code in the > generated docs? I'm generating some html docs and would love to be able to > look at the actual code for each class or define statement. With syntax > highli

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Jonathan Proulx
On Mon, Apr 8, 2013 at 3:33 PM, Tony C wrote: > Jon, > > Can you tell me some more detail about puppetlabs_stdlib? I am unfamiliar > with this module. I read on it but not sure specifically how you are using > it. > > stdlib provides many useful functions, most of which are called by other module

[Puppet Users] Re: Not custom facts, but variables?

2013-04-08 Thread Tony C
Looks like external facts are available after facter 1.7, i'm using 1.6 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.co

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Jonathan Proulx
On Mon, Apr 8, 2013 at 3:25 PM, Dan White wrote: > That looks great. > > Another thing to consider: As of hiera 1.2.0, you have deep merge for > hashes. > You do not need to repeat parameters at every level ! > > That's good to know. We've been using hiera arrays to collect things like classes a

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Tony C
Jon, Can you tell me some more detail about puppetlabs_stdlib? I am unfamiliar with this module. I read on it but not sure specifically how you are using it. Thanks, Tony On Monday, April 8, 2013 12:14:04 PM UTC-7, Jonathan Proulx wrote: > > On Mon, Apr 8, 2013 at 2:57 PM, Dan White > > wrot

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Tony C
Thanks for your response, but I can see me possibly having tons of yaml files since it's very possible I may have 100 tomcat servers, all with the same configuration. I don't think it will scale. On Monday, April 8, 2013 11:57:10 AM UTC-7, Ygor wrote: > > Based on your description, I would su

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Dan White
That looks great. Another thing to consider: As of hiera 1.2.0, you have deep merge for hashes. You do not need to repeat parameters at every level ! “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill W

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Jonathan Proulx
On Mon, Apr 8, 2013 at 2:57 PM, Dan White wrote: > Based on your description, I would suggest the following: > > Let's take tomcat as a specific example. > Assumption: You have a tomcat module that can be configured with > parameters. > > Here is the suggestion: Add a hostname level to your heira

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Dan White
Based on your description, I would suggest the following: Let's take tomcat as a specific example. Assumption: You have a tomcat module that can be configured with parameters. Here is the suggestion: Add a hostname level to your heirarchy. OK, so now for node hostx.example.org, you want this

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Tony C
sure, to be specific, we have environments, dev, test, qa, stage, and prod. That part I got with your help on my last post. Thank you. Within these environments, we have applications. We only have a few apps. So let's say some machines are oracle db machines, some are tomcat, and some are apac

[Puppet Users] Re: Remove msi from windows 7

2013-04-08 Thread Paul Tötterman
> Could someone help me to understand why the place absent, the package you > are installing is not removed? > > package { 'mozilla': > This is a wild guess, but the package title (name, whatever it's called) should match the item in the Programs and Features Control Panel. Try fixing that a

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Jonathan Proulx
On Mon, Apr 8, 2013 at 2:28 PM, Tony C wrote: > After reading several posts, it looks like setting a key on every host, > and supplying a different value based on that host's function is not a > proper use of facts, but more for variables. > > We are using hiera, and based on my hierarchy, > > >

Re: [Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Dan White
I am still confuzzled by your "application" Would you provide a more specific example ? I am thinking that this is something that can be controlled at the module level http://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#parser-set-variables “Sometimes I think the surest

[Puppet Users] Not custom facts, but variables?

2013-04-08 Thread Tony C
After reading several posts, it looks like setting a key on every host, and supplying a different value based on that host's function is not a proper use of facts, but more for variables. We are using hiera, and based on my hierarchy, :hierarchy: - common - %{application} :yaml: :datadir

[Puppet Users] Announce: Facter 1.7.0-rc2 Available

2013-04-08 Thread Matthaus Owens
Facter 1.7.0-rc2 is a feature release candidate in the 1.x series with new features and bug fixes. For current documentation on Facter 1.7.0, please see: http://docs.puppetlabs.com/facter/1.7/ To see a list of the issues addressed by this release, check out the 1.7.0 version in our issue tracker a

[Puppet Users] Re: Announce: Module puppetalbs/puppetdb 1.2.1 Available

2013-04-08 Thread Felipe Salum
Ken, Looks like the new parameters (report_ttl, node_ttl, node_purge_ttl) are not working. It is not being sent by the puppetdb::server class to the database_ini class. Neither from the puppetdb main class to the puppetdb::server class. It is also not being used in database_ini as it is set to

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Tony C
Thank you so much. I have never seen that page before. I think my issue is resolved for now. I'll open another post for facts. On Monday, April 8, 2013 11:11:18 AM UTC-7, Ygor wrote: > > I must retract my earlier claim. > I tried mine with and without the scoping double-colon and it works both >

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Dan White
I must retract my earlier claim. I tried mine with and without the scoping double-colon and it works both ways. The documentation ( http://docs.puppetlabs.com/hiera/1/variables.html ) uses the double-colon. HOWEVER, I think (again) I see your problem: What is "application" ? All the variabl

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Tony C
Yes, the double colon was a problem, also it looks like in the agent conf, this does not work applicaton = app_1 So this goes back to my original issue. Without an ENC, how can I 'tag" my machines with specific info. I was playing with custom facts but it looks like the same facts get applied t

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Dan White
Sorry. I am mistaken on this “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "Dan White" To: puppet-users@googlegroups.com Sent: Monday

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Dan White
I think the double-colon is the problem. In my hiera.yaml , I have :hierarchy: - %{environment}/%{hostname} - %{environment}/common - %{hostname} - common And it works “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has trie

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Tony C
Yes, I have restarted every service. If I replace the %{environment} and %{application} with the actual values in hiera.yaml, everything works so I know at least I'm on the right track. I have also run the hiera command with -c with environment=dev application=app1 and that works as well. Ton

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Ellison Marks
If you're running puppet as a service, have you restarted the service since adding that value? On Monday, April 8, 2013 10:40:45 AM UTC-7, Tony C wrote: > > Oops, I copied and pasted the wrong thing. > > > hiera.yaml > > :yaml: > :datadir: /etc/puppetlabs/hieradata/%{::environment} > :hierarchy

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Tony C
Oops, I copied and pasted the wrong thing. hiera.yaml :yaml: :datadir: /etc/puppetlabs/hieradata/%{::environment} :hierarchy: - common - %{::application} On my agent puppet.conf, I have tried what you suggested already but it can't find the value in hiera. [agent] certname = xx

[Puppet Users] Show manifest code in rdoc

2013-04-08 Thread banjer
Is it possible to have puppet doc show all of the manifest code in the generated docs? I'm generating some html docs and would love to be able to look at the actual code for each class or define statement. With syntax highlighting would be even sweeter. I'm using the following to create my do

Re: [Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Dan White
http://docs.puppetlabs.com/guides/environment.html#on-the-agent-node I put it in the [agent] block of puppet.conf “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Ori

[Puppet Users] More Hiera and Environment questions

2013-04-08 Thread Tony C
Hi everyone, I have a question that I can't seem to find a solution to. I am using hiera, and having a hard time understanding how to pass environments for dynamic look ups. For example, if my hiera.yaml looks like this: :hierarchy: - %{::environment} - common How / where do I pass the $envir

[Puppet Users] Announce: Module puppetalbs/puppetdb 1.2.1 Available

2013-04-08 Thread Ken Barber
A new release of the puppetlabs/puppetdb module is now available on the Forge: http://forge.puppetlabs.com/puppetlabs/puppetdb/1.2.1 This is a bugfix releases that solves the PuppetDB startup exception: java.lang.AssertionError: Assert failed: (string? s) This was due to the default `node-ttl`

Re: [Puppet Users] Re: Puppet and OVO/ITO/OML

2013-04-08 Thread Stefan Schulte
On Sun, 7 Apr 2013 02:16:07 -0700 (PDT) ro...@liveperson.com wrote: > Thanks for all the information Stefan! > I'd be happy to see the module you're using if it's possible. > > Roee. > Ok so I have a hpoml::client class to include at node level. It basically consists of a hpoml::user class wher

[Puppet Users] Re: Announce: Hiera 1.2.0 Available

2013-04-08 Thread Chuck
Hiera 1.2.0 is refusing to use the Puppet_logger backend on my puppet masters and is dumping ALL of its logs into my HTTP error.log file. Which then fills up my /var/log file system. puppetdb-terminus-1.2.0-1.el6.noarch puppet-3.1.1-1.el6.noarch puppet-server-3.1.1-1.el6.noarch hiera-1.2.0-1.e

Re: [Puppet Users] Re: memory issue

2013-04-08 Thread Erik Dalén
it could be that you have a ulimit for the amount of ram the puppetmaster process (or puppet user) can use. -- Erik Dalén On Monday 8 April 2013 at 12:28, Mamta Garg wrote: > Hi jcbollinger , > > I have added 1 GB more RAM on server and now my free RAM is more than 2 > GB.Also started pu

Re: [Puppet Users] Re: memory issue

2013-04-08 Thread jcbollinger
On Monday, April 8, 2013 5:28:19 AM UTC-5, Mamta Garg wrote: > > Hi jcbollinger , > > I have added 1 GB more RAM on server and now my free RAM is more than 2 > GB.Also started puppet ,puppetmaster,puppet-dashboard services. > > But nodes are still showing unresponsive.Any idea? > I already sug

[Puppet Users] Re: Allowing external users to deploy code where an existing puppet instance exists.

2013-04-08 Thread jcbollinger
On Monday, April 8, 2013 6:03:27 AM UTC-5, Richard wrote: > > Hi All, > > I'm currently using puppet to deploy our O/S configuration to servers. > I've got a requirement to allow a semi-trusted set of external users to > deploy application configuration onto these same hosts. For example, >

[Puppet Users] Re: Puppet client not auto updating

2013-04-08 Thread jcbollinger
On Friday, April 5, 2013 5:48:10 PM UTC-5, Sy Doveton wrote: > > Hi, > > I am new to puppet and am experimenting with some basic commands. I have a > puppetmaster server and a couple or servers with puppet client. All servers > are running ubuntu. > > I have set up the link between the master a

[Puppet Users] Re: Puppet client not auto updating

2013-04-08 Thread Martijn
Hi Sy, The Puppet agent will usually log to syslog, both in case of errors or succes, so check in /var/log/syslog (on Ubuntu) for any messages. By default, the agent runs every half hour so I'd expect to see some entries in the log every half hour. Make sure the puppet agent service runs as ro

Re: [Puppet Users] Flush provider - Differentiating between new resource and modification?

2013-04-08 Thread jcbollinger
On Saturday, April 6, 2013 5:22:03 PM UTC-5, Stefan Schulte wrote: > > On Fri, 5 Apr 2013 00:57:32 -0700 (PDT) > Gavin Williams > wrote: > > > Morning all > > > > I'm working on converting some of my NetApp providers to > > prefetch/flush style to try and optimize performance. > > > > I've

[Puppet Users] Re: Allowing external users to deploy code where an existing puppet instance exists.

2013-04-08 Thread Martijn
Hi Richard, I'm not certain Puppet itself will be able to fill that role properly. AFAIK there's no way to limit certain manifests access to specific directories, or prevent others from breaking your code. Even with a bunch of testing, en error in some manifest could cause catalog compilation

[Puppet Users] Struggling with RDoc

2013-04-08 Thread Dan White
I am trying to use RDoc to document everything possible inline. I am using this Forge module: https://forge.puppetlabs.com/fiddyspence/sysctl It's README does not show up in the generated docs. I have tinkered with rdoc-markup in that README without success. Any clues out there for this cl

[Puppet Users] Re: Puppet client not auto updating

2013-04-08 Thread Sy Doveton
Hi Drew, Thanks for your message. I have gone through my test environment and have installed the PPA and upgraded to 3.1.1 on the master and clients. I will test how things work with the service, failing that I will try the cron route. So to confirm on the puppet clients you would stop the ser

[Puppet Users] Allowing external users to deploy code where an existing puppet instance exists.

2013-04-08 Thread Richard
Hi All, I'm currently using puppet to deploy our O/S configuration to servers. I've got a requirement to allow a semi-trusted set of external users to deploy application configuration onto these same hosts. For example, they'd be allowed to configure anything under a /apps directory. What wo

Re: [Puppet Users] Re: memory issue

2013-04-08 Thread Mamta Garg
Hi jcbollinger , I have added 1 GB more RAM on server and now my free RAM is more than 2 GB.Also started puppet ,puppetmaster,puppet-dashboard services. But nodes are still showing unresponsive.Any idea? Thanks, Mamta On Mon, Apr 1, 2013 at 9:31 AM, jcbollinger wrote: > > > On Monday, April 1