0
仅仅学习使用厨师和我似乎无法完成基本的用户创建。不能在厨师中使用“用户”资源
这里的食谱:
user 'bob' do
action :create
password '$1$NSy4M315$KfqF7bX49YgJuhdJZPqbv1'
end
和错误:
sudo chef-solo -c recipes/bob.rb
[2017-04-13T11:05:41-07:00] FATAL: Configuration error NoMethodError: undefined method `action' for nil:NilClass
[2017-04-13T11:05:41-07:00] FATAL: /home/nicholas/dev/vagrant/current/akm/recipes/bob.rb:2:in `block in from_string'
[2017-04-13T11:05:41-07:00] FATAL: /home/nicholas/dev/vagrant/current/akm/recipes/bob.rb:1:in `from_string'
[2017-04-13T11:05:41-07:00] FATAL: Aborting due to error in '/home/nicholas/dev/vagrant/current/akm/recipes/bob.rb'
我加depends 'user'
到metadata.rb,但没有成功。