hectcastro / chef-collectd

A Chef cookbook to install collectd.
Apache License 2.0
23 stars 65 forks source link

Missing /usr/lib/systemd/system dir on Ubuntu 16.04 using AMI ami-ee6b189d #72

Open epierotto opened 8 years ago

epierotto commented 8 years ago

Hi I've just spotted that using Ubuntu 16.04 ami-ee6b189d the "/usr/lib/systemd/system" dir does not exist.

So to fix it I've added this block before the systemd template

directory '/usr/lib/systemd/system' do
  action :create
  only_if { node['init_package'] == 'systemd' }
end

Let me know if you want a pull request

Regards

emachnic commented 8 years ago

I can confirm that this is a bug in 16.04. Changing my Test Kitchen configuration to search for ubuntu-14.04 instead of just ubuntu was able to get the converge to complete successfully.

Cheers, Evan