Last active
May 13, 2023 15:06
-
-
Save sneal/8347772 to your computer and use it in GitHub Desktop.
In addition to role cookbooks... a single environment cookbook with a recipe per environment. Allows locking of roles and environments to specific versions and keeps most of the configuration logically together without any secret sauce.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# turn off dev_mode for the entire production environment | |
node.override['daptiv_site']['dev_mode'] = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# base application recipe | |
include_recipe 'daptiv_site::sso' | |
# set some versioned role attributes (i.e. same value across all environments) | |
node.override['daptiv_site']['sso']['doc_root'] = 'd:/daptiv/sso' | |
# set some versioned environment specific attributes | |
include_recipe "daptiv_environments::#{node.chef_environment}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "sso" | |
description "Daptiv SSO login server role" | |
run_list( | |
"recipe[daptiv_sso_role::default]" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assumptions: