This cookbook exposes a resource to set up a connection to the Pertino network.
-
Ubuntu 14.04
-
Ubuntu 12.04
-
CentOS 6.6
-
Chef 11.18.12, 12.0.3
See TESTING.md for more.
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.
Author:: Mike Fiedler ([email protected])
See LICENSE for details.