Update to 2021-11-26 13:00

master
Daniel Berteaud 3 years ago
parent fec23325d9
commit ce633b5ebb
  1. 21
      roles/etherpad/defaults/main.yml
  2. 34
      roles/phpmyadmin/defaults/main.yml
  3. 8
      roles/phpmyadmin/tasks/archive_post.yml
  4. 8
      roles/phpmyadmin/tasks/archive_pre.yml
  5. 9
      roles/phpmyadmin/tasks/cleanup.yml
  6. 17
      roles/phpmyadmin/tasks/conf.yml
  7. 14
      roles/phpmyadmin/tasks/directories.yml
  8. 37
      roles/phpmyadmin/tasks/facts.yml
  9. 54
      roles/phpmyadmin/tasks/install.yml
  10. 153
      roles/phpmyadmin/tasks/main.yml
  11. 8
      roles/phpmyadmin/tasks/user.yml
  12. 7
      roles/phpmyadmin/tasks/write_version.yml
  13. 0
      roles/unmaintained/bitwarden_rs/README.md
  14. 0
      roles/unmaintained/bitwarden_rs/defaults/main.yml
  15. 0
      roles/unmaintained/bitwarden_rs/handlers/main.yml
  16. 0
      roles/unmaintained/bitwarden_rs/meta/main.yml
  17. 0
      roles/unmaintained/bitwarden_rs/tasks/archive_post.yml
  18. 0
      roles/unmaintained/bitwarden_rs/tasks/archive_pre.yml
  19. 0
      roles/unmaintained/bitwarden_rs/tasks/cleanup.yml
  20. 0
      roles/unmaintained/bitwarden_rs/tasks/conf.yml
  21. 0
      roles/unmaintained/bitwarden_rs/tasks/directories.yml
  22. 0
      roles/unmaintained/bitwarden_rs/tasks/facts.yml
  23. 0
      roles/unmaintained/bitwarden_rs/tasks/install.yml
  24. 0
      roles/unmaintained/bitwarden_rs/tasks/iptables.yml
  25. 0
      roles/unmaintained/bitwarden_rs/tasks/main.yml
  26. 0
      roles/unmaintained/bitwarden_rs/tasks/service.yml
  27. 0
      roles/unmaintained/bitwarden_rs/tasks/user.yml
  28. 0
      roles/unmaintained/bitwarden_rs/tasks/write_version.yml
  29. 0
      roles/unmaintained/bitwarden_rs/templates/bitwarden_rs.conf.j2
  30. 0
      roles/unmaintained/bitwarden_rs/templates/bitwarden_rs.service.j2
  31. 0
      roles/unmaintained/bitwarden_rs/templates/nginx.conf.j2
  32. 0
      roles/unmaintained/bitwarden_rs/templates/post-backup.sh.j2
  33. 0
      roles/unmaintained/bitwarden_rs/templates/pre-backup.sh.j2
  34. 0
      roles/unmaintained/bluemind/defaults/main.yml
  35. 0
      roles/unmaintained/bluemind/handlers/main.yml
  36. 0
      roles/unmaintained/bluemind/tasks/main.yml
  37. 0
      roles/unmaintained/bluemind/templates/bm-core.log.xml.j2
  38. 0
      roles/unmaintained/bluemind/templates/bm-eas.log.xml.j2
  39. 0
      roles/unmaintained/bluemind/templates/bm-hps.log.xml.j2
  40. 0
      roles/unmaintained/bluemind/templates/bm-ips.log.xml.j2
  41. 0
      roles/unmaintained/bluemind/templates/bm-lmtp.log.xml.j2
  42. 0
      roles/unmaintained/bluemind/templates/bm-locator.log.xml.j2
  43. 0
      roles/unmaintained/bluemind/templates/bm-milter.log.xml.j2
  44. 0
      roles/unmaintained/bluemind/templates/bm-node.log.xml.j2
  45. 0
      roles/unmaintained/bluemind/templates/bm-syslog.service.j2
  46. 0
      roles/unmaintained/bluemind/templates/bm-tika.log.xml.j2
  47. 0
      roles/unmaintained/bluemind/templates/bm-webserver.log.xml.j2
  48. 0
      roles/unmaintained/bluemind/templates/bm-xmpp.log.xml.j2
  49. 0
      roles/unmaintained/bluemind/templates/bm-ysnp.log.xml.j2
  50. 0
      roles/unmaintained/bluemind/templates/dehydrated_deploy_hook.j2
  51. 0
      roles/unmaintained/bluemind/templates/post-backup.j2
  52. 0
      roles/unmaintained/bluemind/templates/pre-backup.j2
  53. 0
      roles/unmaintained/bluemind/templates/rules.json.j2
  54. 0
      roles/unmaintained/bounca/defaults/main.yml
  55. 0
      roles/unmaintained/bounca/handlers/main.yml
  56. 0
      roles/unmaintained/bounca/meta/main.yml
  57. 0
      roles/unmaintained/bounca/tasks/main.yml
  58. 0
      roles/unmaintained/bounca/templates/bounca.service.j2
  59. 0
      roles/unmaintained/bounca/templates/main.ini.j2
  60. 0
      roles/unmaintained/bounca/templates/uwsgi.ini.j2
  61. 0
      roles/unmaintained/matrix_mxisd/defaults/main.yml
  62. 0
      roles/unmaintained/matrix_mxisd/handlers/main.yml
  63. 0
      roles/unmaintained/matrix_mxisd/tasks/main.yml
  64. 0
      roles/unmaintained/matrix_mxisd/templates/gradle.properties.j2
  65. 0
      roles/unmaintained/matrix_mxisd/templates/matrix-mxisd.service.j2
  66. 0
      roles/unmaintained/matrix_mxisd/templates/mxisd.yaml.j2
  67. 0
      roles/unmaintained/mayan_edms/defaults/main.yml
  68. 0
      roles/unmaintained/mayan_edms/handlers/main.yml
  69. 0
      roles/unmaintained/mayan_edms/meta/main.yml
  70. 0
      roles/unmaintained/mayan_edms/tasks/archive_post.yml
  71. 0
      roles/unmaintained/mayan_edms/tasks/archive_pre.yml
  72. 0
      roles/unmaintained/mayan_edms/tasks/cleanup.yml
  73. 0
      roles/unmaintained/mayan_edms/tasks/conf.yml
  74. 0
      roles/unmaintained/mayan_edms/tasks/directories.yml
  75. 0
      roles/unmaintained/mayan_edms/tasks/facts.yml
  76. 0
      roles/unmaintained/mayan_edms/tasks/install.yml
  77. 0
      roles/unmaintained/mayan_edms/tasks/iptables.yml
  78. 0
      roles/unmaintained/mayan_edms/tasks/main.yml
  79. 0
      roles/unmaintained/mayan_edms/tasks/services.yml
  80. 0
      roles/unmaintained/mayan_edms/tasks/user.yml
  81. 0
      roles/unmaintained/mayan_edms/tasks/write_version.yml
  82. 0
      roles/unmaintained/mayan_edms/templates/auth.py.j2
  83. 0
      roles/unmaintained/mayan_edms/templates/env.j2
  84. 0
      roles/unmaintained/mayan_edms/templates/mayan-edms-beat.service.j2
  85. 0
      roles/unmaintained/mayan_edms/templates/mayan-edms-web.service.j2
  86. 0
      roles/unmaintained/mayan_edms/templates/mayan-edms-worker-fast.service.j2
  87. 0
      roles/unmaintained/mayan_edms/templates/mayan-edms-worker-medium.service.j2
  88. 0
      roles/unmaintained/mayan_edms/templates/mayan-edms-worker-slow.service.j2
  89. 0
      roles/unmaintained/mayan_edms/templates/mayan-edms.j2
  90. 0
      roles/unmaintained/mayan_edms/templates/post_backup.sh.j2
  91. 0
      roles/unmaintained/mayan_edms/templates/pre_backup.sh.j2
  92. 0
      roles/unmaintained/nas/defaults/main.yml
  93. 0
      roles/unmaintained/nas/files/mkhomedir
  94. 0
      roles/unmaintained/nas/handlers/main.yml
  95. 0
      roles/unmaintained/nas/meta/main.yml
  96. 0
      roles/unmaintained/nas/tasks/main.yml
  97. 0
      roles/unmaintained/nas/templates/exports.j2
  98. 0
      roles/unmaintained/nas/templates/httpd.conf.j2
  99. 0
      roles/unmaintained/nas/templates/mod_authnz_external.conf.j2
  100. 0
      roles/unmaintained/nas/templates/mod_dav.conf.j2
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,27 +1,44 @@
---
# You can install several instances of etherpad on the same server
# They should each get their own ID and port
etherpad_id: 1
# Where etherpad will be installed
etherpad_root_dir: /opt/etherpad_{{ etherpad_id }}
# Unix account under which etherpad will run. The user will be created if it doesn't exist
etherpad_user: etherpad_{{ etherpad_id }}
# Version to deploy
etherpad_version: 1.8.15
# URL from where the archive will be downloaded
etherpad_archive_url: https://github.com/ether/etherpad-lite/archive/{{ etherpad_version }}.tar.gz
# Expected sha1 of the archive, to check the download were OK
etherpad_archive_sha1: c7995d0418c919d97e62c941e70fb20940ce7b35
# Port on which the service will listen
etherpad_port: 9003
# List of IP/CIDR for which the port will be opened (if iptables_manage == True)
etherpad_src_ip: []
# Etherpad uses a MySQL compatible database
etherpad_db_name: etherpad_{{ etherpad_id }}
etherpad_db_user: etherpad_{{ etherpad_id }}
etherpad_db_port: 3306
etherpad_db_server: "{{mysql_server | default('localhost') }}"
# A random one is generated if not defined
# A random one is generated if not defined, and stored under {{ etherpad_root_dir }}/meta/ansible_dbpass
# etherpad_db_pass: s3cr3t.
# Page title
etherpad_title: Etherpad
# Default theme
etherpad_theme: colibris
# A random one will be created if not defined
# Admin password
# A random one will be created if not defined, and stored under {{ etherpad_root_dir }}/meta/ansible_admin_pass
# etherpad_admin_pass: p@ssw0rd
# The API Key
# A random one will be created if not defined, and stored under {{ etherpad_root_dir }}/meta/ansible_api_key
# etherpad_api_key: 123456
# List of plugins to install
etherpad_plugins_base:
- adminpads
- delete_after_delay

@ -1,42 +1,72 @@
---
# Version to deploy
pma_version: 5.1.1
# ID of the instance. Several instances can be installed on the same server
# they must have different ID
pma_id: "1"
# URL from where the archive will be downloaded
pma_archive_url: https://files.phpmyadmin.net/phpMyAdmin/{{ pma_version }}/phpMyAdmin-{{ pma_version }}-all-languages.zip
# Expected sha256 of the archive, to verify the download
pma_archive_sha256: 78a5d93621f9fdfc221a530705025dc79c1abc7a4d6a940a9d0a9a3719d0554c
# Should ansible handle upgrades. If False, then only the initial install will be done
pma_manage_upgrade: True
# Where phpMyAdmin will be installed
pma_root_dir: /opt/phpmyadmin_{{ pma_id }}
# phpMyAdmn uses a DB to store queries. Here are the param for this DB
# MySQL DB user
pma_db_user: pma_{{ pma_id }}
# MySQL DB name
pma_db_name: pma_{{ pma_id }}
# MySQL DB server
pma_db_server: "{{ mysql_server | default('localhost') }}"
# If Not defined, a random one will be created
# MySQL db password
# If Not defined, a random one will be created and stored under {{ pma_root_dir }}/meta/ansible_dbpass
# pma_db_pass:
# If defined, will use this specific FPM pool, which must exist
# If defined, will use this specific FPM pool, which must exist.
# Else, a PHP pool will be configured
# pma_php_fpm_pool: pma
# PHP version to use for the PHP pool
pma_php_version: 80
# Unix account under which the PHP pool will run. The user will be created
pma_php_user: php-pma_{{ pma_id }}
# Env vars which contain the login of the current user
# This can be used for example with Lemonldap::NG protecting phpMyAdmin
pma_sso_user_fields:
- REMOTE_USER
- REDIRECT_REMOTE_USER
# Same for the groups the user is member of
pma_sso_groups_fields: []
# pma_sso_groups_fields
# - HTTP_USER_GROUPS
# Optional list of IP/CIDR having access to phpMyAdmin
# pma_src_ip:
# - 127.0.0.1
# If defined, an alias (eg /phpmyadmin) will be created
# If not defined, you'll have to create a vhost pointing at {{ pma_root_dir }}/web
# for phpMyAdmin to be reachable
# pma_alias: phpmyadmin
# List of database servers
pma_servers: []
# pma_servers:
# - host: localhost
# port: 3306
# socket: /var/lib/mysql/mysql.sock
# auth_type: signon
# Dict of phpMyAdmin users and their corresponding MySQL credentials
pma_sso_users: []
# pma_sso_users:
# - user: dani
# sql_login: admin
# sql_password: p@ssw0rd
# Same for groups
pma_sso_groups: []
# pma_sso_groups:
# - group: DB_Admins

@ -0,0 +1,8 @@
---
- import_tasks: ../includes/webapps_compress_archive.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_current_version }}"
tags: pma

@ -0,0 +1,8 @@
---
- import_tasks: ../includes/webapps_archive.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_current_version }}"
- db_name: "{{ pma_db_name }}"
tags: pma

@ -0,0 +1,9 @@
---
- name: Remove temp files
file: path={{ item }} state=absent
with_items:
- "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages.zip"
- "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages"
tags: pma

@ -0,0 +1,17 @@
---
- import_tasks: ../includes/webapps_webconf.yml
vars:
- app_id: pma_{{ pma_id }}
- php_version: "{{ pma_php_version }}"
- php_fpm_pool: "{{ pma_php_fpm_pool | default('') }}"
tags: pma
- name: Deploy sso scripts
template: src=sso.php.j2 dest={{ pma_root_dir }}/web/sso.php group={{ pma_php_user }} mode=640
tags: pma
- name: Deploy phpMyAdmin config
template: src=config.inc.php.j2 dest={{ pma_root_dir }}/web/config.inc.php group={{ pma_php_user }} mode=640
tags: pma

@ -0,0 +1,14 @@
---
- name: Create directory structure
file: path={{ item.dir }} state=directory mode={{ item.mode | default(omit) }}
loop:
- dir: "{{ pma_root_dir }}"
- dir: "{{ pma_root_dir }}/web"
- dir: "{{ pma_root_dir }}/tmp"
- dir: "{{ pma_root_dir }}/sessions"
- dir: "{{ pma_root_dir }}/cache"
- dir: "{{ pma_root_dir }}/meta"
mode: 700
- dir: "{{ pma_root_dir }}/data"
tags: pma

@ -0,0 +1,37 @@
---
# Load distribution specific variables
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: pma
# Detect current version (if any) and set install_mode (to none, upgrade or install)
- block:
- import_tasks: ../includes/webapps_set_install_mode.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_version }}"
- set_fact: pma_install_mode={{ (install_mode == 'upgrade' and not pma_manage_upgrade) | ternary('none',install_mode) }}
- set_fact: pma_current_version={{ current_version | default('') }}
tags: pma
# Generate a random key for cookie signing
- block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ pma_root_dir }}/meta/key.txt"
- set_fact: pma_key={{ rand_pass }}
tags: pma
# Generate a DB password if not defined
- when: pma_db_pass is not defined
block:
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{pma_root_dir }}/meta/ansible_dbpass"
- set_fact: pma_db_pass={{ rand_pass }}
tags: pma

@ -0,0 +1,54 @@
---
- name: Install dependencies
yum: name={{ pma_packages }}
tags: pma
- when: pma_install_mode != 'none'
block:
- name: Download phpMyAdmin
get_url:
url: "{{ pma_archive_url }}"
dest: "{{ pma_root_dir }}/tmp/"
checksum: "sha256:{{ pma_archive_sha256 }}"
- name: Extract pma archive
unarchive:
src: "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages.zip"
dest: "{{ pma_root_dir }}/tmp"
remote_src: yes
- name: Move files to the correct directory
synchronize:
src: "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages/"
dest: "{{ pma_root_dir }}/web/"
compress: False
delete: True
delegate_to: "{{ inventory_hostname }}"
tags: pma
- import_tasks: ../includes/webapps_create_mysql_db.yml
vars:
- db_name: "{{ pma_db_name }}"
- db_user: "{{ pma_db_user }}"
- db_server: "{{ pma_db_server }}"
- db_pass: "{{ pma_db_pass }}"
tags: pma
- name: Prepare SQL file to create tables
replace: path={{ pma_root_dir }}/web/sql/create_tables.sql regexp='phpmyadmin' replace={{ pma_db_name }}
tags: pma
- name: Create tables
mysql_db:
name: "{{ pma_db_name }}"
state: import
target: "{{ pma_root_dir }}/web/sql/create_tables.sql"
login_host: "{{ pma_db_server }}"
login_user: sqladmin
login_password: "{{ mysql_admin_pass }}"
when: db_created.changed
tags: pma

@ -1,149 +1,14 @@
---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: pma
- name: Install dependencies
yum: name={{ pma_packages }}
tags: pma
- import_tasks: ../includes/create_system_user.yml
vars:
- user: "{{ pma_php_user }}"
- comment: "PHP FPM for pma {{ pma_id }}"
tags: pma
- block:
- import_tasks: ../includes/webapps_set_install_mode.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_version }}"
- set_fact: pma_install_mode={{ (install_mode == 'upgrade' and not pma_manage_upgrade) | ternary('none',install_mode) }}
- set_fact: pma_current_version={{ current_version | default('') }}
tags: pma
- import_tasks: ../includes/webapps_archive.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_current_version }}"
- db_name: "{{ pma_db_name }}"
- include: user.yml
- include: directories.yml
- include: facts.yml
- include: archive_pre.yml
when: pma_install_mode == 'upgrade'
tags: pma
- name: Create directory structure
file: path={{ item }} state=directory
with_items:
- "{{ pma_root_dir }}"
- "{{ pma_root_dir }}/web"
- "{{ pma_root_dir }}/tmp"
- "{{ pma_root_dir }}/sessions"
- "{{ pma_root_dir }}/cache"
- "{{ pma_root_dir }}/meta"
- "{{ pma_root_dir }}/data"
tags: pma
- name: Download phpMyAdmin
get_url:
url: "{{ pma_archive_url }}"
dest: "{{ pma_root_dir }}/tmp/"
checksum: "sha256:{{ pma_archive_sha256 }}"
when: pma_install_mode != 'none'
tags: pma
- name: Extract pma archive
unarchive:
src: "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages.zip"
dest: "{{ pma_root_dir }}/tmp"
remote_src: yes
when: pma_install_mode != 'none'
tags: pma
- name: Move files to the correct directory
synchronize:
src: "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages/"
dest: "{{ pma_root_dir }}/web/"
compress: False
delete: True
delegate_to: "{{ inventory_hostname }}"
when: pma_install_mode != 'none'
tags: pma
- name: Remove temp files
file: path={{ item }} state=absent
with_items:
- "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages.zip"
- "{{ pma_root_dir }}/tmp/phpMyAdmin-{{ pma_version }}-all-languages"
tags: pma
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{ pma_root_dir }}/meta/key.txt"
tags: pma
- set_fact: pma_key={{ rand_pass }}
tags: pma
- import_tasks: ../includes/get_rand_pass.yml
vars:
- pass_file: "{{pma_root_dir }}/meta/ansible_dbpass"
when: pma_db_pass is not defined
tags: pma
- set_fact: pma_db_pass={{ rand_pass }}
when: pma_db_pass is not defined
tags: pma
- import_tasks: ../includes/webapps_create_mysql_db.yml
vars:
- db_name: "{{ pma_db_name }}"
- db_user: "{{ pma_db_user }}"
- db_server: "{{ pma_db_server }}"
- db_pass: "{{ pma_db_pass }}"
tags: pma
- name: Prepare SQL file to create tables
replace: path={{ pma_root_dir }}/web/sql/create_tables.sql regexp='phpmyadmin' replace={{ pma_db_name }}
tags: pma
- name: Create tables
mysql_db:
name: "{{ pma_db_name }}"
state: import
target: "{{ pma_root_dir }}/web/sql/create_tables.sql"
login_host: "{{ pma_db_server }}"
login_user: sqladmin
login_password: "{{ mysql_admin_pass }}"
when: db_created.changed
tags: pma
- import_tasks: ../includes/webapps_webconf.yml
vars:
- app_id: pma_{{ pma_id }}
- php_version: "{{ pma_php_version }}"
- php_fpm_pool: "{{ pma_php_fpm_pool | default('') }}"
tags: pma
- name: Deploy sso scripts
template: src=sso.php.j2 dest={{ pma_root_dir }}/web/sso.php group={{ pma_php_user }} mode=640
tags: pma
- name: Deploy phpMyAdmin config
template: src=config.inc.php.j2 dest={{ pma_root_dir }}/web/config.inc.php group={{ pma_php_user }} mode=640
tags: pma
- import_tasks: ../includes/webapps_compress_archive.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_current_version }}"
- include: install.yml
- include: conf.yml
- include: archive_post.yml
when: pma_install_mode == 'upgrade'
tags: pma
- import_tasks: ../includes/webapps_post.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_version }}"
tags: pma
- include: cleanup.yml
- include: write_version.yml

@ -0,0 +1,8 @@
---
- import_tasks: ../includes/create_system_user.yml
vars:
- user: "{{ pma_php_user }}"
- comment: "PHP FPM for pma {{ pma_id }}"
tags: pma

@ -0,0 +1,7 @@
---
- import_tasks: ../includes/webapps_post.yml
vars:
- root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_version }}"
tags: pma

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save