Skip to content

SLAPI Plugin that Shows a Chef Sever's node usage by ORG

License

Notifications You must be signed in to change notification settings

ImperialLabs/slapin-chef-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SLAPI Plugin that Shows a Chef Sever's node usage by ORG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages