recebendo erro para bootstrap de faca no nó chef do ubuntu

0

Obtendo erro bootstrap de faca no nó chef do Ubuntu

$ knife bootstrap 52.8.178.221 -x ubuntu -i ~/Keys/chef1.pem

mkdir: cannot create directory ‘/etc/chef’: Permission denied
52.8.178.221 bash: line 35: /etc/chef/validation.pem: No such file or directory
52.8.178.221 chmod: cannot access ‘/etc/chef/validation.pem’: No such file or directory
52.8.178.221 mkdir: cannot create directory ‘/etc/chef’: Permission denied
52.8.178.221 bash: line 68: /etc/chef/trusted_certs/ashishk.crt: No such file or directory
52.8.178.221 bash: line 95: /etc/chef/client.rb: No such file or directory
52.8.178.221 bash: line 104: /etc/chef/first-boot.json: No such file or directory
52.8.178.221 Starting first Chef Client run...
52.8.178.221 bash: line 110: chef-client: command not found

o usuário no nó chef deve ter permissões sudo, então eu adicionei

# User privilege specification
root    ALL=(ALL:ALL) ALL
ubuntu  ALL=(ALL:ALL) ALL

ainda recebendo erro:

mkdir: cannot create directory ‘/etc/chef’: Permission denied

    
por Ashish Karpe 26.08.2015 / 12:12

1 resposta

2

A solução "--sudo --use-sudo-password" ajudou a fazer isso!

$knife bootstrap  52.8.178.221 -x ubuntu -i ~/Keys/chef1.pem --sudo --use-sudo-password
    
por Ashish Karpe 26.08.2015 / 12:31