Skip to content

Instantly share code, notes, and snippets.

@DBMoUK
Created July 7, 2014 13:32
Show Gist options
  • Save DBMoUK/de00292a705d0468c344 to your computer and use it in GitHub Desktop.
Save DBMoUK/de00292a705d0468c344 to your computer and use it in GitHub Desktop.
Servers.yaml
---
:puppet: "master.breaktest.puppetlabs.vm"
# The resolvable name of the server to install the puppet CA service on.
:ca: "ca.breaktest.puppetlabs.vm"
# The resolvable name of server to install PuppetDB on.
:puppetdb: "db.breaktest.puppetlabs.vm"
# A list of servers (resolvable names) to configure as puppet catalog compile
# masters.
:compile:
- "master.breaktest.puppetlabs.vm"
# The resolvable name of the server to install the ActiveMQ (hub) service on.
:mcohub: "ca.breaktest.puppetlabs.vm"
=====================================
If the fqdn for :puppet: is present in the :compile: list also, as per the example above, then the fqdn value doesn't appear in the list of hosts generated via:
fab $flags -H <%= (hash.values.flatten - [hash[:puppet]]).join(',') %> bootstrap_pe
I'm guessing this is due to duplicate value removal in the hash, how can this be worked around?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment