[Puppet Users] Re: Best practice question: Class(es) with client/server config

2014-04-25 Thread Antoine Cotten
I don't pretend to give you best practices here, but I would personally create one cups class as an entry point, with two (at least) boolean parameters: client and server. client defaults to true and server to false, either using class defaults or Hiera's base hierarchy level. Then you could im

Re: [Puppet Users] How to Prevent Both MySQL and Percona From Being Installed? (RSOLVED)

2014-04-25 Thread Walter Heck
Why don't you use the puppetlabs-mysql module? There you can use percona simply by modifying a few parameters, circumventing this whole issue. just my 2 cents :) cheers, Walter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe f

Re: [Puppet Users] Re: Best practice question: Class(es) with client/server config

2014-04-25 Thread Felix Frank
That'll work, and not at all a bad design choice. But the parameterised cups wrapper class is ultimately unnecessary - you can just have all nodes include cups::client and make sure that the server(s) also include cups::server in a fashion that suits your general manifest design. Talking roles/pro

Re: [Puppet Users] puppet apply stops with message "Killed"

2014-04-25 Thread Felix Frank
Hi, can you find out wether that is reproducible with Puppet 3.4? If not, you may just want to hold out for 3.6, wait if it works better. For debugging this, I would try two things. First, keep an eye on 'ps auxwf' output while puppet is seemingly frozen, see wether and what is being forked. If

Re: [Puppet Users] Best way to manage auth.conf

2014-04-25 Thread Felix Frank
Hi, On 04/22/2014 08:45 PM, Benjamin72 wrote: > I would like to manage *auth.conf* file of puppet clients to be able to > use puppet kick. On 3.5.1? I disbelieve that 'puppet kick' is supported by this anymore. > I tried this module : https://github.com/puppetlabs/puppetlabs-auth_conf > but enco

Re: [Puppet Users] Puppet // Puppet Dashboard // PuppetDB

2014-04-25 Thread Mark Cartwright
While true, at least in theory, I have the same issue (I had a working report-only dashboard, then installed PuppetDB and now no longer have reports on my dashboard), and I have not modified or removed the report bits of my config. This is my puppet.conf as it sits in production with only some

[Puppet Users] Only some Puppet Modules show up in Foreman

2014-04-25 Thread myself3812
Hi there, I am new to foreman and just installed version 1.2 Then I installed some puppet modules to my puppet environment production. In foreman later I imported the classes from my local puppet server The import afterwards showed me some of the modules, but other modules are not shown My /etc

Re: [Puppet Users] Puppet and VMWare (API)

2014-04-25 Thread Gavin Williams
Take a look at Foreman [1] It's able to manage VSphere resources, create new vm's, manage tftpboot config, etc... Cheers Gav [1] http://www.theforeman.org/ On Thursday, 24 April 2014 22:53:14 UTC+1, Jakov Sosic wrote: > > On 04/24/2014 07:44 PM, Forrie wrote: > > I believe this question is di

[Puppet Users] Dashboard not getting reports after installation of PuppetDB

2014-04-25 Thread Mark Cartwright
Background: I had started with a basic install of Open Source puppet (3.4.2 on master and clients) and Dashboard (1.2.23), both running as Passenger applications under Apache. I have not (so far) configured Inventory for the Dashboard but wouldn't mind adding this if I can get basic reports back

[Puppet Users] Re: Sharing Puppet Functions

2014-04-25 Thread jcbollinger
On Thursday, April 24, 2014 7:43:08 PM UTC-5, William Leese wrote: > > On Thursday, April 24, 2014 10:36:13 PM UTC+9, jcbollinger wrote: >> >> On Thursday, April 24, 2014 2:45:21 AM UTC-5, William Leese wrote: >>> >>> The accepted standard for sharing code seems to be modules, which >>> doesn't

Re: [Puppet Users] Best way to manage auth.conf

2014-04-25 Thread Kenton Brede
There's an augeas lens that works with auth.conf, puppet_auth.aug. Would using the augeas type work for you? http://docs.puppetlabs.com/references/latest/type.html#augeas Kent On Tue, Apr 22, 2014 at 1:45 PM, Benjamin72 wrote: > Hi, > > I would like to manage *auth.conf* file of puppet client

[Puppet Users] Re: Best practice question: Class(es) with client/server config

2014-04-25 Thread jcbollinger
On Thursday, April 24, 2014 7:35:10 PM UTC-5, Joachim Schrod wrote: > > Hi, > > I've got question about best practice, and am interested in advice > from you experienced folk. > > I have a service where there is one server in my net and many > clients (actually, all systems are clients): CUPS

[Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread Dan Pasacrita
Hey everyone, first I want to say that I joined this community a few days ago and already you guys have been amazingly helpful. One thing that's been puzzling me lately is how I can have puppet examine a directory, compare its contents against a source, but only notify you if anything is missin

Re: [Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread Felix Frank
Hi, On 04/25/2014 04:22 PM, Dan Pasacrita wrote: > file { '/path/to/file': > ensure => "directory", > recurse => "remote", > mode => 755, > source => "/path/to/source", > } > > But is there any way for it to /just/ check the director

Re: [Puppet Users] Installed Puppet, installed Razor module but /etc/puppet/modules/razer/test directory missing?

2014-04-25 Thread Felix Frank
Hi, well the file *does* not exist. That should have made you suspicious ;-) What gave you the idea that this was a way of installing the software using the module? A cursory glance at the repo for the module reveals that there is a different manifest file that you can apply, though: https://gith

Re: [Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread José Luis Ledesma
You can use the noop parameter to avoid modifications, and the tagmail feature to receive an email notification just for this resource. Regards, El 25/04/2014 16:22, "Dan Pasacrita" escribió: > Hey everyone, first I want to say that I joined this community a few days > ago and already you guys h

Re: [Puppet Users] Puppet is not updating user passwords

2014-04-25 Thread Felix Frank
Well, next question then is: What's the output of `ruby --version`? On 04/24/2014 02:55 AM, Mike R wrote: > I installed *libshadow-ruby1.8* however it still failed to update, > however this time I ran in debug mode: > > /vagrant@precise64:/tmp$ sudo puppet apply --verbose --debug main.pp > warnin

[Puppet Users] Re: A file managed by puppet that is left alone if customized

2014-04-25 Thread jcbollinger
On Thursday, April 24, 2014 8:33:03 AM UTC-5, Paul Tötterman wrote: > > Hi, > > I'm managing workstations using puppet, and I was wondering if there's a > better way to do this: > > $dir = inline_template('<%=ENV["HOME"]%>') > > define customizable_file($source=undef,$template=undef,$replacemd5

Re: [Puppet Users] Dashboard not getting reports after installation of PuppetDB

2014-04-25 Thread Ken Barber
You need to route reports to the dashboard AND puppetdb: reports = puppetdb,http (or something like that) I can't see even puppetdb listed in your puppet.conf btw. And I've never seen 'httpd' either, not sure what that report handler represents? So to me this doesn't even look like reports are

Re: [Puppet Users] Dashboard not getting reports after installation of PuppetDB

2014-04-25 Thread Mark Cartwright
I had originally sent reports to both, but when I didn't get them in the dashboard (where I actually use them) I dropped puppet db. The httpd directive tells it to submit to the dashboard using the report URL and did work before. I'll try again. Certainly can't hurt. The line originally read: r

[Puppet Users] Re: Dashboard not getting reports after installation of PuppetDB

2014-04-25 Thread Mark Cartwright
Ok.. I found my issue. Basically, everyone that said "you don't need to change anything" was right, although you (ken) pointing out the httpd raised my awareness. The method is "http" not "httpd" -- Force of habbit and restarting the apache server caused me to "typo" and add the 'd'. Without

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-25 Thread Kenton Brede
If the end game is allowing users to add to a Puppet controlled file, perhaps you can use concat, similar to the "class motd" example on this page: https://github.com/puppetlabs/puppetlabs-concat Kent On Thu, Apr 24, 2014 at 8:33 AM, Paul Tötterman wrote: > Hi, > > I'm managing workstations u

Re: [Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread Dan Pasacrita
Thanks dude, noop was exactly what I was looking for. I'm wondering why the Documentation doesn't point out this feature more, because I don't recall ever seeing it. On Fri, Apr 25, 2014 at 10:54 AM, José Luis Ledesma < joseluis.lede...@gmail.com> wrote: > You can use the noop parameter to avoid

Re: [Puppet Users] Any way to have puppet notify me if any files are missing from a directory?

2014-04-25 Thread José Luis Ledesma
It is described in the metaparameters section http://docs.puppetlabs.com/references/latest/metaparameter.html Regards, El 25/04/2014 20:31, "Dan Pasacrita" escribió: > Thanks dude, noop was exactly what I was looking for. I'm wondering why > the Documentation doesn't point out this feature more

[Puppet Users] emulate "puppet cert clean" via API...

2014-04-25 Thread Matthew Nicholson
I'm looking to emulate "puppet cert clean " via the REST API... Up until now our puppet CA has lived on the same host as out cobbler installation, letting me have triggers in cobbler to clean certs when we rebuild hosts. its been VERY handy. Now we're splitting the two up, and I'm looking to do

Re: [Puppet Users] emulate "puppet cert clean" via API...

2014-04-25 Thread Ramin K
I did it by giving the application that revokes and deletes it's own cert to use and authorized it. I suspect delete might not be allowed by default. I wrote our method up here, https://ask.puppetlabs.com/question/3347/revoke-and-delete-cert-via-the-rest-api/ Ramin On 4/25/2014 2:09 PM, Mat

[Puppet Users] Re: Installed Puppet, installed Razor module but /etc/puppet/modules/razer/test directory missing?

2014-04-25 Thread David Lutterkort
Hi, have a look at https://forge.puppetlabs.com/puppetlabs/razor - that page talks about the entire installation process beyond what just the module does. David On Tuesday, April 22, 2014 8:05:18 PM UTC-7, Schorschi Decker wrote: > > New to Puppet, but long term Linux user (CentOS, RHEL, Ubun

Re: [Puppet Users] How to Prevent Both MySQL and Percona From Being Installed? (RSOLVED)

2014-04-25 Thread Jon Forrest
On 4/25/2014 5:31 AM, Walter Heck wrote: Why don't you use the puppetlabs-mysql module? There you can use percona simply by modifying a few parameters, circumventing this whole issue. just my 2 cents :) You're right - I could have. Maybe I should have. But, I like little puzzles like this beca