On Fri, Feb 28, 2014 at 8:57 AM, John Pyeatt <
john....@singlewire.com> wrote:
> I am trying to use one puppetmaster to support multiple AWS VPCs. In other
> words, I am trying to have one puppetmaster support multiple independent
> networks.
>
> The problem with this is that it is possible for machines on two different
> VPCs to have the same hostname/ipaddress.
>
> I use an ENC script on the puppetmaster to classify what types of classes to
> load to an agent machine based on the hostname that is passed to the ENC
> script.
>
> But the hostname isn't enough information because as I mentioned above, two
> different agents might have the same hostname but live in different VPCs.
>
> Is there any way to customize the identifier that is passed from the agent
> to the enc script on the puppetmaster? Ideally, I would like to pass the
> vpc-id and the hostname. That would guarantee uniqueness.
>
> I looked at the puppet inventory service a bit, but I don't think that would
> solve my problem either.