Re: Freeze break request: re-add ambassadors wiki updater script

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

 



On Thu, Aug 11, 2016 at 02:01:55PM -0600, Kevin Fenzi wrote:
> Greetings. 
> 
> Somehow we lost the script that was updating
> https://fedoraproject.org/wiki/Ambassadors/MembershipService/Verification
> in the move from puppet to ansible. 
> 
> The following commit re-adds it. 
> This would also need an ansible run on sundries playbook. 
> 
> Impact should be low, just another cron and script on sundries01 and
> one new package added (python-mwclient). 
> 
> +1s?
> 
> kevin
> --
> From 07580e4585e9a36642b97b0fb849e16efeee3054 Mon Sep 17 00:00:00 2001
> From: Kevin Fenzi <kevin@xxxxxxxxx>
> Date: Thu, 11 Aug 2016 19:58:45 +0000
> Subject: [PATCH] Add back the script that updates the ambassadors membership
>  wiki page. Was lost in the puppet->ansible move.
> 
> ---
>  .../build/files/membership-mwclient-build          |   1 +
>  roles/membership-map/build/tasks/main.yml          |  28 ++
>  .../build/templates/membership-mwclient.py         | 307 +++++++++++++++++++++
>  3 files changed, 336 insertions(+)
>  create mode 100644 roles/membership-map/build/files/membership-mwclient-build
>  create mode 100644 roles/membership-map/build/templates/membership-mwclient.py
> 
> diff --git a/roles/membership-map/build/files/membership-mwclient-build b/roles/membership-map/build/files/membership-mwclient-build
> new file mode 100644
> index 0000000..6295923
> --- /dev/null
> +++ b/roles/membership-map/build/files/membership-mwclient-build
> @@ -0,0 +1 @@
> +55 5 * * * root /usr/local/bin/membership-mwclient.py > /dev/null
> diff --git a/roles/membership-map/build/tasks/main.yml b/roles/membership-map/build/tasks/main.yml
> index f9bffcf..cfdb2c3 100644
> --- a/roles/membership-map/build/tasks/main.yml
> +++ b/roles/membership-map/build/tasks/main.yml
> @@ -1,3 +1,7 @@
> +#
> +# This first part is building the maps for: 
> +# http://fedoraproject.org/membership-map/ambassadors.html
> +#
>  - file: dest=/srv/web/membership-map state=directory
>  
>  - template: >
> @@ -16,3 +20,27 @@
>  
>  - synchronize: >
>       src=www/ dest=/srv/web/membership-map/
> +
> +#
> +# This part updates the wiki page at:
> +# https://fedoraproject.org/wiki/Ambassadors/MembershipService/Verification
> +#
> +
> +- yum: state=present name=python-mwclient
> +  tags:
> +  - membership-map
> +  - membership-map/build
> +
> +- template: >
> +    src=membership-mwclient.py dest=/usr/local/bin/membership-mwclient.py
> +    owner=root group=root mode=0755
> +  tags:
> +  - membership-map
> +  - membership-map/build
> +
> +- copy: >
> +    src=membership-mwclient-build dest=/etc/cron.d/membership-mwclient-build
> +    owner=root group=root mode=0644
> +  tags:
> +  - membership-map
> +  - membership-map/build

+1 for me

Worst case we can always stop the cron and uninstall the package, so easy to
roll back.

Pierre

Attachment: signature.asc
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx

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

  Powered by Linux