This SLAPIN will list each org and how many nodes per org. It will also display the total at the end of the list.
This tool is mostly useful for enterprise customers as they are charged by the node.
- Chef Pivotal Key (Required to query every Org)
Below are all the different install options
- Acquire your
pivotal.pem
from/etc/opscode
directory - Make sure to change out the bind setting
/path/to/pivotal.pem
in the config file section below
You can use the default file in this repo: Here or look at the options below
- Create file below in
slapi/config/chef-usage.yml
plugin:
type: container
listen_type: passive
data_type: all
config:
Image: 'slapi/slapin-chef-usage'
Env:
- ENTERPRISE='true'
- CHEF_SERVER_URL='https://chef.domain.com'
HostConfig:
Binds:
- '/path/to/pivotal.pem:/chef-usage.pem'
- Clone this repo from
slapi/config/plugins
(so you createslapi/config/plugins/chef-usage
)git clone https://github.com/ImperialLabs/slapin-chef-usage.git chef-usage
- Place the file below in
slapi/config/chef-usage.yml
plugin:
type: container
listen_type: passive
data_type: all
build: true
config:
Image: 'chef-usage'
Env:
- ENTERPRISE='true'
- CHEF_SERVER_URL='https://chef.domain.com'
HostConfig:
Binds:
- '/path/to/pivotal.pem:/chef-usage.pem'
From chat
@bot chef-usage