Re: [Puppet Users] Structured custom fact behavior

2015-11-17 Thread Guto Carvalho
Thanks Peter! On Wednesday, November 18, 2015 at 12:24:14 AM UTC-2, Peter Huene wrote: > > Hi Guto, > On Nov 17, 2015 6:19 PM, "Guto Carvalho" > wrote: > > > > Hi guys, > > > > I'm playing around with custom facts, I'm trying to create a simple > custom (structured) fact. > > > > [root@centos

Re: [Puppet Users] Structured custom fact behavior

2015-11-17 Thread Peter Huene
On Tue, Nov 17, 2015 at 6:24 PM, Peter Huene wrote: > Hi Guto, > On Nov 17, 2015 6:19 PM, "Guto Carvalho" wrote: > > > > Hi guys, > > > > I'm playing around with custom facts, I'm trying to create a simple > custom (structured) fact. > > > > [root@centos7 ~]# puppet --version > > 4.2.1 > > > > [

Re: [Puppet Users] Structured custom fact behavior

2015-11-17 Thread Peter Huene
Hi Guto, On Nov 17, 2015 6:19 PM, "Guto Carvalho" wrote: > > Hi guys, > > I'm playing around with custom facts, I'm trying to create a simple custom (structured) fact. > > [root@centos7 ~]# puppet --version > 4.2.1 > > [root@centos7 ~]# facter --version > 3.0.2 (commit 5dc120fa9db4c19150466b1bbd1d

[Puppet Users] Structured custom fact behavior

2015-11-17 Thread Guto Carvalho
Hi guys, I'm playing around with custom facts, I'm trying to create a simple custom (structured) fact. [root@centos7 ~]# puppet --version 4.2.1 [root@centos7 ~]# facter --version 3.0.2 (commit 5dc120fa9db4c19150466b1bbd1d0cf42c87c6bd) Here is my code https://gist.github.com/gutocarvalho/d609

Re: [Puppet Users] Re: Using Package and Yumrepo together? Why is yumrepo creating a corrupt .repo file?

2015-11-17 Thread Stefan Lasiewski
Unfortunately, I do not have a workaround, short of "Don't use the Yumrepo and Package types together". Does anyone else have a better way to workaround this bug? -= Stefan On Friday, November 13, 2015 at 9:58:26 AM UTC-8, Stefan Lasiewski wrote: > > On Fri, Nov 13, 2015 at 6:36 AM, jcbollinger

Re: [Puppet Users] Re: Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Amos Shapira
Yes thanks I found about this. "apt-get clean" doesn't do it, I have to manually remove the apt.puppetlabs.com index files from the lists and lists/partial directories. On Wednesday, 18 November 2015 09:57:57 UTC+11, Morgan Haskel wrote: > > Amos, > > You need to clean your apt cache. > > Morgan

Re: [Puppet Users] Re: Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Morgan Haskel
Amos, You need to clean your apt cache. Morgan On Tue, Nov 17, 2015 at 2:51 PM Amos Shapira wrote: > I arrived to this thread because I was looking for a status update about > the following "apt-get update" failure on all our servers: > > *W: Failed to fetch > http://apt.puppetlabs.com/dists/t

[Puppet Users] Re: Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Amos Shapira
I arrived to this thread because I was looking for a status update about the following "apt-get update" failure on all our servers: *W: Failed to fetch http://apt.puppetlabs.com/dists/trusty/main/source/Sources Hash Sum mismatch* *W: Failed to fetch http://apt.puppetlabs.com/dists/trusty/mai

[Puppet Users] Re: Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Morgan Haskel
Apt.puppetlabs.com is back up at this time. Please let us know if you see any strange behavior. Morgan On Tue, Nov 17, 2015 at 12:43 PM Morgan Haskel wrote: > All, > > We're currently having issues with apt.puppetlabs.com and all of the > repositories hosted there are unavailable at this time.

[Puppet Users] Unplanned outage on apt.puppetlabs.com

2015-11-17 Thread Morgan Haskel
All, We're currently having issues with apt.puppetlabs.com and all of the repositories hosted there are unavailable at this time. We're aware of these issues and looking to resolve them, but we don't have an ETA at this point. Updates will be sent here when status changes or we know more. Morgan

Re: [Puppet Users] strange line wrapping behavior

2015-11-17 Thread Garrett Honeycutt
On 11/17/15 2:51 PM, tobias.ko...@gmail.com wrote: > Hi G, > > sounds great. > > How would you use the indentation in > > Somesoftware::Mariadb:: ... > > The same position as the require? Or two characters on the right? I'm > asking because resources can be already indented (e.g. two chars) an

Re: [Puppet Users] strange line wrapping behavior

2015-11-17 Thread tobias . koeck
Hi G, sounds great. How would you use the indentation in Somesoftware::Mariadb:: ... The same position as the require? Or two characters on the right? I'm asking because resources can be already indented (e.g. two chars) and the second line then starts at position 1 on the new line. I'm stil

Re: [Puppet Users] strange line wrapping behavior

2015-11-17 Thread Garrett Honeycutt
On 11/17/15 11:08 AM, tobias.ko...@gmail.com wrote: > Hi, > > I got a file resource > > file {'/usr/java/jboss-as/server/somesoftware/deploy/jontram-ds.xml': > ensure => file, > owner => 'root', > group => 'root', > mode=> '0655', > content => template('somesoftware

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread Matt Shields
Excellent. That works. Thank you very much Matt On Tue, Nov 17, 2015 at 11:04 AM, R.I.Pienaar wrote: > > > - Original Message - > > From: "Peter Bukowinski" > > To: "puppet-users" > > Sent: Tuesday, November 17, 2015 4:01:38 PM > > Subject: Re: [Puppet Users] Regex and Hyphen in nod

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread Matt Shields
That didn't work. Same error (Invalid tag) On Tuesday, November 17, 2015 at 11:01:47 AM UTC-5, Peter Bukowinski wrote: > > Is consider removing the ^ and $ anchors. I think I you'll find it works > without them. > > -- Peter > > On Nov 17, 2015, at 9:57 AM, Matt Shields > wrote: > > If there ar

[Puppet Users] strange line wrapping behavior

2015-11-17 Thread tobias . koeck
Hi, I got a file resource file {'/usr/java/jboss-as/server/somesoftware/deploy/jontram-ds.xml': ensure => file, owner => 'root', group => 'root', mode=> '0655', content => template('somesoftware/jboss/jontram-ds.xml.erb'), require => [ Class['somesoftware::cpfil

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread R.I.Pienaar
- Original Message - > From: "Peter Bukowinski" > To: "puppet-users" > Sent: Tuesday, November 17, 2015 4:01:38 PM > Subject: Re: [Puppet Users] Regex and Hyphen in node definitions > Is consider removing the ^ and $ anchors. I think I you'll find it works > without > them. > > -- Pe

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread Peter Bukowinski
Is consider removing the ^ and $ anchors. I think I you'll find it works without them. -- Peter > On Nov 17, 2015, at 9:57 AM, Matt Shields wrote: > > If there are any other suggestions on how to regex the nodes, that would be > extremely helpful. We name our hosts like. > > {clientname}-{

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread Matt Shields
If there are any other suggestions on how to regex the nodes, that would be extremely helpful. We name our hosts like. {clientname}-{purpose}{001-999} Ex. ops-db001 -> uses db profile ops-bidb001 -> uses bidb profile ops-sdb001 -> uses sdb profile ops-web001 -> uses web profile client1-db001 c

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread Matt Shields
I just updated to 3.8.4-1 and I'm still seeing the same issue On Tuesday, November 17, 2015 at 8:38:33 AM UTC-5, Matt Shields wrote: > > I'm running Puppet 3.7.4-1 > > On Monday, November 16, 2015 at 10:50:00 PM UTC-5, Henrik Lindberg wrote: >> >> On 2015-16-11 13:44, Matt Shields wrote: >> > I'm

Re: [Puppet Users] Puppet 'node' has no 'deactivate' action

2015-11-17 Thread Kelvin Jasperson
Thanks for that catch! Not sure how that typo made it in there.. but it doesn't work either way. # puppet node deactivate Error: 'node' has no 'deactivate' action. See `puppet help node`. Kelvin On Tuesday, November 17, 2015 at 12:00:18 AM UTC-7, Angel L. Mateo wrote: > > El 16/11/15 a las 22

Re: [Puppet Users] All nodes gone unresponsive on console. We have split install configuration. But agent and master can able to communicate.

2015-11-17 Thread jcbollinger
On Monday, November 16, 2015 at 12:44:57 PM UTC-6, Christopher Wood wrote: > > No, I mean you need to fix your DNS lookups. Puppet relies on correct DNS > both to find the puppetmaster as well as checking that the puppetmaster is > presenting the correct ssl cert. > ... and the error message

Re: [Puppet Users] Regex and Hyphen in node definitions

2015-11-17 Thread Matt Shields
I'm running Puppet 3.7.4-1 On Monday, November 16, 2015 at 10:50:00 PM UTC-5, Henrik Lindberg wrote: > > On 2015-16-11 13:44, Matt Shields wrote: > > I'm having an issue with trying to use regex with hostnames that have a > > hyphen in their name. How can I get this to work? > > > > node /^(.

[Puppet Users] How to handle master slave configuration via Puppet?

2015-11-17 Thread Haani Niyaz
I'd like to get an idea on the recommended practice in scenarios where you have a cluster of nodes setup in master/slave(s) mode which needs specific configuration files. The following setup includes writing a custom fact to retrieve a value from the hostname and then comparing it against a pr