Cinc Workstation replaces Chef Workstation for driving knife-zero and Test Kitchen; nodes run (or are moving to) Cinc Client. - Pin .ruby-version to cinc-workstation - Move knife config from .chef/ to .cinc/ (Cinc's USER_CONF_DIR) and update .gitignore, README, AGENTS and docs accordingly. On-node config now lives in /etc/cinc - Drop the Gemfile/Gemfile.lock; install knife-zero into Cinc Workstation's user gem dir with `cinc gem install knife-zero` - README: rewrite setup/usage for Cinc Workstation - scripts/postgresql/switch_primary.sh: drop `bundle exec`
18 lines
825 B
Plaintext
18 lines
825 B
Plaintext
current_dir = File.dirname(__FILE__)
|
|
|
|
cookbook_path ["#{current_dir}/../site-cookbooks", "#{current_dir}/../cookbooks"]
|
|
node_path "nodes"
|
|
role_path "roles"
|
|
environment_path "environments"
|
|
data_bag_path "data_bags"
|
|
encrypted_data_bag_secret "#{current_dir}/encrypted_data_bag_secret"
|
|
local_mode true # Chef local mode, replacing Solo
|
|
|
|
# Added to /etc/cinc/client.rb on node bootstrap
|
|
# https://docs.chef.io/attribute_persistence/
|
|
# Source of truth: site-cookbooks/kosmos-base/files/default/chef_attributes.rb
|
|
client_d_dir(File.expand_path("../site-cookbooks/kosmos-base/files/default/chef_attributes.rb"))
|
|
|
|
# Cinc Workstation's knife already installs Cinc Client from omnitruck.cinc.sh
|
|
# by default, so no `knife[:alter_project]` is needed here.
|