On 04/16/2013 08:18 AM, Chris Burroughs wrote:
> I know there are docs on using collins as a Puppet fact terminus [1],
> but we use the *other* popular ruby based configuration management tool.
> We have explored two options so far with some help from folks in #chef:
> * Just call out to the collins api using the collins-client ruby
> library inside select cookbooks
> * Write an ohai plugin that dumps everything from collins into ohai.
We are currently prototyping the ohai plugin approach. On each run a
node will fetch it's own information from collins (still working out the
exact chicken and egg solution there) and add it to ohai. Getting at
the data later in recipes is as simple as node['collins']['status'].
I'm excited collins to further publicise collins status as the source of
truth with an /etc/motd template:
collins-status: <%= @collins_status -%> <% if @collins_status !=
'Allocated' and @collins_status != 'Unknown' %>***THIS NODE SHOULD NOT
RECEIVE PRODUCTION TRAFFIC***<% end -%>
I'd be interested to know if anyone has tried a different integration
approach.