Merge 5bc446b1893a2070be2b9e3987bdcea1cd52e950 into 42b4a88c963eb480b3c19117c19eac7e146fa8ff

This commit is contained in:
Aaron Brady 2025-04-05 22:39:08 +00:00 committed by GitHub
commit 4bb7751dc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 19 additions and 28 deletions

View File

@ -9,7 +9,7 @@
name: '{{brozzler_pip_name}}[dashboard]'
virtualenv: '{{venv_root}}/brozzler-dashboard-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'

View File

@ -1,24 +1,15 @@
---
- name: ensure canonical partner repo is in apt sources.list
apt_repository: repo='deb http://archive.canonical.com/ubuntu trusty partner'
state=present
become: true
- apt: update_cache=yes
become: true
- name: ensure required packages are installed
become: true
apt: name={{item}} state=present
with_items:
- chromium-browser
- vnc4server
- libjpeg-turbo8-dev
- chromium
- tigervnc-standalone-server
- libjpeg62-turbo-dev
- zlib1g-dev
- gcc
- python3-dev
- python3-dbg
- adobe-flashplugin
- xfonts-base
- fonts-arphic-bkai00mp
- fonts-arphic-bsmi00lp
@ -60,7 +51,7 @@
file: path={{venv_root}}/websockify-ve3 state=directory owner={{user}}
#get python3 version for checks below
- shell: "python --version"
- shell: "python3 --version"
register: python_installed
#websockify's dependency numpy's latest version no longer supports 3.5
@ -69,7 +60,7 @@
name: numpy==1.18.4
virtualenv: '{{venv_root}}/websockify-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
@ -80,7 +71,7 @@
name: git+https://github.com/kanaka/websockify.git#egg=websockify
virtualenv: '{{venv_root}}/websockify-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
@ -103,7 +94,7 @@
name: '{{brozzler_pip_name}}'
virtualenv: '{{venv_root}}/brozzler-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'

View File

@ -6,9 +6,9 @@ logfile=/var/log/Xvnc.log
touch $logfile
chown {{user}} $logfile
exec nice setuidgid {{user}} Xvnc4 :1 -auth /tmp/Xauthority.{{user}} \
-geometry 1600x1000 -depth 24 -rfbwait 0 -nolisten tcp -rfbport 5901 \
-SecurityTypes None -pn -fp /usr/share/fonts/X11/misc/ -co /etc/X11/rgb \
exec nice setuidgid {{user}} Xvnc :1 -auth /tmp/Xauthority.{{user}} \
-geometry 1600x1000 -depth 24 -nolisten tcp -rfbport 5901 \
-SecurityTypes None -pn -fp /usr/share/fonts/X11/misc/ \
AcceptCutText=0 AcceptPointerEvents=0 AcceptKeyEvents=0 \
>> $logfile 2>&1

View File

@ -70,7 +70,7 @@
changed_when: false
- name: ensure service user {{user}} exists
user: name={{user}} system=yes createhome=no home=/nonexistent
user: name={{user}} system=yes createhome=yes home=/home/{{user}}
shell=/usr/sbin/nologin
become: true
when: id_user|failed
when: id_user.rc != 0

View File

@ -10,7 +10,7 @@
version: 0.33.2
virtualenv: '{{venv_root}}/pywb-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
@ -22,7 +22,7 @@
name: '{{brozzler_pip_name}}'
virtualenv: '{{venv_root}}/pywb-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'

View File

@ -5,6 +5,6 @@ touch $logfile
chown {{user}} $logfile
exec nice setuidgid {{user}} env PYWB_CONFIG_FILE=/etc/pywb.yml \
{{venv_root}}/pywb-ve3/bin/python {{venv_root}}/pywb-ve3/bin/brozzler-wayback \
{{venv_root}}/pywb-ve3/bin/python3 {{venv_root}}/pywb-ve3/bin/brozzler-wayback \
>> $logfile 2>&1

View File

@ -4,7 +4,7 @@
become: true
- name: ensure rethinkdb repo is in apt sources.list
apt_repository:
repo: 'deb https://download.rethinkdb.com/repository/ubuntu-{{ansible_lsb.codename|lower}} {{ansible_lsb.codename|lower}} main'
repo: 'deb https://download.rethinkdb.com/repository/{{ansible_distribution|lower}}-{{ansible_lsb.codename|lower}} {{ansible_lsb.codename|lower}} main'
state: present
become: true
- apt: update_cache=yes

View File

@ -18,7 +18,7 @@
virtualenv: '{{venv_root}}/warcprox-ve3'
virtualenv_python: python3
extra_args: --no-input --upgrade --pre --cache-dir=/tmp/pip-cache
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
virtualenv_command: python3 -mvirtualenv
become: true
become_user: '{{user}}'
notify:

2
vagrant/Vagrantfile vendored
View File

@ -1,5 +1,5 @@
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box = "generic/debian12"
config.vm.define "10.9.9.9"
config.vm.hostname = "brzl"
config.vm.network :private_network, ip: "10.9.9.9"