Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

serverdensity (25) Versions 3.0.0

Installs/Configures the v2 Server Density monitoring agent

Policyfile
Berkshelf
Knife
cookbook 'serverdensity', '= 3.0.0', :supermarket
cookbook 'serverdensity', '= 3.0.0'
knife supermarket install serverdensity
knife supermarket download serverdensity
README
Dependencies
Changelog
Quality 0%

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-couchdb
  • sd-agent-directory
  • sd-agent-docker
  • 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-varnish

Requirements

Cookbooks

  • apt
  • yum
  • dpkg_autostart

Gems

  • rest-client

Platforms:

  • Ubuntu
  • Debian
  • RHEL
  • CentOS

Attributes

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:
json
{
"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 installtion is decided by the presence of the first attribute in the list for the specifc plugin:
json
{
"name":"my_node",
"serverdensity": {"token": "b97da80a41c4f61bff05975ee51eb1aa","sd_account":"example","apache_status_url":"http://localhost/server-status?auto"},
"run_list": [
"recipe[serverdensity]"
]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

References

Authors

License

MIT

Dependent cookbooks

apt >= 0.0.0
yum >= 0.0.0
dpkg_autostart >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

ChangeLog for chef-serverdensity

3.0.0 (14-04-2016)

  • Rewrote entire recipe to install the Server Density v2 agent. v1 agent support has been removed.

2.1.4 (26-03-2015)

  • Use 1.7.3 rest-client (fix for "Unable to acquire a ServerDensity agent_key")

2.1.3 (12-03-2015)

  • Add matchers library for ChefSpec

2.1.2 (12-03-2015)

  • Allow the device attribute to override a built-in device provider (AWS)
  • Move chef_gem to converge time for Chef 12.1.0

2.1.1 (10-03-2015)

  • Update to use rest-client gem (rest_client depreciated)

2.1.0 (10-10-2014)

  • Added support for managing plugins
  • Move agent config to /etc/sd-agent/conf.d/agent.cfg an updated template
  • Improved support for AWS EC2 linking with Server Density cloud support
  • Added :remove and :purge options for removing the agent
  • Support for AWS OpsWorks
  • Improved docs
  • Various performance improvements
  • Various bug fixes

2.0.0 (20-03-2014)

1.0.1 (17-09-2013)

  • Fixed bug in switching between API versions which may have caused the agent to not be installed and strange output in logs.

1.0.0 (26-07-2013)

  • Initial release with v1 and v2 API support.

Collaborator Number Metric
            

3.0.0 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

3.0.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/recipes/default.rb:18
FC002: Avoid string interpolation where not required: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/directory.yaml.erb:22
FC002: Avoid string interpolation where not required: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/directory.yaml.erb:33
FC002: Avoid string interpolation where not required: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/directory.yaml.erb:34
FC002: Avoid string interpolation where not required: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/directory.yaml.erb:35
FC002: Avoid string interpolation where not required: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/directory.yaml.erb:36
FC002: Avoid string interpolation where not required: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/directory.yaml.erb:37
FC017: LWRP does not notify when updated: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/providers/default.rb:41
FC017: LWRP does not notify when updated: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/providers/default.rb:47
FC017: LWRP does not notify when updated: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/providers/default.rb:57
FC017: LWRP does not notify when updated: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/providers/default.rb:74
FC019: Access node attributes in a consistent manner: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/recipes/default.rb:18
FC024: Consider adding platform equivalents: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/recipes/default.rb:35
FC034: Unused template variables: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/mongo.yaml.erb:1
FC034: Unused template variables: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/templates/default/rabbitmq.yaml.erb:1
FC059: LWRP provider does not declare use_inline_resources: /tmp/6f56b3cd8e580d8ed0e5e0cc/serverdensity/providers/default.rb:1