@@ -5,20 +5,20 @@ mysql or postgresql instead, see the database configuration section.
55
66
77## Supported Install Options
8- - [ Ubuntu 18 .04] ( #ubuntu-1804 -bionic )
8+ - [ Ubuntu 20 .04] ( #ubuntu-2004 -bionic )
99 - [ Debian 10] ( #debian-10-buster )
1010 - [ CentOS 7] ( #centos-7 )
1111 - [ virtualenv + pip] ( #virtualenv--pip )
1212 - [ Source] ( #source )
1313
1414
15- ### Ubuntu 18 .04 (bionic )
15+ ### Ubuntu 20 .04 (focal )
1616
1717``` shell
1818apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0412F522
19- echo " deb https://repo.openbytes.ie/ubuntu bionic main" > /etc/apt/sources.list.d/patchman.list
19+ echo " deb https://repo.openbytes.ie/ubuntu focal main" > /etc/apt/sources.list.d/patchman.list
2020apt update
21- apt -y install python -patchman patchman-client
21+ apt -y install python3 -patchman patchman-client
2222patchman-manage createsuperuser
2323```
2424
@@ -28,7 +28,8 @@ patchman-manage createsuperuser
2828apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0412F522
2929echo " deb https://repo.openbytes.ie/debian buster main" > /etc/apt/sources.list.d/patchman.list
3030apt update
31- apt -y install python-patchman patchman-client
31+ apt -t buster-backports -y install python3-django
32+ apt -y install python3-patchman patchman-client
3233patchman-manage createsuperuser
3334```
3435
@@ -42,9 +43,9 @@ baseurl=https://repo.openbytes.ie/yum
4243enabled=1
4344gpgcheck=0
4445EOF
45- yum install -y epel-release
46- yum makecache
47- yum install -y patchman patchman-client
46+ dnf -y install epel-release
47+ dnf makecache
48+ dnf -y install patchman patchman-client
4849systemctl restart httpd
4950patchman-manage createsuperuser
5051```
@@ -54,8 +55,8 @@ patchman-manage createsuperuser
5455TBD - not working yet
5556
5657``` shell
57- apt -y install gcc libxml2-dev libxslt1-dev virtualenv python -dev zlib1g-dev # (debian/ubuntu)
58- yum -y install gcc libxml2-devel libxslt-devel python -virtualenv # (centos/rhel)
58+ apt -y install gcc libxml2-dev libxslt1-dev virtualenv python3 -dev zlib1g-dev # (debian/ubuntu)
59+ dnf -y install gcc libxml2-devel libxslt-devel python3 -virtualenv # (centos/rhel)
5960mkdir /srv/patchman
6061cd /srv/patchman
6162virtualenv .
@@ -69,22 +70,21 @@ gunicorn patchman.wsgi -b 0.0.0.0:80
6970
7071### Source
7172
72- #### Ubuntu 18 .04 (bionic )
73+ #### Ubuntu 20 .04 (focal )
7374
74751 . Install dependencies
7576
7677``` shell
77- apt -y install python-django-tagging python-django python-requests \
78- python-django-extensions python-argparse python-defusedxml python-rpm python-debian \
79- python-pygooglechart python-cracklib python-progressbar libapache2-mod-wsgi \
80- python-djangorestframework apache2 python-colorama python-humanize liblzma-dev \
81- python-magic python-lxml
78+ apt -y install python3-django python3-django-tagging python3-django-extensions \
79+ python3-djangorestframework python3-defusedxml python3-lxml python3-requests \
80+ python3-rpm python3-debian python3-colorama python3-humanize python3-magic \
81+ apache2 libapache2-mod-wsgi-py3 python3-pip python3-progressbar
8282```
8383
84842 . Install django-bootstrap3
8585
8686``` shell
87- pip install django-bootstrap3==11.1.0
87+ pip3 install django-bootstrap3
8888```
8989
90903 . Clone git repo to e.g. /srv/patchman
@@ -152,7 +152,7 @@ To configure the mysql database backend:
1521521 . Ensure mysql-server and the python mysql bindings are installed:
153153
154154``` shell
155- apt -y install default-mysql-server python -mysqldb python-pymysql
155+ apt -y install default-mysql-server python3 -mysqldb
156156```
157157
1581582 . Create database and users:
@@ -193,7 +193,7 @@ To configure the postgresql database backend:
1931931 . Ensure the postgresql server and the python postgres bindings are installed:
194194
195195``` shell
196- apt -y install postgresql python -psycopg2
196+ apt -y install postgresql python3 -psycopg2
197197```
198198
1991992 . Create database and users:
@@ -311,17 +311,17 @@ Install Celery for realtime processing of reports from clients:
311311#### Ubuntu / Debian
312312
313313``` shell
314- apt -y install python -celery python-celery-common rabbitmq-server
315- C_FORCE_ROOT=1 celery worker --loglevel=info -E -A patchman
314+ apt -y install python3 -celery redis python3-redis python-celery-common
315+ C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://127.0.0.1:6379/0 - E -A patchman
316316```
317317
318318#### CentOS / RHEL
319319
320320``` shell
321- yum -y install python -celery rabbitmq-server
322- systemctl restart rabbitmq -server
323- semanage port -a -t http_port_t -p tcp 5672
324- C_FORCE_ROOT=1 celery worker --loglevel=info -E -A patchman
321+ dnf -y install python3 -celery redis python3-redis
322+ systemctl restart redis -server
323+ semanage port -a -t http_port_t -p tcp 6379
324+ C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://127.0.0.1:6379/0 - E -A patchman
325325
326326```
327327
@@ -333,8 +333,8 @@ persistent over reboot.
333333Memcached can optionally be run to reduce the load on the server.
334334
335335``` shell
336- apt -y install memcached python -memcache # (debian/ubuntu)
337- yum -y install memcached python -memcached # (centos/rhel)
336+ apt -y install memcached python3 -memcache # (debian/ubuntu)
337+ dnf -y install memcached python3 -memcached # (centos/rhel)
338338systemctl restart memcached
339339```
340340
0 commit comments