Commit 07cb3f8e authored by viscapi's avatar viscapi
Browse files

Translated all strings to English

parent 0dcbd068
---
- name: Création groupe UNIX iRODS
- name: Create UNIX iRODS group
group:
name: "{{ irods_unix_group_name }}"
gid: "{{ irods_unix_group_id }}"
state: present
- name: Création utilisateur UNIX iRODS
- name: Create UNIX iRODS user
user:
name: "{{ irods_unix_user_name }}"
uid: "{{ irods_unix_user_id }}"
group: irods
state: present
password: "{{irods_unix_password}}"
#password: voir docs.ansible.com/ansible/latest/user_module.html
#password: see docs.ansible.com/ansible/latest/user_module.html
...
---
- name: Template du fichier server_config.json
- name: Template server_config.json file
template:
src: templates/irods_setup.json.j2
dest: /tmp/irods_setup.json
- name: On vérifie qu'iRODS n'a pas déjà été configuré
- name: Check that iRODS hasn't been configured before
stat:
path: /etc/irods/server_config.json
register: config
- name: Exécution du script setup_irods.py
- name: Execute setup_irods.py script
command: /usr/bin/python setup_irods.py --json_configuration_file=/tmp/irods_setup.json
args:
chdir: /var/lib/irods/scripts
......
---
# Version Ansible de: https://redmine.pallas.cines.fr/projects/admin_dad/wiki/Installation_manuelle_d'iRODS_42x
- import_tasks: group_user.yml
- import_tasks: repos.yml
- import_tasks: packages.yml
......
---
# Installation paquets iRODS + divers
- name: Installation paquets iRODS et divers
- name: Install iRODS packages and misc.
yum:
conf_file: '/etc/yum.conf'
name:
......
---
- name: Installation des modules python
- name: Install python modules
pip:
name:
- pip
......
---
## Ajout des dépôts iRODS
- name: Ajout de la clé pour dépôt iRODS
- name: Add key for iRODS repository
rpm_key:
state: present
key: https://packages.irods.org/irods-signing-key.asc
validate_certs: yes
# validate_certs nécessaire ?
# TODO: gpgcheck et repo_gpgcheck off pour éviter problèmes, à régler /!\
- name: Récupération dépôt iRODS
- name: Add iRODS repository
yum_repository:
description: RENCI iRODS Repository
name: irods
......
---
- name: On vérifie que le mode SELinux est enforcing
- name: Set SELinux mode
selinux:
policy: targeted
state: "{{ selinux_mode }}"
......
---
- name: On vérifie que la base n'existe pas déjà sur CentOS
- name: Check that the database doesn't exist yet on CentOS
stat:
path: "{{path_to_icat}}/postgresql.conf"
register: stat_result_centos
when: ansible_facts['distribution'] == "CentOS"
- name: On vérifie que la base n'existe pas déjà sur Debian
- name: Check that the database doesn't exist yet on Debian
stat:
path: "/etc/postgresql/{{ postgresql_version.version.major }}/{{ cluster_name }}/postgresql.conf"
register: stat_result_debian
when: ansible_facts['distribution'] == "Debian"
- name: Initialisation de la base de données ICAT sur CentOS 7
- name: Initialization of ICAT database on CentOS 7
command: /usr/pgsql-9.6/bin/initdb -D {{path_to_icat}}
become: true
become_user: postgres
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and stat_result_centos.stat.exists == False)
- name: Initialisation de la base de données ICAT sur CentOS 8
- name: Initialization of ICAT database on CentOS 8
command: /usr/bin/initdb -D {{path_to_icat}}
become: true
become_user: postgres
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and stat_result_centos.stat.exists == False)
- name: Initialisation de la base de données ICAT sur Debian 10
- name: Initialization of ICAT database on Debian 10
command: /usr/bin/pg_createcluster -d {{ path_to_icat }} {{ postgresql_version.version.major }} {{ cluster_name }}
become: true
become_user: postgres
......
......@@ -6,7 +6,7 @@
password: "{{ database_password }}"
login_user: postgres
login_unix_socket: /tmp
# login_unix_socket nécessaire (sinon va chercher dans /var/run/postgresql)
# login_unix_socket mandatory (else looks it up in /var/run/postgresql)
- postgresql_db:
name: "{{ database_name }}"
......
---
- name: Installation paquets PostgreSQL 9.6 pour CentOS 7
- name: Install PostgreSQL 9.6 packages for CentOS 7
yum:
conf_file: '/etc/yum.conf'
name:
......@@ -12,7 +12,7 @@
state: present
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
- name: Installation paquets PostgreSQL 10.6 pour CentOS 8
- name: Install PostgreSQL 10.6 packages for CentOS 8
dnf:
conf_file: '/etc/dnf/dnf.conf'
name:
......
---
- name: configuration adresse d'écoute PostgreSQL
- name: Configure PostgreSQL listen address
lineinfile:
path: "{{ path_to_icat }}/postgresql.conf"
regexp: '^#listen_addresses ='
......@@ -8,7 +8,7 @@
backrefs: yes
backup: yes
- name: autorisation dans pg_hba.conf
- name: Set autorization in pg_hba.conf
postgresql_pg_hba:
dest: "{{ path_to_icat }}/pg_hba.conf"
databases: "{{ database_name }}"
......@@ -17,12 +17,4 @@
contype: host
method: trust
#- name: autorisation dans pg_hba.conf
# lineinfile:
# path: "{{ path_to_icat }}/pg_hba.conf"
# insertbefore: '^# Allow replication connections from localhost'
# line: 'host {{ database_name }} {{ database_user }} {{ irods_server }}/24 trust'
# #backrefs: yes
# backup: yes
...
---
- name: Installation du dépôt PostgreSQL 9.6
- name: Install PostgreSQL 9.6 packages for CentOS 7
yum:
conf_file: '/etc/yum.conf'
name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
......
......@@ -4,10 +4,6 @@
policy: targeted
state: "{{ selinux_mode }}"
#- name:
# debug:
# var: "{{ path_to_icat | splitext }}"
- name: Allow PostgreSQL to modify files in "{{ path_to_icat }}"
sefcontext:
target: '{{ path_to_icat }}(/.*)?'
......
---
# Activation du service postgresql-9.6 pour CentOS 7
- name: Activation du service postgresql-9.6 pour CentOS 7
- name: Activate postgresql-9.6 service for CentOS 7
systemd:
enabled: yes
name: postgresql-9.6
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
- name: Activation du service postgresql pour CentOS 8
- name: Activate postgresql service for CentOS 8
systemd:
enabled: yes
name: postgresql
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
# Modification de la variable PGDATA dans /usr/lib/systemd/system/postgresql-9.6.service
- lineinfile:
path: /usr/lib/systemd/system/postgresql-9.6.service
regexp: '^Environment=PGDATA='
......@@ -28,21 +24,17 @@
line: 'Environment=PGDATA={{path_to_icat}}'
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
# On recharge l'environnememnt
- name: Rechargement de l'environnement
- name: Reload systemd daemon
systemd:
daemon_reload: yes
# Démarrage du service postgresql-9.6
- name: Démarrage du service postgresql-9.6
- name: Start postgresql-9.6 service on CentOS 7
systemd:
name: postgresql-9.6
state: started
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
- name: Démarrage du service postgresql
- name: Start postgresql service on CentOS 8
systemd:
name: postgresql
state: started
......
---
- name: Création groupe UNIX iRODS
- name: Create UNIX iRODS group
group:
name: "{{ irods_unix_group_name }}"
gid: "{{ irods_unix_group_id }}"
state: present
- name: Création utilisateur UNIX iRODS
- name: Create UNIX iRODS user
user:
name: "{{ irods_unix_user_name }}"
uid: "{{ irods_unix_user_id }}"
......@@ -15,15 +15,15 @@
password: "{{irods_unix_password}}"
#password: voir docs.ansible.com/ansible/latest/user_module.html
- name: Création groupe et utilisateur postgres
- name: Create postgres user and group on CentOS 7
block:
- name: Création groupe UNIX postgres
- name: Create UNIX postgres group
group:
name: "{{ postgresql_unix_group_name }}"
state: present
system: yes
- name: Création utilisateur postgres
- name: Create UNIX postgres user
user:
name: "{{ postgresql_unix_user_name }}"
group: "{{ postgresql_unix_group_name }}"
......
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