----- Original Message -----
> From: "Gareth Humphries" <
gareth.hu...@gmail.com>
> To: "puppet-users" <
puppet...@googlegroups.com>
> Sent: Friday, January 29, 2016 4:50:50 PM
> Subject: [Puppet Users] Re: Making a "role" fact work
> 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::<whatever>' stanza for each. I could put '$role=<something> ;
> include role::$role' in each of them instead, but I would have to do that
> in every single case, which I'm trying to avoid.
>
> External facts work, but not on the first run. Because facts get loaded
> before catalog compilation, the host doesn't know what to set that fact to
> until it already has a catalog - a little bit chicken-and-egg.
> If i'm relying on the role fact to get data out of hiera, I need that fact
> available first run or compilation will fail.
received facts.