Compare commits
3 Commits
a7aa38805c
...
67c9ea621c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67c9ea621c | ||
|
|
8fdafa1484 | ||
|
|
f5858a8a6e |
@@ -7,8 +7,28 @@ environment_path "environments"
|
|||||||
data_bag_path "data_bags"
|
data_bag_path "data_bags"
|
||||||
encrypted_data_bag_secret "#{current_dir}/encrypted_data_bag_secret"
|
encrypted_data_bag_secret "#{current_dir}/encrypted_data_bag_secret"
|
||||||
local_mode true # Chef local mode, replacing Solo
|
local_mode true # Chef local mode, replacing Solo
|
||||||
chef_zero.enabled true
|
|
||||||
|
|
||||||
cookbook_copyright 'Kosmos'
|
cookbook_copyright 'Kosmos'
|
||||||
cookbook_license 'none'
|
cookbook_license 'none'
|
||||||
cookbook_email 'mail@kosmos.org'
|
cookbook_email 'mail@kosmos.org'
|
||||||
|
|
||||||
|
# Knife-Zero config, see https://knife-zero.github.io/40_configuration/
|
||||||
|
# Prevent attributes from being saved to the node files
|
||||||
|
knife[:automatic_attribute_whitelist] = %w[
|
||||||
|
fqdn
|
||||||
|
os
|
||||||
|
os_version
|
||||||
|
hostname
|
||||||
|
ipaddress
|
||||||
|
roles
|
||||||
|
recipes
|
||||||
|
ipaddress
|
||||||
|
platform
|
||||||
|
platform_version
|
||||||
|
cloud
|
||||||
|
cloud_v2
|
||||||
|
chef_packages
|
||||||
|
]
|
||||||
|
knife[:default_attribute_whitelist] = []
|
||||||
|
knife[:normal_attribute_whitelist] = ['knife_zero']
|
||||||
|
knife[:override_attribute_whitelist] = []
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
### Bootstrap a new server
|
### Bootstrap a new server
|
||||||
|
|
||||||
knife zero bootstrap root@dev.kosmos.org --run-list "recipe[kosmos-base],..." --environment production
|
knife zero bootstrap root@dev.kosmos.org --run-list "recipe[kosmos-base],..." -j '{"example_cookbook":{"memory_max":"256M"}}' --secret-file .chef/encrypted_data_bag_secret
|
||||||
|
|
||||||
### Managing cookbooks
|
### Managing cookbooks
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user