Re: FBR to fix the purge amis cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+1

On 23 April 2018 at 10:24, Sayan Chowdhury
<sayan.chowdhury2012@xxxxxxxxx> wrote:
> Hi,
>
> We have a cron in place which should be responsible for periodic
> deletion of the nightly AMIs, But the cron wasn't properly setup
> properly via Ansible and currently the cron does not run. This patch
> should fix the issue.
>
> From b4d241bba55cf3155dce5bb02c005f9383f9a46b Mon Sep 17 00:00:00 2001
> From: Sayan Chowdhury <sayan.chowdhury2012@xxxxxxxxx>
> Date: Mon, 23 Apr 2018 19:08:45 +0530
> Subject: [PATCH 1/1] releng: Use template instead of copy for purge-amis
>
> Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@xxxxxxxxx>
> ---
>  roles/releng/tasks/main.yml                                | 3 +--
>  roles/releng/{files/purge-amis => templates/purge-amis.j2} | 0
>  2 files changed, 1 insertion(+), 2 deletions(-)
>  rename roles/releng/{files/purge-amis => templates/purge-amis.j2} (100%)
>
> diff --git a/roles/releng/tasks/main.yml b/roles/releng/tasks/main.yml
> index 6a8d81e..26119a4 100644
> --- a/roles/releng/tasks/main.yml
> +++ b/roles/releng/tasks/main.yml
> @@ -169,10 +169,9 @@
>
>  # put cron job in for purging nightly amis
>  - name: purge nightly amis cron
> -  copy: src="purge-amis" dest=/etc/cron.d/purge-amis
> +  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"
> diff --git a/roles/releng/files/purge-amis
> b/roles/releng/templates/purge-amis.j2
> similarity index 100%
> rename from roles/releng/files/purge-amis
> rename to roles/releng/templates/purge-amis.j2
> --
> 2.9.4
>
> +1s?
>
>
> --
> Sayan Chowdhury <https://sayanchowdhury.dgplug.org/>
> Senior Software Engineer, Fedora Engineering - Emerging Platform
> GPG Fingerprint : 0F16 E841 E517 225C 7D13  AB3C B023 9931 9CD0 5C8B
>
>
> Proud to work at The Open Organization!
> _______________________________________________
> infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx



-- 
Stephen J Smoogen.
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux