cookbook 'common_deploy', '= 0.1.1'
common_deploy (15) Versions 0.1.1 Follow0
Common chef cookbook providing attribute driven application deployments
cookbook 'common_deploy', '= 0.1.1', :supermarket
knife supermarket install common_deploy
knife supermarket download common_deploy
common_deploy cookbook
A cookbook which provides tools to help deploy simple applications in a standardized way via node attributes. This is designed to be used with PolicyFiles and the suite of common_*
cookbooks so that applications may be deployed without necessarily requiring a dedicated cookbook.
Requirements
This cookbook requires Chef 12.7.0 or later.
Platform
Any
Attributes
Top Level
-
common_deploy
.default
: This provides the default attributes which will be used as the base to merge specific applications on top of. -
common_deploy
.*
: Each application will be configured within a self contained hash so as to ensure that all of it's required configurations are stored in one place. Below this level, key => hash pairs will exist to describe additional lwrps to generate.
Application Level
-
order
: The optional ordering in which we will deploy applications, defaults to 100. -
configuration
: A free-form hash used to provide more global attributes to templates. These will serve as the base onto which specific template variables will be merged. -
repository
: This hash contains attributes which will be passed to thecommon_deploy_repository
custom resource to deploy a git repository. -
templates
: This hash contains key => value pairs describingcommon_deploy_template
custom resource definitions which mostly drive template creation.
Libraries
-
CommonDeploy::Applications
: A helper library providing the business logic behind how we iterate over applications and apply the default attributes. -
CommonDeploy::Configs
: A helper library providing the business logic behind how we iterate over application configs.
Dependent cookbooks
common_attrs >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.1.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/libraries/common_deploy-applications.rb:12
FC016: LWRP does not declare a default action: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/resources/common_deploy_repository.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/resources/common_deploy_template.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/attributes/default.rb:2
FC023: Prefer conditional attributes: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/recipes/repositories.rb:8
0.1.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/libraries/common_deploy-applications.rb:12
FC016: LWRP does not declare a default action: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/resources/common_deploy_repository.rb:1
FC016: LWRP does not declare a default action: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/resources/common_deploy_template.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/attributes/default.rb:2
FC023: Prefer conditional attributes: /tmp/cook/0c6e655419f4b0063dbb8ce8/common_deploy/recipes/repositories.rb:8