Vagrant 관리형 Ubuntu 14.04.2 LTS에 Chef Server를 설치하는 중 오류가 발생했습니다.

Vagrant 관리형 Ubuntu 14.04.2 LTS에 Chef Server를 설치하는 중 오류가 발생했습니다.

Vagrant/VirtualBox를 사용하여 로컬 VM에 Chef 서버를 설정하려고 합니다. 내 Vagrantfile은 다음과 같습니다.

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.hostname = "dtom-chef-server"
  config.vm.provision :shell, path: "bootstrap.sh"
  config.vm.network :forwarded_port, host: 4567, guest: 80
end

내 bootstrap.sh 스크립트는 다음과 같습니다.

# Set hostname and FQDN
hostnamectl set-hostname dtom-chef-server
IPADDR="$(ifconfig eth0|grep -Po 't addr:\K[\d.]+')"
sed "s/ip-addr/$IPADDR/g" /vagrant/hosts_orig > /etc/hosts

# Install Chef server
cd && mkdir downloads && cd downloads
wget https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/trusty/chef-server-core_12.0.8-1_amd64.deb
dpkg -i chef-server-core_*.deb
chef-server-ctl reconfigure

내가 얻을 때까지 모든 것이 잘 돌아가는 것 같습니다.

==> default: [2015-05-05T19:48:38+00:00] INFO: Processing execute[oc_id_schema] action run (private-chef::oc_id line 130)
==> default:
==> default:================================================================================
==> default: Error executing action `run` on resource 'execute[oc_id_schema]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received ''
==> default: ---- Begin output of bundle exec rake db:migrate ----
==> default: STDOUT:
==> default: STDERR: no ruby in PATH/CONFIG
==> default: ---- End output of bundle exec rake db:migrate ----
==> default: Ran bundle exec rake db:migrate returned

설치가 계속되는 것 같지만 이것이 오류가 발생하는 이유라고 가정합니다.

==> default: ================================================================================
==> default: Error executing action `restart` on resource 'runit_service[oc_id]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default:
==> default: ---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ----
==> default:
==> default: STDOUT: fail: /opt/opscode/service/oc_id: unable to change to service directory: file does not exist

마지막으로 이것이 관련되어 있는지 확실하지 않지만 다음을 얻습니다.

FATAL: Chef::Exceptions::CannotDetermineNodeName: Unable to determine node name: configure node_name or configure the system's hostname and fqdn

그런 다음 프로세스가 종료됩니다. 설치 과정에서 뭔가 빠졌나요?

관련 정보