constraints though.
Gareth
On Friday, January 29, 2016 at 12:26:49 PM UTC, Dirk Heinrichs wrote:
>
> Am 29.01.2016 um 13:03 schrieb Gareth Humphries:
>
> Any ideas?
>
>
> Can you derive the role from the hostname? I do something similar to
> determine the location of a mac
_lines.each do |rolestr|
@roles.push rolestr.sub( /".*/, "")
end
@role=@roles.max_by(&:length).chomp
#Facter.add( :tl_role ) do
# setcode do
#@role
# end
#end
#$tl_role=@role
return @role
end
end
On Thursday, January 28, 2016 at 3:17
point the machine is provisioned.
> Then when it first checks in with Puppet it's already for the fact
> present...
>
> Might be another option?
>
> Cheers
> Gav
>
> On Thursday, 28 January 2016 15:17:00 UTC, Gareth Humphries wrote:
>>
>> Hi All,
>>
>&g
:53:54 PM UTC, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Gareth Humphries" <gareth.hu...@gmail.com >
> > To: "puppet-users" <puppet...@googlegroups.com >
> > Sent: Friday, January 29, 2016 4:50:50 PM
> &
oper" ENC in place.
>
> On Friday, 29 January 2016 15:50:50 UTC, Gareth Humphries wrote:
>>
>> ENC is the end game, but we have legacy hosts this has to work on. Right
>> now I have site.pp which has a list of unpleasant regexes and an 'include
>> role::' stanza f
Absolutely. I'm trying to do something weird, and that's why I'm failing.
Let there be no doubt about that.
On Friday, January 29, 2016 at 4:16:36 PM UTC, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Gareth Humphries" <gareth.hu...@gma
, January 29, 2016 at 3:29:29 AM UTC-6, Gareth Humphries wrote:
>>
>> Thanks Gav,
>>
>> It's a good idea, though on the surface I don't think it will work for us
>> (we're trying to spin stuff up from a gold image using an ENC, and I think
>> having an ex
Hi All,
I'm trying to add a new fact to puppet, which is the role the host has -
I'm using the popular roles/profiles methodology, so all nodes have exactly
one role:: class. I want to get the into a fact.
I've managed to get it working easily enough, but either not automatically
or only on
r!
On Thursday, January 28, 2016 at 3:17:00 PM UTC, Gareth Humphries wrote:
>
> Hi All,
>
> I'm trying to add a new fact to puppet, which is the role the host has -
> I'm using the popular roles/profiles methodology, so all nodes have exactly
> one role:: class. I want to
Hi Puppeteers,
I wonder if anyone else has seen or fixed this issue - I find that when I
provision new servers, after the first run I have to manually re-run
'apt-get install puppet', as it gets removed. Nothing in the puppet log,
however in the aptitude log there is an entry like the below
10 matches
Mail list logo