[Puppet Users] Puppet LVM and FS Label

2016-08-04 Thread Alex Samad
Hi I am using https://forge.puppet.com/puppetlabs/lvm in my hiera yaml file I have lvm::volume_groups: vg_data: # not used but needed physical_volumes: - /dev/sdb1 #createonly: false # defined standard soe Centos 1.6 logical_volumes: varlogyb: size: 10G

Re: [Puppet Users] Re: Puppet .... ruby regex

2016-08-04 Thread Alex Samad
So Puppet DSL is ruby like then Think thats where I was going wrong. I went to the ruby page Craig & Robert thanks. Alex On Friday, 5 August 2016 00:50:54 UTC+10, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Robert Poulson" > > > To: "puppet-users" > > > Sent: Thur

Re: [Puppet Users] Puppet web server stops after being started

2016-08-04 Thread Matthaus Owens
Michael, The important bit of that log is the following: 2016-08-03 17:12:31,742 ERROR [async-dispatch-2] [p.t.internal] Error during service init!!! java.lang.IllegalArgumentException: Missing authorization service configuration. That indicates that /etc/puppetlabs/puppetserver/conf.d/auth.con

Re: [Puppet Users] Re: Puppet .... ruby regex

2016-08-04 Thread R.I.Pienaar
- Original Message - > From: "Robert Poulson" > To: "puppet-users" > Sent: Thursday, 4 August, 2016 16:42:21 > Subject: Re: [Puppet Users] Re: Puppet ruby regex >> >> $pp_shortcertname= "${trusted['certname']}".match(/([^.]+)\./)[1] >> >> not sure I fully understand why this works

Re: [Puppet Users] Re: Puppet .... ruby regex

2016-08-04 Thread Robert Poulson
> > $pp_shortcertname= "${trusted['certname']}".match(/([^.]+)\./)[1] > > not sure I fully understand why this works and [] doesn't. > > Not 100% sure I understand what the [1] does ! > The parentheses are for capturing the matching text, and \1 for re-using it as a backreference; [1] outside of t

Re: [Puppet Users] Puppet .... ruby regex

2016-08-04 Thread Craig Dunn
On Thu, Aug 4, 2016 at 8:17 AM, Alex Samad wrote: > Hi > > I want to take ${trusted['certname']} and extract the hostname short form > from it. > > so if i had thisbox.abc.com.au. I would like to get just thisbox > $hostpart=split($trusted['certname'], '[.]')[0] ... would be a cleaner approac