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
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
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
- 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
>
> $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
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