distgit: make the iad2 host closer to the current staging and different from phx2

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-25 23:10:07 +02:00
parent bb7accc229
commit e0ed6697f4
3 changed files with 36 additions and 36 deletions

View file

@ -14,7 +14,7 @@
- libsemanage-python - libsemanage-python
- python-fedora-flask - python-fedora-flask
- pagure-dist-git - pagure-dist-git
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- pagure - pagure
- packages - packages
@ -32,7 +32,7 @@
- python3-libsemanage - python3-libsemanage
- python3-fedora-flask - python3-fedora-flask
- pagure-dist-git - pagure-dist-git
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- pagure - pagure
- packages - packages
@ -86,7 +86,7 @@
etype: group etype: group
permissions: r permissions: r
state: present state: present
when: env != "staging" when: env != "staging" and datacenter != "iad2"
# Set-up Pagure # Set-up Pagure
@ -137,7 +137,7 @@
- name: create the database scheme - name: create the database scheme
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
when: env != "staging" when: env != "staging" and datacenter != "iad2"
changed_when: "1 != 1" changed_when: "1 != 1"
environment: environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg PAGURE_CONFIG: /etc/pagure/pagure.cfg
@ -147,7 +147,7 @@
- name: create the database scheme - name: create the database scheme
command: /usr/bin/python3 /usr/share/pagure/pagure_createdb.py command: /usr/bin/python3 /usr/share/pagure/pagure_createdb.py
when: env == "staging" when: env == "staging" or datacenter == "iad2"
changed_when: "1 != 1" changed_when: "1 != 1"
environment: environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg PAGURE_CONFIG: /etc/pagure/pagure.cfg
@ -325,7 +325,7 @@
job: /usr/bin/python2 /usr/libexec/pagure-dist-git/pagure_poc.py /srv/cache/extras job: /usr/bin/python2 /usr/libexec/pagure-dist-git/pagure_poc.py /srv/cache/extras
cron_file: pagure-poc cron_file: pagure-poc
state: present state: present
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- pagure - pagure
@ -337,7 +337,7 @@
job: /usr/bin/python2 /usr/libexec/pagure-dist-git/pagure_bz.py /srv/cache/extras job: /usr/bin/python2 /usr/libexec/pagure-dist-git/pagure_bz.py /srv/cache/extras
cron_file: pagure-bz cron_file: pagure-bz
state: present state: present
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- pagure - pagure
@ -349,7 +349,7 @@
job: /usr/bin/python2 /usr/libexec/pagure-dist-git/pagure_owner_alias.py /srv/cache/extras job: /usr/bin/python2 /usr/libexec/pagure-dist-git/pagure_owner_alias.py /srv/cache/extras
cron_file: pagure-owner-alias cron_file: pagure-owner-alias
state: present state: present
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- pagure - pagure
@ -362,7 +362,7 @@
job: /usr/bin/python3 /usr/libexec/pagure-dist-git/pagure_poc.py /srv/cache/extras job: /usr/bin/python3 /usr/libexec/pagure-dist-git/pagure_poc.py /srv/cache/extras
cron_file: pagure-poc cron_file: pagure-poc
state: present state: present
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- pagure - pagure
@ -374,7 +374,7 @@
job: /usr/bin/python3 /usr/libexec/pagure-dist-git/pagure_bz.py /srv/cache/extras job: /usr/bin/python3 /usr/libexec/pagure-dist-git/pagure_bz.py /srv/cache/extras
cron_file: pagure-bz cron_file: pagure-bz
state: present state: present
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- pagure - pagure
@ -386,7 +386,7 @@
job: /usr/bin/python3 /usr/libexec/pagure-dist-git/pagure_owner_alias.py /srv/cache/extras job: /usr/bin/python3 /usr/libexec/pagure-dist-git/pagure_owner_alias.py /srv/cache/extras
cron_file: pagure-owner-alias cron_file: pagure-owner-alias
state: present state: present
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- pagure - pagure
@ -396,7 +396,7 @@
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- python2-fedora-messaging - python2-fedora-messaging
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- pagure - pagure
- fedora-messaging - fedora-messaging
@ -405,7 +405,7 @@
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- fedora-messaging - fedora-messaging
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- pagure - pagure
- fedora-messaging - fedora-messaging

View file

@ -15,7 +15,7 @@
- python-fedmsg-genacls - python-fedmsg-genacls
- /usr/sbin/semanage - /usr/sbin/semanage
- mod_auth_openidc - mod_auth_openidc
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
@ -28,7 +28,7 @@
stream=2.3 stream=2.3
profiles= profiles=
state=enabled state=enabled
when: env == "staging" when: env == "staging" or datacenter == "iad2"
- name: install the needed packages - name: install the needed packages
package: name={{item}} state=present package: name={{item}} state=present
@ -39,7 +39,7 @@
- mod_auth_gssapi - mod_auth_gssapi
- /usr/sbin/semanage - /usr/sbin/semanage
- mod_auth_openidc - mod_auth_openidc
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- distgit - distgit
@ -226,7 +226,7 @@
# This is the permission management for package maintainers, using Gitolite. # This is the permission management for package maintainers, using Gitolite.
- name: create the /var/log/gitolite directory - name: create the /var/log/gitolite directory
file: path=/var/log/gitolite owner=root group=packager state=directory mode=2775 file: path=/var/log/gitolite owner=root group=packager state=directory mode=2775
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
@ -243,42 +243,42 @@
group=gen-acls group=gen-acls
shell=/bin/bash shell=/bin/bash
home=/srv/git home=/srv/git
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
- name: create the /etc/gitolite/conf directory - name: create the /etc/gitolite/conf directory
file: path=/etc/gitolite/conf owner=pagure group=pagure file: path=/etc/gitolite/conf owner=pagure group=pagure
state=directory mode=0755 state=directory mode=0755
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
- name: create the /etc/gitolite/logs directory - name: create the /etc/gitolite/logs directory
file: path=/etc/gitolite/logs owner=pagure group=packager file: path=/etc/gitolite/logs owner=pagure group=packager
state=directory mode=0775 state=directory mode=0775
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
- name: create the /etc/gitolite/local/VREF directory - name: create the /etc/gitolite/local/VREF directory
file: path=/etc/gitolite/local/VREF owner=pagure group=packager file: path=/etc/gitolite/local/VREF owner=pagure group=packager
state=directory mode=0775 state=directory mode=0775
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
- name: create /etc/gitolite/gitolite.rc - name: create /etc/gitolite/gitolite.rc
template: src=gitolite.rc dest=/etc/gitolite/gitolite.rc template: src=gitolite.rc dest=/etc/gitolite/gitolite.rc
owner=root group=root mode=0755 owner=root group=root mode=0755
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
- name: Create the rpms symlink (should not be needed, might still be used by some old scripts) - name: Create the rpms symlink (should not be needed, might still be used by some old scripts)
command: ln -s /srv/git/repositories/ /srv/git/rpms command: ln -s /srv/git/repositories/ /srv/git/rpms
creates=/srv/git/rpms creates=/srv/git/rpms
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- config - config
- distgit - distgit
@ -286,7 +286,7 @@
- name: Create the gitolite.rc symlink - name: Create the gitolite.rc symlink
command: ln -s /etc/gitolite/gitolite.rc /srv/git/.gitolite.rc command: ln -s /etc/gitolite/gitolite.rc /srv/git/.gitolite.rc
creates=/srv/git/.gitolite.rc creates=/srv/git/.gitolite.rc
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- config - config
- distgit - distgit
@ -294,7 +294,7 @@
- name: Create the gitolite configuration symlink - name: Create the gitolite configuration symlink
command: ln -s /etc/gitolite/ /srv/git/.gitolite command: ln -s /etc/gitolite/ /srv/git/.gitolite
creates=/srv/git/.gitolite creates=/srv/git/.gitolite
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- config - config
- distgit - distgit
@ -302,12 +302,12 @@
- name: Copy in RepoAliases.header - name: Copy in RepoAliases.header
copy: src=RepoAliases.header dest=/etc/gitolite/RepoAliases.header copy: src=RepoAliases.header dest=/etc/gitolite/RepoAliases.header
owner=root group=root mode=0755 owner=root group=root mode=0755
when: env != "staging" when: env != "staging" and datacenter != "iad2"
- name: Create the update-block-push-origin symlink - name: Create the update-block-push-origin symlink
command: ln -s /usr/share/git-core/update-block-push-origin /etc/gitolite/local/VREF/update-block-push-origin command: ln -s /usr/share/git-core/update-block-push-origin /etc/gitolite/local/VREF/update-block-push-origin
creates=/etc/gitolite/local/VREF/update-block-push-origin creates=/etc/gitolite/local/VREF/update-block-push-origin
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- config - config
- distgit - distgit
@ -315,7 +315,7 @@
- name: install the fedmsg configuration - name: install the fedmsg configuration
template: src=fedmsg-genacls-config.py dest=/etc/fedmsg.d/genacls.py template: src=fedmsg-genacls-config.py dest=/etc/fedmsg.d/genacls.py
owner=root group=root mode=0644 owner=root group=root mode=0644
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
@ -324,7 +324,7 @@
with_items: with_items:
- /usr/local/bin/genacls.sh - /usr/local/bin/genacls.sh
- /etc/cron.d/genacls.cron - /etc/cron.d/genacls.cron
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- config - config
- distgit - distgit
@ -343,7 +343,7 @@
- name: Save the list the users having a shell access - name: Save the list the users having a shell access
template: src=gitolite_admins dest=/etc/gitolite/admins template: src=gitolite_admins dest=/etc/gitolite/admins
owner=gen-acls group=packager mode=660 owner=gen-acls group=packager mode=660
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- config - config
- distgit - distgit
@ -353,11 +353,11 @@
with_items: with_items:
- {name: /etc/gitolite/hooks, mode: 770, state: directory} - {name: /etc/gitolite/hooks, mode: 770, state: directory}
- {name: /etc/gitolite/hooks/common, mode: 770, state: directory} - {name: /etc/gitolite/hooks/common, mode: 770, state: directory}
when: env != "staging" when: env != "staging" and datacenter != "iad2"
- name: Fix permissions on the Gitolite stuff (touch update if it does not exist) - name: Fix permissions on the Gitolite stuff (touch update if it does not exist)
copy: content="" dest=/etc/gitolite/hooks/common/update force=no owner=root group=packager mode=0755 copy: content="" dest=/etc/gitolite/hooks/common/update force=no owner=root group=packager mode=0755
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- distgit - distgit
- config - config
@ -482,7 +482,7 @@
- name: setup grokmirror for repos - name: setup grokmirror for repos
package: name=python-grokmirror state=installed package: name=python-grokmirror state=installed
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- grokmirror - grokmirror
- pkgs - pkgs
@ -505,7 +505,7 @@
- name: run initial grokmirror run - name: run initial grokmirror run
command: /usr/bin/grok-manifest -m /srv/git/grokmirror/manifest.js.gz -t /srv/git/repositories/ creates=/srv/git/grokmirror/manifest.js.gz command: /usr/bin/grok-manifest -m /srv/git/grokmirror/manifest.js.gz -t /srv/git/repositories/ creates=/srv/git/grokmirror/manifest.js.gz
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- grokmirror - grokmirror
- pkgs - pkgs

View file

@ -10,7 +10,7 @@
- python-kitchen - python-kitchen
- python-pygit2 - python-pygit2
- fedora-messaging - fedora-messaging
when: env != "staging" when: env != "staging" and datacenter != "iad2"
tags: tags:
- git - git
- git/hooks - git/hooks
@ -25,7 +25,7 @@
- python3-kitchen - python3-kitchen
- python3-pygit2 - python3-pygit2
- fedora-messaging - fedora-messaging
when: env == "staging" when: env == "staging" or datacenter == "iad2"
tags: tags:
- git - git
- git/hooks - git/hooks