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
1 merge request!250moved nounou homes
---
glob_home_nounou:
ip: 172.16.10.1
mountpoint: /pool/home
...@@ -59,6 +59,3 @@ glob_ldap: ...@@ -59,6 +59,3 @@ glob_ldap:
- 172.16.10.12 - 172.16.10.12
- 172.16.10.13 - 172.16.10.13
base: 'dc=crans,dc=org' base: 'dc=crans,dc=org'
home_nounous:
ip: 172.16.10.1
...@@ -38,9 +38,11 @@ ...@@ -38,9 +38,11 @@
roles: roles:
- ldap-client - 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: roles:
- home-nounous - home-nounou
- import_playbook: scripts.yml - import_playbook: scripts.yml
- import_playbook: vm_setup.yml - import_playbook: vm_setup.yml
......
File moved
...@@ -9,15 +9,23 @@ ...@@ -9,15 +9,23 @@
retries: 3 retries: 3
until: apt_result is succeeded 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 - name: Deploy nfs systemd mount
template: template:
src: systemd/system/home.mount.j2 src: systemd/system/home_nounou.mount.j2
dest: /etc/systemd/system/home.mount dest: /etc/systemd/system/home_nounou.mount
mode: 0644 mode: 0644
- name: Load and activate nfs systemd mount - name: Load and activate nfs systemd mount
systemd: systemd:
name: home.mount name: home_nounou.mount
daemon_reload: true daemon_reload: true
enabled: true enabled: true
state: started state: started
...@@ -5,8 +5,8 @@ Wants=network-online.target ...@@ -5,8 +5,8 @@ Wants=network-online.target
After=network-online.target After=network-online.target
[Mount] [Mount]
What={{ home_nounous.ip }}:/pool/home What={{ home_nounou.ip }}:{{ home_nounou.mountpoint }}
Where=/home Where=/home_nounou
Type=nfs Type=nfs
Options=rw,nosuid Options=rw,nosuid
......
{{ ansible_header | comment }} {{ ansible_header | comment }}
# Group privilege specification # 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