Prepare TP for newcomers
This commit is contained in:
parent
02d4c5684a
commit
74c0d481a8
11 changed files with 0 additions and 148 deletions
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
# Install CodiMD on corresponding containers
|
|
||||||
- hosts: codimd.adm.auro.re
|
|
||||||
roles:
|
|
||||||
- debian-backports
|
|
||||||
- codimd
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
# Install Riot web on corresponding containers
|
|
||||||
- hosts: riot.adm.auro.re
|
|
||||||
roles:
|
|
||||||
- matrix-riot-web
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# Rôle CodiMD
|
|
||||||
|
|
||||||
Ce rôle Ansible permet d'installer CodiMD.
|
|
||||||
|
|
||||||
Il doit être exécuté en tant que super-utilisateur
|
|
||||||
(option `-b` pour `--become`).
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
# Reload systemd daemons when a service file changes
|
|
||||||
- name: Reload systemd daemons
|
|
||||||
command: systemctl daemon-reload
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
# For NodeJS package
|
|
||||||
- name: Configure NodeJS pin
|
|
||||||
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
|
|
||||||
template:
|
|
||||||
src: 'apt/nodejs'
|
|
||||||
dest: '/etc/apt/preferences.d/nodejs'
|
|
||||||
mode: 0644
|
|
||||||
|
|
||||||
# Install CodiMD dependencies
|
|
||||||
- name: Install required packages
|
|
||||||
apt:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
with_items:
|
|
||||||
- git
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
---
|
|
||||||
# Security #1
|
|
||||||
- name: Create CodiMD system group
|
|
||||||
group:
|
|
||||||
name: codimd
|
|
||||||
system: yes
|
|
||||||
state: present
|
|
||||||
|
|
||||||
# Security #2
|
|
||||||
- name: Create CodiMD user
|
|
||||||
user:
|
|
||||||
name: codimd
|
|
||||||
group: codimd
|
|
||||||
home: '/var/local/codimd'
|
|
||||||
comment: CodiMD
|
|
||||||
system: yes
|
|
||||||
state: present
|
|
||||||
|
|
||||||
# Security #3
|
|
||||||
- name: Secure CodiMD home directory
|
|
||||||
file:
|
|
||||||
path: '/var/local/codimd'
|
|
||||||
state: directory
|
|
||||||
owner: codimd
|
|
||||||
group: codimd
|
|
||||||
mode: 0750
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
# Install APT dependencies
|
|
||||||
- include_tasks: 0_apt_dependencies.yml
|
|
||||||
|
|
||||||
# Create CodiMD user and group
|
|
||||||
- include_tasks: 1_user_group.yml
|
|
||||||
|
|
||||||
# Download CodiMD
|
|
||||||
- name: Clone CodiMD project
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/hackmdio/codimd.git"
|
|
||||||
dest: /var/local/codimd/codimd
|
|
||||||
version: "1.2.1"
|
|
||||||
become: true
|
|
||||||
become_user: codimd
|
|
||||||
|
|
||||||
# TODO Configurer et créer un service
|
|
||||||
# https://github.com/hackmdio/codimd#instructions
|
|
||||||
# https://github.com/hackmdio/codimd#configuration-files
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# /etc/apt/preferences.d/dokuwiki
|
|
||||||
# Deployed with Aurore Ansible !
|
|
||||||
|
|
||||||
Package: node* libuv1*
|
|
||||||
Pin: release a=stretch-backports
|
|
||||||
Pin-Priority: 600
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
# /etc/systemd/system/etherpad-lite.service
|
|
||||||
# Deployed with Aurore Ansible !
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Etherpad-lite, the collaborative editor.
|
|
||||||
After=syslog.target network-online.target mysql.service postgresql.service
|
|
||||||
Conflicts=shutdown.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=etherpad
|
|
||||||
Group=etherpad
|
|
||||||
WorkingDirectory=/var/local/etherpad/etherpad-lite
|
|
||||||
ExecStart=/usr/bin/nodejs /var/local/etherpad/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# Rôle Riot Web
|
|
||||||
|
|
||||||
Ce rôle Ansible permet d'installer le client Web Riot.
|
|
||||||
|
|
||||||
Il doit être exécuté en tant que super-utilisateur
|
|
||||||
(option `-b` pour `--become`).
|
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
---
|
|
||||||
# Based on https://github.com/vector-im/riot-web#desktop-installation-for-debian-stretch
|
|
||||||
|
|
||||||
- name: Make APT support HTTPS protocol
|
|
||||||
apt:
|
|
||||||
name: apt-transport-https
|
|
||||||
update_cache: yes
|
|
||||||
|
|
||||||
- name: Configure Riot repository
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb https://riot.im/packages/debian/ {{ ansible_distribution_release }} main"
|
|
||||||
|
|
||||||
- name: Configure Riot repository key
|
|
||||||
apt_key:
|
|
||||||
id: E019645248E8F4A1
|
|
||||||
url: https://riot.im/packages/debian/repo-key.asc
|
|
||||||
|
|
||||||
- name: Install Riot web
|
|
||||||
apt:
|
|
||||||
name: riot-web
|
|
||||||
update_cache: yes
|
|
||||||
|
|
||||||
# TODO host web page
|
|
Loading…
Reference in a new issue