[Puppet Users] Puppet 3.6.2 puppet parser validate failed pre-receive One or more file(s) specified did not exist

2015-03-26 Thread Andreas Dvorak
Dear all, after the update of the Pupppet Master from 3.3.1 to 3.6.2 the git push with a pre-receive hook does not work. My local check does work. In my pre-commit I have the same checks. Is it possible that the git pre-receive hook does not find the file in source? Why does it work in version

Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-26 Thread Neil - Puppet List
Hello As it is a param to the file resource you could set it as the default with File { source_permissions = ignore, } Be warned that it may mess up other file resources. Neil On 13 Mar 2015 15:13, Fraser Goffin goff...@gmail.com wrote: Hi, I am attempting to use the puppetlabs/concat

Re: [Puppet Users] How to setup Puppet agent run interval at a specific time?

2015-03-26 Thread Christopher Wood
On Thu, Mar 26, 2015 at 06:06:03AM -0700, staceytian4...@gmail.com wrote: Hi all, I am using puppet 3.7.3. I want my puppet agent to run twice a day, so in puppet.conf, I set runinterval: #  This setting can be a time interval in seconds (30 or 30s), minutes (30m),

Re: [Puppet Users] Trouble with service resource detecting systemd as provider on FC19

2015-03-26 Thread James Olin Oden
Thanks Felix, I figured the work around out, but its good to see a response. I think Fedora 19 is by default configured to use systemd. I suppose I should look inside the code that handles the Service resource to figure out how it detects what should be the default provider. Thanks

Re: [Puppet Users] Re: Puppetlabs-mysql with Percona

2015-03-26 Thread Matt Shields
Not sure why but it looks like when trying to start Percona, it couldn't create a pid file because there was no /var/run/mysql directory and no permissions set. I had to manually create the folder and set permissions, now it seems to be working. 15 package { 'percona-release': 16 ensure

Re: [Puppet Users] Re: Puppetlabs-mysql with Percona

2015-03-26 Thread Matt Shields
I've tried setting the service_name to mysql in the class definition since Percona calls the service mysql instead of mysqld, but I'm still getting errors. Looks like it's now trying to start Percona/mysql but getting errors. Here's the puppet output plus the mysql log. 31 class {

Re: [Puppet Users] Help! Could not autoload puppet/provider/package/rpm

2015-03-26 Thread staceytian4321
Wil, Thank you for the reply. Yes, I checked and found that SELinux was enabled post-install. Then I set SELinux to Permissive and reinstall everything, but still same error. Can you explain more detail about `restorecon -n -v -r /`? Thanks, Stacey On Monday, March 23, 2015 at 3:11:40 PM

[Puppet Users] How to setup Puppet agent run interval at a specific time?

2015-03-26 Thread staceytian4321
Hi all, I am using puppet 3.7.3. I want my puppet agent to run twice a day, so in puppet.conf, I set runinterval: # This setting can be a time interval in seconds (30 or 30s), minutes (30m), hours (6h), days(2d), or years (5y) runinterval = 12h However, how could I setup the puppet

Re: [Puppet Users] misbehaving file resource on only one server

2015-03-26 Thread Gabriel Filion
On 24/03/15 05:03 PM, Christopher Wood wrote: On Tue, Mar 24, 2015 at 04:30:27PM -0400, Gabriel Filion wrote: I'm having issues with one server when it tries to apply a super simple file resource that ensures a file is absent: file { '/etc/munin/plugin-conf.d/uptime.conf': ensure = absent }

Re: [Puppet Users] misbehaving file resource on only one server

2015-03-26 Thread Alex Harvey
Providing this isn't a production host, I'd use locate to find the file posix.rb (that's your built-in file provider), then insert some puts statements to see if you can find out exactly where in the code it's failing. On Friday, March 27, 2015 at 3:49:24 PM UTC+11, Gabriel Filion wrote: On

Re: [Puppet Users] misbehaving file resource on only one server

2015-03-26 Thread Gabriel Filion
On 27/03/15 12:40 AM, Gabriel Filion wrote: Failing that, strace'ing might show you something more useful. I'll see what I can find with strace... unfortunately, nothing really useful.. in the output below, the first file access gives the same error as the one failing, but seems to work ok:

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Felix Frank
On 03/26/2015 05:29 PM, Peter Berghold wrote: I watched the puppetdb log and it would seem something is being written to puppetdb and puppetdb is the backend for storeconfigs. Have you tried actually querying the PuppetDB contents?

[Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
I need a push in the right direction. I have a need to have a subset of hosts in my environment register themselves to receive rsync updates from a central host. I realize that the right approach is exported resources but I'm getting stuck on the actual implementation. Here is what I tried: in

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Felix Frank
On 03/26/2015 07:39 PM, Peter Berghold wrote: I guess you can't export such a thing? You can. But your define is not called 'remotemaster'. Perhaps that is the cause of the error. Cheers, Felix -- You received this message because you are subscribed to the Google Groups Puppet Users group.

[Puppet Users] Announcing Puppet Enterprise 3.8

2015-03-26 Thread Tim Zonca
Earlier this morning, we announced the upcoming release of Puppet Enterprise 3.8. With the latest version, we're adding support for provisioning Docker containers, AWS cloud environments and bare metal. We're also introducing new ways to manage infrastructure as code, plus much more.

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Jeffrey Watts
On Thu, Mar 26, 2015 at 11:29 AM, Peter Berghold salty.cowd...@gmail.com wrote: I need a push in the right direction. I have a need to have a subset of hosts in my environment register themselves to receive rsync updates from a central host. I realize that the right approach is exported

[Puppet Users] Problem with order and ensure_resource.

2015-03-26 Thread Shawn Sterling
Using: puppetserver-1.0.2-1.el7.noarch puppet-3.7.4-1.el7.noarch Doing roles and profiles. Have a define setup to add 'includepkgs' items to different yum repos (for security reasons). In my redis profile if I do this: $epel_packages = ['redis', 'jemalloc'] repo::epel::add { $epel_packages: }

[Puppet Users] Re: Need help! Puppet could not request certificate: No route to host -connect(2)

2015-03-26 Thread Vishal Biyani
+1 to iptables -F I was saving exactly same issue on a setup I created using Vagrant - one master and some slaves. The agents won't connect to master no matter what ping/ssh etc. said. Telnet didn't work of course in spite of all other right configurations. Thanks for making my day! On

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Jeffrey Watts
Put the puppetdb directory in /etc/puppet/modules. Good luck. Jeffrey. On Thu, Mar 26, 2015 at 3:58 PM, Peter Berghold salty.cowd...@gmail.com wrote: OK... excuse me for being a bit dense... but how do you install this thing? i've unzipped it and it isn't very obvious to me... -- You

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
puppetdbquery looks worth looking into... On Thu, Mar 26, 2015 at 4:07 PM Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 03/26/2015 07:39 PM, Peter Berghold wrote: I guess you can't export such a thing? You can. But your define is not called 'remotemaster'. Perhaps that is the

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
OK... excuse me for being a bit dense... but how do you install this thing? i've unzipped it and it isn't very obvious to me... On Thu, Mar 26, 2015 at 4:47 PM Peter Berghold salty.cowd...@gmail.com wrote: puppetdbquery looks worth looking into... On Thu, Mar 26, 2015 at 4:07 PM Felix Frank

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Peter Berghold
Ok... I thought so... thanks On Thu, Mar 26, 2015, 18:18 Jeffrey Watts jeffrey.w.wa...@gmail.com wrote: Put the puppetdb directory in /etc/puppet/modules. Good luck. Jeffrey. On Thu, Mar 26, 2015 at 3:58 PM, Peter Berghold salty.cowd...@gmail.com wrote: OK... excuse me for being a bit

[Puppet Users] Re: Puppet Example42/Nagios Module

2015-03-26 Thread Alessandro Franceschi
Hi Sergiu, currently ex42/nagios module has not a dedicated define to add a nagios host objects directly. It'd quite trivial to do that but currently you can do that, with that module, providing your config file(s) with the host objects you need as plain files (with one or more hosts), or have

Re: [Puppet Users] Trouble with service resource detecting systemd as provider on FC19

2015-03-26 Thread James Olin Oden
snip It appears[1] that systemd should work without modification on FC19. James, what version of facter do you have? Most importantly does it have a fact for operatingsystemmajrelease? It does: [root@jefe ~]# facter | grep operatingsystemmajrelease operatingsystemmajrelease = 19

Re: [Puppet Users] Trouble with service resource detecting systemd as provider on FC19

2015-03-26 Thread Garrett Honeycutt
On 3/26/15 1:17 AM, Felix Frank wrote: Hi, it sure is disappointing that the most recent agent version will not select the correct default provider on your FC19. Is systemd default on this platform? Or have you configured this box this way explicitly. If you want your manifest to behave

Re: [Puppet Users] r10k best practices in production environment

2015-03-26 Thread Tim Meusel
Hi, there are several links available: https://blog.bastelfreak.de/?p=990 http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/ http://somethingsinistral.net/blog/r10k-140/ http://rnelson0.com/?s=r10k let us know if you have specific questions On 25.03.2015 20:41,

Re: [Puppet Users] How to setup Puppet agent run interval at a specific time?

2015-03-26 Thread Garrett Honeycutt
On 3/26/15 2:06 PM, staceytian4...@gmail.com wrote: Hi all, I am using puppet 3.7.3. I want my puppet agent to run twice a day, so in puppet.conf, I set runinterval: # This setting can be a time interval in seconds (30 or 30s), minutes (30m), hours (6h), days(2d), or years (5y)

Re: [Puppet Users] How to setup Puppet agent run interval at a specific time?

2015-03-26 Thread staceytian4321
Thanks a lot for the reply. I will implement a cron job for that. On Thursday, March 26, 2015 at 10:09:43 AM UTC-4, Garrett Honeycutt wrote: On 3/26/15 2:06 PM, staceyt...@gmail.com javascript: wrote: Hi all, I am using puppet 3.7.3. I want my puppet agent to run twice a day, so