Hi Alex,

You can use this Gist to do what you want:
https://gist.github.com/trevor-vaughan/2c404efd0f1f881bbf56eef7bc949eb0

Thanks,

Trevor

On Tue, Jun 21, 2016 at 7:14 PM, Alex Samad <a...@samad.com.au> wrote:

> Hi
>
> I have a greenfield install. Centos 6.x puppet opensource latest.
>  installed r10k.
>
> I have setup my git repo, used the control repo as a starting spot.
>
> now I am getting my head around hiera
>
> Looking at this https://docs.puppet.com/hiera/3.1/complete_example.html
>  I understand the way that works for each environment.
>
> But how do I use hiera to allocate nodes to environments ?
>
> for example can I classify by name regex, so all hosts with name
> ".*prod.*" is in production and ".*inf.*" into inf environment
> can I also classify by ip address ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/8236b18c-2b1c-4733-a744-7dbeb281784c%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/8236b18c-2b1c-4733-a744-7dbeb281784c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699 x788

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANs%2BFoXpwda9pZ0PCyMaSskxY2aHsweG6rRY1mqj868Nxn2FHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to