Remove the cron to purge the amis regularly
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
This commit is contained in:
parent
98e00004c5
commit
9fd1c8389f
2 changed files with 0 additions and 10 deletions
|
@ -146,11 +146,6 @@
|
||||||
copy: src="docker-updates" dest=/etc/cron.d/docker-updates
|
copy: src="docker-updates" dest=/etc/cron.d/docker-updates
|
||||||
when: inventory_hostname.startswith('compose-x86-01')
|
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
|
- name: install compose /etc/httpd/conf.d/compose.conf file
|
||||||
copy: >
|
copy: >
|
||||||
src="compose.conf"
|
src="compose.conf"
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue