Re: [Puppet Users] Copy File from one Puppet Agent to another Puppet Agent

2015-07-06 Thread hoize
Am I right, that exported resources are only working with puppetdb? Can you explain to me, what puppetdb does? I always thought, that puppetdb is a database-environment like MySQL. I have Puppet running with Foreman. And instead of the PostgreSQL-Database i installed MySQL. Can I additionally i

[Puppet Users] Puppetlabs postgres module question

2015-07-06 Thread Toky
I'm trying to import a SQL file into a postgresql DB I have created with puppetlab's postgresql module. My only issue (so far) is that I can't import a SQL file into the DB I've created: # This is the database creation profile class profiles::create_db { # Install postgresql and configure acces

Re: [Puppet Users] Concat params along a node.

2015-07-06 Thread Tom Limoncelli
[ sorry for the late reply ] Have you considered Exported Resources? https://docs.puppetlabs.com/puppet/latest/reference/lang_exported.html Tom On Thu, Jun 11, 2015 at 4:21 PM, Albert Shih wrote: > Hi, > > Let's say I have a module to manage something on a server so > > modules/things/manif

Re: [Puppet Users] Exposing master to the public internet

2015-07-06 Thread Tom Limoncelli
Google does this on a massive scale for the laptops they give to employees. Many of the details are in http://research.google.com/pubs/pub43231.html The key points are: 1. SSL only. All else is firewalled off. (external clients actually talk to a load balancer that is locked down and only forw

[Puppet Users] Config test when restarting a service

2015-07-06 Thread Jonathan Gazeley
Hi folks, I'm tying myself in knots trying to figure out the best metaparameters to use here. I want to define an exec that only runs when a service is scheduled to be restarted. It should check the config file and if the syntax is invalid, it should abort restarting the service (i.e. won't k

[Puppet Users] Not all host reports in PuppetDB

2015-07-06 Thread Jim Miller
Hello everyone, I hadn't noticed until recently but a large % of host reports are not getting into PuppetDB and I looking for ways to determine what the cause is. I could see an all or nothing but not this. I'm not worried about the data for those hosts but I'm un-sure what steps to take. I

Re: [Puppet Users] Config test when restarting a service

2015-07-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Notify on its own is no good, since if the exec fails, the service > gets restarted anyway. > > Require on its own is no good, since the exec runs every time. > > Is there some way to combine the two? The problem is that a notify includes a before

Re: [Puppet Users] Config test when restarting a service

2015-07-06 Thread Jonathan Gazeley
On 06/07/15 14:26, Peter Meier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Notify on its own is no good, since if the exec fails, the service gets restarted anyway. Require on its own is no good, since the exec runs every time. Is there some way to combine the two? The problem is th

[Puppet Users] Re: Need help with python msi install on windows

2015-07-06 Thread Gene Fontanilla
On Thursday, May 23, 2013 at 5:10:48 AM UTC+8, Kevin D wrote: > > Matt, > > I tried your class in my test environment. Here are my findings: > > Using Microsoft's Process Monitor > , we > capture Puppet's call to MSIEXE, the "comm

[Puppet Users] Re: Config test when restarting a service

2015-07-06 Thread Benjamin Parmentier
Hi, You can do something like this : file { '/etc/dhcp/dhcpd.conf': ... notify => Exec['dhcp-syntax-check'] } exec { 'dhcp-syntax-check': ... subscribe => File['/etc/dhcp/dhcpd.conf'], notify=> Service['dhcpd'] } service { 'dhcpd': ... subscribe => Exec['dhcp-syntax-check'] }

[Puppet Users] Re: yum disable/enable repo with wildcards

2015-07-06 Thread jcbollinger
On Thursday, July 2, 2015 at 10:52:26 AM UTC-5, Vince Skahan wrote: > > > We've set up local mirrors of a number of upstream repos, and want to > point our puppet-managed boxes at the local mirrors only. > > Assuming we named our mirror repos local-mirror-whatever, if I was using > yum on the c

Re: [Puppet Users] Ordering without dependencies

2015-07-06 Thread jcbollinger
On Friday, July 3, 2015 at 10:30:59 AM UTC-5, R.I. Pienaar wrote: What I really want is a way for resources to influence sorting only and not > make > dependencies. > Why? A resource relationship expresses the idea that the resource at one end must be configured before the one at the othe

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-07-06 Thread Martin Alfke
Hi Felix, seems as if Jessie is missing the apt-sources. Remove the sources line from /etc/apt/sources.list.d/ and rerun apt-get update best, Martin On 06 Jul 2015, at 01:37, Felix Frank wrote: > Hi, > > has anyone tried the PC1 on jessie yet? I just did the following: > > wget http://apt.pu

[Puppet Users] Re: yum disable/enable repo with wildcards

2015-07-06 Thread Vince Skahan
On Monday, July 6, 2015 at 7:44:17 AM UTC-7, jcbollinger wrote: > Puppet provides a Yumrepo resource type for managing Yum repository >> definitions. It has an 'enabled' property, which you can set false to >> disable repos you want to keep but not use. This has the advantage that >> you no l

Re: [Puppet Users] Re: API call to certificate_request deletes the request

2015-07-06 Thread Mikhail Simin
Thanks Josh, you hit the nail on the head. Disabling autosign makes my API calls work as expected. But why does autosign delete the CSR? The docs don't say anything about this. Can I disable that feature somehow? I need autosigning to be enabled for other purposes, and also be able to invoke API c

Re: [Puppet Users] Re: API call to certificate_request deletes the request

2015-07-06 Thread Mikhail Simin
Found the explanation in the actual code , rather than the docs. It's an interesting security implementation. I'll have to figure out how to work with it. Thank you

Re: [Puppet Users] Re: Need help with python msi install on windows

2015-07-06 Thread Rob Reynolds
On Mon, Jul 6, 2015 at 12:42 AM, Gene Fontanilla wrote: > > > On Thursday, May 23, 2013 at 5:10:48 AM UTC+8, Kevin D wrote: >> >> Matt, >> >> I tried your class in my test environment. Here are my findings: >> >> Using Microsoft's Process Monitor >>

Re: [Puppet Users] hiera and puppet environments ( directory)

2015-07-06 Thread Rob Reynolds
On Fri, Jun 19, 2015 at 3:43 AM, Helen Paterson wrote: > Hi, > > I'm trying to set-up puppet environment so that our ymal files can > usernames and passwords for Production and test ( dq), modules will be the > same. I have run through the documentation but am getting the following > error: > > c

Re: [Puppet Users] Not all host reports in PuppetDB

2015-07-06 Thread Wyatt Alt
Hey Jim, Do you see anything in your puppetserver log you can correlate to this? Also curious if your "Broke and no longer processing" comment is in relation to this issue or preexisting. One interesting, possibly unrelated thing to know is that the report processors in "reports" attribute in you

Re: [Puppet Users] Re: Need help with python msi install on windows

2015-07-06 Thread Gene Fontanilla
> > Looks like you almost have it. You need the full path to the installer > file. Should end with the extension ".msi". > > Your package title (e.g. "python-2.7.3.amd64") also needs to exactly match > what programs and features will list, which is likely 'Python'. > > Hi bob, i added .msi

Re: [Puppet Users] Re: Need help with python msi install on windows

2015-07-06 Thread Rob Reynolds
On Mon, Jul 6, 2015 at 9:48 PM, Gene Fontanilla wrote: > Looks like you almost have it. You need the full path to the installer >> file. Should end with the extension ".msi". >> >> Your package title (e.g. "python-2.7.3.amd64") also needs to exactly >> match what programs and features will list,

Re: [Puppet Users] Re: Need help with python msi install on windows

2015-07-06 Thread Gene Fontanilla
> > To verify, the file you have located at c:/PreRecap/python-2.7.5. amd64.msi is actually a downloaded MSI file correct? yes bob you are correct -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiv