cookbook 'envdir_ii', '= 0.1.2'
envdir_ii (4) Versions 0.1.2 Follow0
Provides envdir resource
cookbook 'envdir_ii', '= 0.1.2', :supermarket
knife supermarket install envdir_ii
knife supermarket download envdir_ii
envdir_ii
This cookbook provides a single resource envdir_ii_envdir
, mainly
used for envdir
command in daemontools
(http://cr.yp.to/daemontools.html).
Resource: envdir
Synopsis
Expresses a fully managed directory in form of a hash.
envdir_ii_envdir '/service/my_service/env' do owner 'application_user' group 'application_group' values( 'PATH' => { value: "/usr/local/bin:/usr/bin" }, 'DB_PASSWORD' => { value: "P@SSW0RD", sensitive: true }, ) # If you need service reload on change notifies :reload, 'service[my_service]', :delayed end
Any files in the directory not defined in values
will be removed.
Properties
-
path
: directory path managed by this resource. if omitted, the resource name is used. -
owner
: Directory and files owner -
group
: Directory and files group -
values
: Hash of:value
and:sensitive
;:value
is the content of file, and:sensitive
sets the file read-writable only by itsowner
/group
-
action
: either:create
or:delete
;:delete
action deletes the whole directory
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
envdir_ii CHANGELOG
This file is used to list changes made in each version of the envdir_ii cookbook.
0.1.0
Initial release.
- change 0
- change 1
License Metric
0.1.2 passed this metric
0.1.2 passed this metric