Hi,

I had the same problem with cloud-init and chef.

Some package installation failed with code 100 (Dpkg sub-process
failed).

I manage to fix it by installing chef and running chef-client manually
in the cloud-config :

#cloud-config
output: { all: '| tee -a /var/log/cloud-init-output.log' }
packages:
  - chef
chef:
  install_type: packages
  server_url: http://xxxxxxx:4000
  validation_name: chef-validator
  validation_key: |
    -----BEGIN RSA PRIVATE KEY-----
    xxxxxxx
    -----END RSA PRIVATE KEY-----
  run_list:
    - role[front]
runcmd:
  - [chef-client]

I also have a problem during postfix package installation that become
interactive when installed by chef through cloud-init.

I tested with Ubuntu 12.04 and 12.10 on Amazon EC2.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/961142

Title:
  chef 0.10: package installation: returned 100, expected 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/961142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to