Thanks a lot, everyone!
On Thu, Aug 14, 2014 at 6:22 PM, Betsy Schwartz
wrote:
> The Puppet Practitioner course talks about this. Look at "exported
> resources" and "exported resource collectors"
>
> Each node exports the resource then can collect the set ( probably , by
> doubt the puppetdb quer
The Puppet Practitioner course talks about this. Look at "exported resources"
and "exported resource collectors"
Each node exports the resource then can collect the set ( probably , by doubt
the puppetdb query under the hood)
> On Aug 14, 2014, at 6:44 PM, Matthew Schmitt wrote:
>
> Using pup
Using puppetdbquery (https://github.com/dalen/puppet-puppetdbquery), you could
do something like this in your manifests -
$hosts = query_nodes('Class[memcached]', hostname)
And then loop through this in your template -
<% @hosts.sort.each do |host| -%><%= host %>:<%= @memcached_port %> <% end -
Hello, all-
I've been (unsuccessfully) looking for/thinking of a solution to the
following problem and am unsuccessful, so I figured I'd ask here.
If you have a service that's across multiple hosts (say, memcached or a
mysql/galera HA cluster) where each node needs to know the hostnames of the