encfs always runs a configuration assistant when creating a new volume, so this needs to be done manually: systemctl stop postgresql@12-main mv /var/lib/postgresql /var/lib/postgresql.old encfs /var/lib/postgresql_encrypted /var/lib/postgresql --public Pick p (paranoia mode) and enter the password from the data bag twice mv /var/lib/postgresql/* /var/lib/postgresql/ systemctl start postgresql@12-main This is running on centaurus and is mounted automatically on boot by a system unit Refs #129
Install dependencies
bundle install
Run Chef Solo
knife zero converge name:dev.kosmos.org
Update Chef Client on a server:
knife zero converge name:dev.kosmos.org --client-version 15.3.14
Bootstrap a new server
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
Cookbooks are managed via Berkshelf. Run berks --help
for command help.
Install cookbooks listed in Berksfile:
berks install
Vendor installed cookbooks to the cookbooks/
dir:
berks vendor cookbooks/ --delete
Languages
Ruby
60.5%
HTML
35.5%
C
2%
PowerShell
1%
Shell
0.9%