Sign inSign up

slapi/slapin-chef-usage

By slapi

Updated over 8 years ago

SLAPIN to List Node count per Org

Image
0

1.5K

slapi/slapin-chef-usage repository overview

Chef Node Usage Plugin

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.

Requirements

  • Chef Pivotal Key (Required to query every Org)

Install

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
Config File

You can use the default file in this repo: Here or look at the options below

Pull
  • 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'
Build
  • Clone this repo from slapi/config/plugins (so you create slapi/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'

Usage

From chat

@bot chef-usage

Tag summary

Content type

Image

Digest

Size

41.2 MB

Last updated

over 8 years ago

docker pull slapi/slapin-chef-usage