The new testing suite is based upon Chef 12, Chef DK and Chef Provisioning. It supports all in one and multi node environments. It will be used as the base for future gate integration testing. There's is more work to as noted in the TODO list at the botton of the readme. Note: to get this thru the existing gate, had to keep the existing Gemfile. Added a Gemfile-Provisioning for new stuff and updated readme with some notes on that. When we make the switch to kilo rake gates, we can decide what type of gates the repo needs. I think it's ready for rubocop at least and maybe continue with something like spiecweasel to look at the role and environment syntax. Added draft bootstrap and test default to rubocop to rakefile to allow for easy integration with new gate rake jobs. Change-Id: I187df8b78c4cecfb783ab26a6b66b8e8dd6745bd
1006 B
1006 B
Databags
Some basic information about the use of databags within this repo.
# Show the list of databags
$ chef exec knife data bag list -z
db_passwords
secrets
service_passwords
user_passwords
# Show the list of databag items
$ chef exec knife data bag show db_passwords -z
ceilometer
cinder
dash
glance
heat
horizon
keystone
neutron
nova
# Show contents of databag item
$ chef exec knife data bag show db_passwords ceilometer -z
Encrypted data bag detected, decrypting with provided secret.
ceilometer: mypass
id: ceilometer
# Update contents of databag item
# set EDITOR env var to your editor, for powershell, I used nano
$ chef exec knife data bag edit secrets dispersion_auth_user -z
Databag Default Values
db_passwords are set to "mypass" secrets are set to "_token" service_passwords are set to "mypass" user_passwords are set to "mypass"
Default Databag Secret
The default secret is stored here .chef\encrypted_data_bag_secret and referenced by .chef\knife.rb.