Execs keeps running after puppet run failed
It has happened to me some times already, puppet run completes with errors and apt gets locked due to "zombie" processes still running...
exec { "purge-apparmor":
command => "apt-get purge ${apparmor::params::apparmor_package_name}",
}
err: /Stage[main]/Apparmor::Install/Exec[purge-apparmor]/returns: change from notrun to 0 failed: apt-get purge -y apparmor returned 100 instead of one of [0] at /etc/puppet/environments/development/modules/apparmor/manifests/install.pp:40
# apt-get purge apparmor
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
# ps ...