ceilometer-expirer: remove the crontab during upgrade
authorEmilien Macchi <emilien@redhat.com>
Thu, 18 May 2017 20:17:41 +0000 (16:17 -0400)
committerEmilien Macchi <emilien@redhat.com>
Mon, 29 May 2017 19:28:19 +0000 (19:28 +0000)
commit847a1fe79333f3eb18672a88a5212cbd395b94bf
tree405ff57f51965b8f7b3cc87670f4ecec0be8ba98
parent7996b2e817b8f53f6e3dc579023e20ef61751c31
ceilometer-expirer: remove the crontab during upgrade

When running disabled/ceilometer-expirer.yaml, we want to remove the
crontab that used to run ceilometer-expirer binary in periodic way.
Let's use Puppet to remove this crontab.

We can't easily use Ansible tasks this time, because the Ansible cron
module can only remove Crontabs previously managed by Ansible:
https://docs.ansible.com/ansible/cron_module.html#examples

In this case, Puppet will erase the crontab in Pike. In Queens, we'll be
able to remove these environments files since we wouldn't need it
anymore.

Change-Id: Idb050c3b281d258aea52d6a3ef40441bb9c8bcbe
puppet/services/disabled/ceilometer-expirer-disabled.yaml