Closed paulczar closed 8 years ago
knife rackspace server create -r 'recipe[lolomg::default]' --server-name \
test --node-name test --image '255df5fb-e3d4-45a3-9a07-c976debf7c14' \
--flavor 'performance1-2' --environment 'testing' —network 'lolomg_network'
Hi @paulczar,
I'd remove the tilde in the path. I'm not sure that works. You can also try one of these arguments (from knife help bootstrap
) which should do the same thing:
--secret SECRET
The encryption key that is used for values contained within a data bag item.
--secret-file FILE
The path to the file that contains the encryption key.
Hope this helps,
@martinb3
the only setting that works for me is this depreciated setting in my knife.rb: encrypted_data_bag_secret "#{ENV["HOME"]}/.chef/lol_secret"
using --secret-file
doesn't upload the file for me.
--secret-key
works for me.
P.S: secret file passed using this attribute will be copied to default encrypted_data_bag_secret location on server (/etc/chef/encrypted_data_bag_secret ).
Having trouble working out how to get
knife rackspace
to automatically upload my databag secret file on server creation. here's my knife config: