Skip to content
Snippets Groups Projects
Commit 2eb57a97 authored by shirenn's avatar shirenn 🌊
Browse files

moved nounou homes

parent eacbef79
No related branches found
No related tags found
Loading
---
glob_home_nounou:
ip: 172.16.10.1
mountpoint: /pool/home
......@@ -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
......@@ -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
......
File moved
......@@ -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
......@@ -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
......
{{ ansible_header | comment }}
# Group privilege specification
NOUNOU ALL=(ALL:ALL) ALL
NOUNOUS ALL=(ALL:ALL) ALL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment