Skip to content
master
Go to file
Code
This branch is 262 commits ahead of Jonty:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

chef-serverdensity

This cookbook installs the v2 Server Density agent on your Linux systems. This also includes support for the following plugins:

  • sd-agent-apache
  • sd-agent-btrfs
  • sd-agent-consul
  • sd-agent-couchbase
  • sd-agent-couchdb
  • sd-agent-directory
  • sd-agent-docker
  • sd-agent-elastic
  • sd-agent-haproxy
  • sd-agent-hdfs
  • sd-agent-kafka-consumer
  • sd-agent-memcache
  • sd-agent-mongo
  • sd-agent-mysql
  • sd-agent-nginx
  • sd-agent-ntp
  • sd-agent-phpfpm
  • sd-agent-postfix
  • sd-agent-postgres
  • sd-agent-rabbitmq
  • sd-agent-redis
  • sd-agent-riak
  • sd-agent-supervisord
  • sd-agent-tcp-check
  • sd-agent-varnish
  • sd-agent-zookeeper

Requirements

Cookbooks

  • apt
  • yum
  • dpkg_autostart

Gems

  • rest-client

Platforms:

  • Ubuntu
  • Debian
  • RHEL
  • CentOS
  • Amazon
  • Oracle
  • Scientific

Support for Ubuntu Precise is now deprecated and agent updates are no longer provided after 2.1.6. This cookbook will install agent 2.1.6 for any server detected as Ubuntu Precise

Attributes

Required Attributes

attribute "serverdensity/account",
  :display_name => "Your Server Density account",
  :description => "Your Server Density subdomain, i.e. companyname.serverdensity.io",
  :type => "string",
  :required => "required"
attribute "serverdensity/agent_key",
  :display_name => "Your Server Density agent key",
  :description => "Your Server Density agent key",
  :type => "string"

or

attribute "serverdensity/token",
  :display_name => "Your Server Density API Token",
  :description => "Your Server Density API Token",
  :type => "string"

serverdensity::default

Check attributes/default.rb for the full list

Usage

serverdensity::default

Just include serverdensity in your node's run_list to have the agent installed without any configuration:

{
  "name":"my_node",
  "run_list": [
    "recipe[serverdensity]"
  ]
}

To install and configure the agent include serverdensity in your node's run_list and configure the token and sd_account attributes

Including your API token will allow the cookbook to query the API and generate a new agent key for you, or if the device already exists, return the correct agent key. You can either specify your account and token in attributes/default.rb or you can specify attributes in your run_list too:

{
  "name":"my_node",
  "serverdensity": {"token": "b97da80a41c4f61bff05975ee51eb1aa","sd_account":"example"},
  "run_list": [ "recipe[serverdensity]" ]
}

You can also include any of the attributes from attributes/default.rb in your run list to install and configure plugins. Plugin installation is decided by the presence of the first attribute in the list for the specific plugin:

{
  "name":"my_node",
  "serverdensity": {"token": "b97da80a41c4f61bff05975ee51eb1aa","sd_account":"example","apache_status_url":"http://localhost/server-status?auto"},
  "run_list": [
    "recipe[serverdensity]"
  ]
}

License and Authors

References

Authors

License

MIT

About

Chef recipe to automatically deploy the Server Density agent, and start monitoring

Resources

License

Packages

No packages published
You can’t perform that action at this time.