cookbook 'envdir_ii', '= 0.1.0'
envdir_ii (4) Versions 0.1.0 Follow0
Provides envdir resource
cookbook 'envdir_ii', '= 0.1.0', :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 ofvalue
andsensitive
;value
is the content of file, andsensitive
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
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 passed this metric
0.1.0 passed this metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 passed this metric