moved nounou homes

certbot_on_virtu
_shirenn 2021-05-12 18:00:38 +02:00
parent eacbef7917
commit 2eb57a975d
7 changed files with 22 additions and 11 deletions

View File

@ -0,0 +1,4 @@
---
glob_home_nounou:
ip: 172.16.10.1
mountpoint: /pool/home

View File

@ -59,6 +59,3 @@ glob_ldap:
- 172.16.10.12
- 172.16.10.13
base: 'dc=crans,dc=org'
home_nounous:
ip: 172.16.10.1

View File

@ -38,9 +38,11 @@
roles:
- ldap-client
- hosts: server,!ovh_physical,!tealc.adm.crans.org,!zamok.adm.crans.org
- hosts: server,!ovh_physical,!tealc.adm.crans.org,!zamok.adm.crans.org,!gulp.cachan-adm.crans.org
vars:
home_nounou: "{{ glob_home_nounou | default({}) | combine(loc_home_nounou | default({})) }}"
roles:
- home-nounous
- home-nounou
- import_playbook: scripts.yml
- import_playbook: vm_setup.yml

View File

@ -9,15 +9,23 @@
retries: 3
until: apt_result is succeeded
- name: Create directory home_nounou
file:
path: /home_nounou
state: directory
owner: root
group: _user
mode: 0750
- name: Deploy nfs systemd mount
template:
src: systemd/system/home.mount.j2
dest: /etc/systemd/system/home.mount
src: systemd/system/home_nounou.mount.j2
dest: /etc/systemd/system/home_nounou.mount
mode: 0644
- name: Load and activate nfs systemd mount
systemd:
name: home.mount
name: home_nounou.mount
daemon_reload: true
enabled: true
state: started

View File

@ -5,8 +5,8 @@ Wants=network-online.target
After=network-online.target
[Mount]
What={{ home_nounous.ip }}:/pool/home
Where=/home
What={{ home_nounou.ip }}:{{ home_nounou.mountpoint }}
Where=/home_nounou
Type=nfs
Options=rw,nosuid

View File

@ -1,3 +1,3 @@
{{ ansible_header | comment }}
# Group privilege specification
NOUNOU ALL=(ALL:ALL) ALL
NOUNOUS ALL=(ALL:ALL) ALL