Remove the cron to purge the amis regularly

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
This commit is contained in:
Sayan Chowdhury 2019-03-01 23:48:08 +05:30 committed by Sayan Chowdhury
parent 98e00004c5
commit 9fd1c8389f
2 changed files with 0 additions and 10 deletions

View file

@ -146,11 +146,6 @@
copy: src="docker-updates" dest=/etc/cron.d/docker-updates
when: inventory_hostname.startswith('compose-x86-01')
# put cron job in for purging nightly amis
- name: purge nightly amis cron
template: src=purge-amis.j2 dest=/etc/cron.d/purge-amis
when: inventory_hostname.startswith('compose-x86-01')
- name: install compose /etc/httpd/conf.d/compose.conf file
copy: >
src="compose.conf"

View file

@ -1,5 +0,0 @@
# Remove launch permissions from the AMIs after every 5 days
0 0 */5 * * root TMPDIR=`mktemp -d /tmp/purgeamis.XXXXXX` && pushd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts && AWS_ACCESS_KEY='{{ ec2_image_delete_access_key_id }}' AWS_SECRET_ACCESS_KEY='{{ ec2_image_delete_access_key }}' ./clean-amis.py --change-perms && popd && rm -rf $TMPDIR
# Delete the AMIs after every 10 days.
0 0 */10 * * root TMPDIR=`mktemp -d /tmp/purgeamis.XXXXXX` && pushd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts && AWS_ACCESS_KEY='{{ ec2_image_delete_access_key_id }}' AWS_SECRET_ACCESS_KEY='{{ ec2_image_delete_access_key }}' ./clean-amis.py --delete && popd && rm -rf $TMPDIR