Re: [Puppet Users] Re: puppet agent heartbeat

2016-02-17 Thread Angel L. Mateo
El 17/02/16 a las 17:12, John Gelnaw escribió: On Wednesday, February 17, 2016 at 10:37:46 AM UTC-5, moons...@gmail.com wrote: is there any way we can check the heartbeat of puppet agents? and if agent is down can puppet try to bring up the server. It may be a bit primitive, but I've

Re: [Puppet Users] Difference between Puppet agent v. apply

2016-02-17 Thread Henrik Lindberg
On 18/02/16 02:10, warron.french wrote: Can someone please clearly explain why/when to use: puppet apply versus Puppet agent? puppet agent makes requests to the master - the master compiles the catalog. puppet apply produces the catalog locally (must have all the manifests etc on the agent)

[Puppet Users] Difference between Puppet agent v. apply

2016-02-17 Thread warron.french
Can someone please clearly explain why/when to use: puppet apply versus Puppet agent? I believe, but I want to be thoroughly corrected, the following: 1. puppet apply (with --noop) is for 'smoke' testing a specific manifest .PP-file, but 2. puppet apply will apply a single (specified on cli)

Re: [Puppet Users] Please explain need for multiple .ppm files in a single module

2016-02-17 Thread Rich Burroughs
Check out the Class Design section here: https://docs.puppetlabs.com/guides/module_guides/bgtm.html Rich On Wed, Feb 17, 2016 at 5:01 PM warron.french wrote: > Where I work a great of the Puppet Modules employed are downloaded from > the Puppet Forge; however, some

[Puppet Users] Please explain need for multiple .ppm files in a single module

2016-02-17 Thread warron.french
Where I work a great of the Puppet Modules employed are downloaded from the Puppet Forge; however, some are created by my teammates. What I can't figure out is WHY are some modules written with multiple .pp files in the manifest directory. Can someone please tutor me on this point, or point me

[Puppet Users] Configuring ElasticSearch backups repositories?

2016-02-17 Thread Todd C
Hi all. I'm using the ElasticSearch module to manage the ElasticSearch package, service, plugins, etc. and it's working quite wonderful. Something that's missing, though, is being able to manage ElasticSearch backup repositories. I'm wondering if anyone has any examples of how they may be

Re: [Puppet Users] SSL Error when connecting agent to master

2016-02-17 Thread Felix Frank
Hi, a very brief bout of researching lead me to this: https://ask.puppetlabs.com/question/6065/mac-os-x-client-ssl-error-before-caching-ca-cert/ You may be experiencing Ruby/OpenSSL version mismatches as well. Perhaps the workaround of the OP over at ask will help you as well. Good luck,

Re: [Puppet Users] Puppet 4, Windows and providers.

2016-02-17 Thread Felix Frank
Hi, so the provider is available as a plugin in your module? It appears that Puppet 4 does not load it successfully. You should probably enable debug output and look for clues as to why that is specifically. (I half feel that `puppet apply` should first plugin-sync the Ruby code to

Re: [Puppet Users] Updating facts for a client in PuppetDB independently from the master

2016-02-17 Thread Wyatt Alt
On 02/17/2016 07:48 AM, Trevor Vaughan wrote: I took a look at the API and it seems like I might have to use 'replace_facts' but I'd need to fetch the last fact set, update it, and then resubmit it with the updated information which isn't ideal but would be doable. This is your best bet

Re: [Puppet Users] Updating facts for a client in PuppetDB independently from the master

2016-02-17 Thread Trevor Vaughan
Yeah, it would. What I'm looking at doing would be injected as part of the reporting phase so it would be updated after each client run. Not an ideal solution, I would much rather be able to add some extra metadata to my clients in PuppetDB instead of needing to drag around yet another database

[Puppet Users] Updating facts for a client in PuppetDB independently from the master

2016-02-17 Thread Thomas Müller
wouldnt next puppet run replace your out of band added fact? -- 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.com. To view

Re: [Puppet Users] v3 agent to v4 master ssl issue

2016-02-17 Thread Felix Frank
Hi Christopher, I have no first hand experience with this transition, but Martin put a note about SSL in the Puppet 4 chapter of the new Puppet Essentials (yes, I'm plugging us :-) Apparently Puppet 4 cannot use a CA that was created without the dns_alt_names setting. This might just be

[Puppet Users] Re: Connecting to https://puppet:8140

2016-02-17 Thread Jeff Abrahamson
Restarting the puppetserver seems to sort the certificate mismatch. Note that my host's A record is loire.example.com with CNAME puppet.example.com. In /etc/puppet/puppet.conf, I refer to the host as puppet: [main] logdir=/var/log/puppet vardir=/var/lib/puppet

[Puppet Users] Re: Connecting to https://puppet:8140

2016-02-17 Thread Jeff Abrahamson
Aha, I can answer *half* of my own question after another hour of work. The issue was the certname field in the config. Removing it makes that all work. I also removed the short hostname from dns_alt_names, since it seemed unnecessary. That leaves me only with the famous certificate mismatch

[Puppet Users] Re: puppet agent heartbeat

2016-02-17 Thread John Gelnaw
On Wednesday, February 17, 2016 at 10:37:46 AM UTC-5, moons...@gmail.com wrote: > > is there any way we can check the heartbeat of puppet agents? > > and if agent is down can puppet try to bring up the server. > It may be a bit primitive, but I've been using crontab to "manually" run the

Re: [Puppet Users] Monitoring file system and cleanup with puppet

2016-02-17 Thread Peter Kristolaitis
Puppet is not a monitoring tool, it's a configuration tool. It can do some things that might, at first glance, look like monitoring (i.e. check current system state), but this is only as a side effect of that information being necessary to confirm that the configuration is correct. On

[Puppet Users] Connecting to https://puppet:8140

2016-02-17 Thread Jeff Abrahamson
I set up a puppetserver. It's, well, not generating errors outright. On the same host, I want to run a puppet agent. But the agent doesn't seem to want to use the FQDN of the host, and so it fails to connect. [T] jeff@loire:~ $ puppet agent --debug --test ... Debug: Finishing transaction

[Puppet Users] Updating facts for a client in PuppetDB independently from the master

2016-02-17 Thread Trevor Vaughan
Hi All, Is is possible to add facts to a client in PuppetDB independently of a run of Puppet on a client? Basically, I need to add some data to the client runs but the data is irrelevant to the client itself so there's no need to shove it across the network multiple times. I took a look at the

Re: [Puppet Users] Monitoring file system and cleanup with puppet

2016-02-17 Thread moonsun1124
Please let me know what all the things we can monitor with puppet. Other than automation of deployments. Thanks, On Wednesday, February 17, 2016 at 8:22:52 AM UTC-5, Lowe Schmidt wrote: > > No, and you should probably not use Puppet to try and solve that kind of > problem. > > You could

[Puppet Users] puppet agent heartbeat

2016-02-17 Thread moonsun1124
is there any way we can check the heartbeat of puppet agents? and if agent is down can puppet try to bring up the server. Thanks, -- 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

Re: [Puppet Users] Problems testing branching using rspec-puppet with hiera

2016-02-17 Thread Trevor Vaughan
Hi Joseph, You can see how we do it in SIMP using this reference spec_helper.rb https://github.com/simp/pupmod-simp-simplib/blob/master/spec/spec_helper.rb. The way it's set up allows you to use variables to change your hieradata on the fly and can use the context name to pick hiera data files

Re: [Puppet Users] Problems testing branching using rspec-puppet with hiera

2016-02-17 Thread Joseph Wilkicki
It isn't really feasible to convert to a class parameter since I'm testing profiles which, as I understand it, should not be using class parameters. I've since found a solution that seems like it might work; I've been working on other topics for a bit, but when I get back to it I'll post some

Re: [Puppet Users] Monitoring file system and cleanup with puppet

2016-02-17 Thread Lowe Schmidt
No, and you should probably not use Puppet to try and solve that kind of problem. You could probably write a script and run it from cron if you need a quick ad hoc solution. -- Lowe Schmidt | +46 723 867 157 On 17 February 2016 at 02:35, wrote: > Hi All, > > Is there

[Puppet Users] Monitoring file system and cleanup with puppet

2016-02-17 Thread moonsun1124
Hi All, Is there any way we can monitor the file system (disk usage percentage) and if it cross >90% run a particular script to purge it without using nagios in puppet? Thanks, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To