Question
I'm using vagrant with chef-solo provision.
- How to override "not default" attribute?
- If I will create chef-recipe, When should I use "not default" attribute?
Description
I saw openldap['rootpw']
in attribute of openldap
I would like to override openldap['rootpw']
of attribute.
I tried to override configuration, following like
# Vagrantfile
Vagrant::Config.run do |config|
config.vm.provision :chef_solo do |chef|
#....
chef.json = {
'rootpw' => 'xxxx....',
'openldap' => {
'rootpw' => 'xxxx....'
}
}
end
end
But, attribute was not overridden.
I think, it could override if attribute was default['openldap']['rootpw']
.
How to override "not default" attribute?