Skip to content

Chef Resource to create a Pertino client to Linux servers

License

Notifications You must be signed in to change notification settings

coffeyk/pertino-cookbook

 
 

Repository files navigation

pertino-cookbook

Cookbook CircleCI Coverage Status GitHub issues GitHub license

This cookbook exposes a resource to set up a connection to the Pertino network.

Tested

  • Ubuntu 14.04

  • Ubuntu 12.04

  • CentOS 6.6

  • Chef 11.18.12, 12.0.3

See TESTING.md for more.

Usage

Add depends 'pertino' to your application cookbook's metadata.rb.

In a recipe, create a pertino_client resource and provide it with authentication details:

# UserPass Auth
pertino_client 'default' do
  auth_mode 'userpass'
  username 'my_pertino_username'
  password 'my_super_secret_password'
end

# Device Auth
pertino_client 'default' do
  auth_mode 'api_key'
  api_key 'key_source' # could be from a databag, attribute, etc.
end

Note: The resource name default isn't used.

See test/fixtures/cookbooks for some more examples.

Recommended: Pair with a logrotate_app resource to ensure that the log files do not grow beyond manageable.

License and Authors

Author:: Mike Fiedler (miketheman@gmail.com)

See LICENSE for details.

About

Chef Resource to create a Pertino client to Linux servers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%