Update abrt/retrace playbook
Switched from epel7 to master branch in upstream playbook. Brings a new name, Python3 and Python3 packages from new repo. Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
This commit is contained in:
parent
6dc7da570e
commit
ffb27fd09d
13 changed files with 47 additions and 36 deletions
|
@ -3,7 +3,7 @@
|
||||||
package:
|
package:
|
||||||
state: present
|
state: present
|
||||||
name:
|
name:
|
||||||
- python-psycopg2
|
- python3-psycopg2
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
- postgresql
|
- postgresql
|
||||||
- pg-semver
|
- pg-semver
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
state: present
|
state: present
|
||||||
name:
|
name:
|
||||||
- memcached
|
- memcached
|
||||||
- python-memcached
|
- python3-memcached
|
||||||
when: ansible_distribution == "RedHat" and faf_web_cache_type == "memcached"
|
when: ansible_distribution == "RedHat" and faf_web_cache_type == "memcached"
|
||||||
|
|
||||||
- name: memcached fedora
|
- name: memcached fedora
|
||||||
|
@ -30,5 +30,5 @@
|
||||||
- libmemcached
|
- libmemcached
|
||||||
- memcached
|
- memcached
|
||||||
- zlib
|
- zlib
|
||||||
- python-pylibmc
|
- python3-pylibmc
|
||||||
when: ansible_distribution == "Fedora" and faf_web_cache_type == "memcached"
|
when: ansible_distribution == "Fedora" and faf_web_cache_type == "memcached"
|
||||||
|
|
|
@ -16,49 +16,49 @@
|
||||||
|
|
||||||
- name: configure ADMINS
|
- name: configure ADMINS
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'ADMINS ='
|
regexp: 'ADMINS ='
|
||||||
line: ' ADMINS = "infrastructure@lists.fedoraproject.org"'
|
line: ' ADMINS = "infrastructure@lists.fedoraproject.org"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
||||||
- name: configure MORE_FAF
|
- name: configure MORE_FAF
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'MORE_FAF ='
|
regexp: 'MORE_FAF ='
|
||||||
line: ' MORE_FAF = "https://github.com/abrt/faf/"'
|
line: ' MORE_FAF = "https://github.com/abrt/faf/"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
||||||
- name: configure MORE_RS
|
- name: configure MORE_RS
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'MORE_RS ='
|
regexp: 'MORE_RS ='
|
||||||
line: ' MORE_RS = "https://github.com/abrt/retrace-server"'
|
line: ' MORE_RS = "https://github.com/abrt/retrace-server"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
||||||
- name: configure MORE_ABRT
|
- name: configure MORE_ABRT
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'MORE_ABRT ='
|
regexp: 'MORE_ABRT ='
|
||||||
line: ' MORE_ABRT = "https://github.com/abrt/abrt/"'
|
line: ' MORE_ABRT = "https://github.com/abrt/abrt/"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
||||||
- name: configure MORE_GABRT
|
- name: configure MORE_GABRT
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'MORE_GABRT ='
|
regexp: 'MORE_GABRT ='
|
||||||
line: ' MORE_GABRT = "https://github.com/abrt/gnome-abrt/"'
|
line: ' MORE_GABRT = "https://github.com/abrt/gnome-abrt/"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
||||||
- name: configure MORE_LR
|
- name: configure MORE_LR
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'MORE_LR ='
|
regexp: 'MORE_LR ='
|
||||||
line: ' MORE_LR = "https://github.com/abrt/libreport/"'
|
line: ' MORE_LR = "https://github.com/abrt/libreport/"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
||||||
- name: configure MORE_SATYR
|
- name: configure MORE_SATYR
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /usr/lib/python2.7/site-packages/abrt-server-info-page/config.py
|
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
|
||||||
regexp: 'MORE_SATYR ='
|
regexp: 'MORE_SATYR ='
|
||||||
line: ' MORE_SATYR = "https://github.com/abrt/satyr/"'
|
line: ' MORE_SATYR = "https://github.com/abrt/satyr/"'
|
||||||
notify: restart httpd
|
notify: restart httpd
|
||||||
|
|
|
@ -88,8 +88,8 @@ domain: example.org
|
||||||
# the URL can be also with /path part (e.g. example-faf.org/faf)
|
# the URL can be also with /path part (e.g. example-faf.org/faf)
|
||||||
faf_server_name: "example-faf.org"
|
faf_server_name: "example-faf.org"
|
||||||
|
|
||||||
faf_web_brand_title: "FAF"
|
faf_web_brand_title: "ABRT"
|
||||||
faf_web_brand_subtitle: "Fedora Analysis Framework"
|
faf_web_brand_subtitle: "Analysis"
|
||||||
|
|
||||||
faf_web_fedmenu_url:
|
faf_web_fedmenu_url:
|
||||||
# https://apps.fedoraproject.org/fedmenu
|
# https://apps.fedoraproject.org/fedmenu
|
||||||
|
@ -162,7 +162,7 @@ faf_opsys_list:
|
||||||
faf_packages:
|
faf_packages:
|
||||||
- faf
|
- faf
|
||||||
- faf-migrations
|
- faf-migrations
|
||||||
- faf-yum
|
- faf-dnf
|
||||||
|
|
||||||
faf_problem_packages:
|
faf_problem_packages:
|
||||||
- faf-problem-coredump
|
- faf-problem-coredump
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
[group_abrt-faf-el7]
|
|
||||||
name=Copr repo for faf-el7 owned by @abrt
|
|
||||||
baseurl=https://copr-be.cloud.fedoraproject.org/results/@abrt/faf-el7/epel-7-$basearch/
|
|
||||||
type=rpm-md
|
|
||||||
skip_if_unavailable=True
|
|
||||||
gpgcheck=1
|
|
||||||
gpgkey=https://copr-be.cloud.fedoraproject.org/results/@abrt/faf-el7/pubkey.gpg
|
|
||||||
repo_gpgcheck=0
|
|
||||||
enabled=1
|
|
||||||
enabled_metadata=1
|
|
21
roles/abrt/faf/files/group_abrt-faf-el8-epel-8.repo
Normal file
21
roles/abrt/faf/files/group_abrt-faf-el8-epel-8.repo
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[faf-el8]
|
||||||
|
name=Copr repo for faf-el8 owned by @abrt
|
||||||
|
baseurl=https://copr-be.cloud.fedoraproject.org/results/@abrt/faf-el8/epel-8-$basearch/
|
||||||
|
type=rpm-md
|
||||||
|
skip_if_unavailable=True
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://copr-be.cloud.fedoraproject.org/results/@abrt/faf-el8/pubkey.gpg
|
||||||
|
repo_gpgcheck=0
|
||||||
|
enabled=1
|
||||||
|
enabled_metadata=1
|
||||||
|
|
||||||
|
[faf-el8-required-packages]
|
||||||
|
name=Copr repo for faf-el8-required-packages owned by @abrt
|
||||||
|
baseurl=https://copr-be.cloud.fedoraproject.org/results/@abrt/faf-el8-required-packages/epel-8-$basearch/
|
||||||
|
type=rpm-md
|
||||||
|
skip_if_unavailable=True
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://copr-be.cloud.fedoraproject.org/results/@abrt/faf-el8-required-packages/pubkey.gpg
|
||||||
|
repo_gpgcheck=0
|
||||||
|
enabled=1
|
||||||
|
enabled_metadata=1
|
|
@ -1,2 +1,2 @@
|
||||||
install_date: Fri Nov 1 15:15:14 2019
|
install_date: Tue Jan 21 10:21:03 2020
|
||||||
version: el7
|
version: master
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- redis
|
- redis
|
||||||
- python-redis
|
- python3-redis
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
check_mode: no
|
check_mode: no
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- fail: msg="{{ main_url }} doesn't contain 'FAF' string"
|
- fail: msg="{{ main_url }} doesn't contain 'ABRT' string"
|
||||||
when:
|
when:
|
||||||
"'FAF' not in uri_res.content"
|
"'ABRT' not in uri_res.content"
|
||||||
|
|
||||||
- name: fetch problems
|
- name: fetch problems
|
||||||
uri:
|
uri:
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: remove EOLed opsys
|
- name: remove EOLed opsys
|
||||||
command: faf releasemod -o "{{ item.opsys|lower }}" --opsys-release "{{ item.release }}" -s EOL
|
command: faf releasemod -o "{{ item.opsys | lower }}" --opsys-release "{{ item.release }}" -s EOL
|
||||||
loop: "{{ eol_opsys | selectattr('opsys') | selectattr('release') | list }}"
|
loop: "{{ eol_opsys | selectattr('opsys') | selectattr('release') | list }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: faf
|
become_user: faf
|
||||||
|
|
||||||
- name: remove EOLed packages
|
- name: remove EOLed packages
|
||||||
command: faf cleanup-packages "{{ item.opsys|capitalize }}" "{{ item.release }}"
|
command: faf cleanup-packages "{{ item.opsys | capitalize }}" "{{ item.release }}"
|
||||||
loop: "{{ eol_opsys | selectattr('opsys') | selectattr('release') | list }}"
|
loop: "{{ eol_opsys | selectattr('opsys') | selectattr('release') | list }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: faf
|
become_user: faf
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
- name: enable Copr repo for RHEL
|
- name: enable Copr repo for RHEL
|
||||||
copy:
|
copy:
|
||||||
src: group_abrt-faf-el7-epel-7.repo
|
src: group_abrt-faf-el8-epel-8.repo
|
||||||
dest: /etc/yum.repos.d/
|
dest: /etc/yum.repos.d/
|
||||||
when: ansible_distribution == 'RedHat'
|
when: ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ WSGIPythonOptimize 1
|
||||||
WSGISocketPrefix {{ faf_spool_dir }}/wsgi
|
WSGISocketPrefix {{ faf_spool_dir }}/wsgi
|
||||||
WSGIDaemonProcess faf user=faf group=faf processes=3 threads=5
|
WSGIDaemonProcess faf user=faf group=faf processes=3 threads=5
|
||||||
|
|
||||||
{% set python = 'python2.7' %}
|
{% set python = 'python3.6' %}
|
||||||
|
|
||||||
WSGIScriptAlias /{{ url_suffix }} /usr/lib/{{ python }}/site-packages/webfaf/hub.wsgi process-group=faf application-group=%{GLOBAL}
|
WSGIScriptAlias /{{ url_suffix }} /usr/lib/{{ python }}/site-packages/webfaf/hub.wsgi process-group=faf application-group=%{GLOBAL}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Install a role from GitHub
|
# Install a role from GitHub
|
||||||
- name: faf
|
- name: faf
|
||||||
src: https://github.com/abrt/ansible-role-faf.git
|
src: https://github.com/abrt/ansible-role-faf.git
|
||||||
version: el7
|
version: master
|
||||||
|
|
||||||
- name: retrace
|
- name: retrace
|
||||||
src: https://github.com/abrt/ansible-role-retrace-server.git
|
src: https://github.com/abrt/ansible-role-retrace-server.git
|
||||||
version: el7
|
version: master
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
install_date: Fri Nov 1 15:15:15 2019
|
install_date: Tue Jan 21 10:21:04 2020
|
||||||
version: el7
|
version: master
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue