[pkgs] make it so pkgs has pagure user

This commit is contained in:
Stephen Smoogen 2020-01-14 19:13:25 +00:00 committed by Pierre-Yves Chibon
parent ccaa519dd3
commit 87ce71a5a9
3 changed files with 20 additions and 1 deletions

View file

@ -17,6 +17,9 @@ wsgi_fedmsg_service: pagure
wsgi_procs: 6
wsgi_threads: 6
pagure_static_uid: 600
fas_client_groups: sysadmin-main,sysadmin-cvs,sysadmin-noc,sysadmin-veteran
fas_client_restricted_app: PAGURE_CONFIG=/etc/pagure/pagure_hook.cfg HOME=/srv/git /usr/libexec/pagure/aclchecker.py %(username)s
fas_client_admin_app: PAGURE_CONFIG=/etc/pagure/pagure_hook.cfg HOME=/srv/git /usr/libexec/pagure/aclchecker.py %(username)s

View file

@ -12,6 +12,8 @@ wsgi_fedmsg_service: pagure
wsgi_procs: 4
wsgi_threads: 4
pagure_static_uid: 600
# We have both celery (pagure_worker) and web thread wanting to send out fedmsg's.
# To make things easy on the listening side (so avoid contention of binding ports), let's set the pkgs boxes to active fedmsg.
fedmsg_active: True

View file

@ -30,7 +30,7 @@
mnt_dir: '/srv/cache/lookaside',
nfs_src_dir: 'fedora_sourcecache', nfs_mount_opts='rw,hard,bg,intr,noatime,nodev,nosuid,sec=sys,nfsvers=3' }
- { role: nfs/client,
when: env == "staging" and inventory_hostname.startswith('pkgs02'),
when: env == "staging" and inventory_hostname.startswith('pkgs01'),
mnt_dir: '/srv/cache/lookaside_prod',
nfs_src_dir: 'fedora_sourcecache', nfs_mount_opts='ro,hard,bg,intr,noatime,nodev,nosuid,sec=sys,nfsvers=3' }
- role: distgit/pagure
@ -56,6 +56,20 @@
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: setup users on pkgs
hosts: pkgs_stg:pkgs02.phx2.fedoraproject.org
user: root
gather_facts: True
tasks:
- name: Setup pagure user
user:
name: pagure
uid: "{{ pagure_static_uid }}"
shell: /sbin/nologin
comment: "Pagure User"
when: env == "staging" and inventory_hostname.startswith('pkgs01'),
- name: setup fedmsg on pkgs
hosts: pkgs_stg:pkgs02.phx2.fedoraproject.org