Verified Commit 35d176f6 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/aurweb: Add maintenance mode and other changes

playboooks/aur-dev: Remove the intl php extension

Added maintenance mode to the aurweb role using the AUR internal mode. Also,
add the php-apcu-bc package to the list of required packages. Also running the
make required to create the translations.
parent 2979791a
......@@ -13,7 +13,7 @@
- { role: mariadb, mariadb_innodb_buffer_pool_size: '64M', mariadb_table_open_cache: '256', mariadb_query_cache_type: '0',
mariadb_innodb_file_per_table: True }
- { role: sudo }
- { role: php-fpm, php_extensions: ['apcu', 'iconv', 'intl', 'mysqli', 'pdo_mysql'], zend_extensions: ['opcache']}
- { role: php-fpm, php_extensions: ['apcu', 'iconv', 'mysqli', 'pdo_mysql'], zend_extensions: ['opcache'] }
- { role: borg-client, tags: ["borg"] }
- { role: postfix, postfix_relayhost: "orion.archlinux.org" }
- { role: fail2ban }
......
......@@ -7,6 +7,7 @@ aurweb_dir: '/srv/http/aurweb'
aurweb_conf_dir: '/etc/aurweb'
aurweb_git_dir: "{{ aurweb_dir }}/aur.git"
aurweb_git_hook: '/usr/local/bin/aurweb-git-update'
aurweb_nginx_conf: '/etc/nginx/nginx.d/aurweb.conf'
aurweb_version: 'live'
tubylaws_version: 'proposal-117'
......@@ -20,4 +21,4 @@ aurweb_socket: '/run/php-fpm/{{aurweb_user}}.socket'
aurweb_cache: 'apc'
aurweb_cache_pkginfo_ttl: '86400'
aurweb_request_limt: '4000'
aurweb_window_length: '86400'
\ No newline at end of file
aurweb_window_length: '86400'
---
- name: run maintenance mode
include_role:
name: maintenance
vars:
service_name: "site"
service_domain: "{{ aurweb_domain }}"
service_alternate_domains: []
service_nginx_conf: "{{ aurweb_nginx_conf }}"
when: maintenance is defined
- name: install required packages
pacman: name=git,sudo,python-mysql-connector,python-pygit2,python-srcinfo,python-bleach,python-markdown,pyalpm,make,asciidoc,php-apcu state=present
pacman: name=git,sudo,python-mysql-connector,python-pygit2,python-srcinfo,python-bleach,python-markdown,pyalpm,make,asciidoc,php-apcu,php-apcu-bc state=present
- name: make aur user
user: name="{{ aurweb_user }}" shell=/bin/bash createhome=yes
......@@ -81,6 +91,13 @@
become: true
become_user: "{{aurweb_user}}"
- name: Generate Translations
make:
chdir: "{{ aurweb_dir }}/po"
target: "install"
become: true
become_user: "{{aurweb_user}}"
- name: Generate Trusted User documentation
make:
chdir: "{{ aurweb_dir }}/tu-bylaws"
......@@ -94,7 +111,7 @@
file: src=tu-bylaws.html dest={{ aurweb_dir }}/web/html/trusted-user/TUbylaws.html state=link
- name: set up nginx
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/aurweb.conf owner=root group=root mode=644
template: src=nginx.d.conf.j2 dest={{ aurweb_nginx_conf }} owner=root group=root mode=644
notify: reload nginx
tags: ['nginx']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment