On 15 April 2015 at 12:06, Nick Howes <
nick...@gmail.com> wrote:
> You could set tags on EC2 instances, and use those to classify them. You
> might write a new fact called e.g. ec2_server_role, that reads in a tag from
> the server, then use that fact (possibly in the default node definition,
> depending on how you do things) to decide what role the node has.
>
> Writing custom facts:
>
https://docs.puppetlabs.com/facter/2.4/custom_facts.html
>
> I'd recommend writing your fact in a module that Puppet can distribute by
> pluginsync, so you don't have to worry about pushing this custom fact script
> to nodes.
>
> Alternatively there may well be existing modules on the Forge which can
> expose tags as facts for you.
>
This module exposes EC2 tags to facter.
https://github.com/mrzarquon/puppet-ec2tags
Gareth
>
> On Tuesday, 14 April 2015 13:07:24 UTC+1, akash bhatia wrote:
>>
>> Hello,
>>
>> i have setup the Puppet Infra on internal datacentre at my work centre.
>>
>> i am able to group the agents based on nomenclature of their domain names
>>
>> eg:
>>
web1.office.org
>>
web2.office.org ....
>>
>> db1.office.org....
>>
>> and so on.. and i can group them in my site.pp using the regular
>> expression.
>>
>> i just want to understand the concept of how to achieve the same on the
>> AWS, where we dont have liberty to customise domain name while creating a
>> new instance in AWS EC2.
>>
>> Any URLs or basic idea should be highly appreciated.
>>
>> Thanks in Advance !!
>>
>>
>>
>>
>> --
>> Cheers,
>> Akash
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/puppet-users/606cb1b8-de5d-43fe-b40b-a1675289fe93%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.
--
Gareth Rushgrove
@garethr
devopsweekly.com
morethanseven.net
garethrushgrove.com