Commit 2c71b1ad authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

Modified to have different sizes for /var/lib/sssd based on machine type.

CODE NOT TESTED IN ANGER YET
parent 5bef69f7
......@@ -55,8 +55,21 @@
become_user: root
notify: restart sssd
- name: Setting the size of /var/lib/sssd disk for ComputeNodes
set_fact:
ssd_size: "40M"
when: not ( (( inventory_hostname in groups.LoginNodes ) or ( inventory_hostname in groups.BackupNodes )))
- name: Setting the size of /var/lib/sssd disk for LoginNodes or Backup Nodes
set_fact:
ssd_size: "80M"
when: (( inventory_hostname in groups.LoginNodes ) or ( inventory_hostname in groups.BackupNodes ))
- name: Print size of /var/lib/sssd disk
debug: msg="Size of /var/lib/sssd disk is {{ ssd_size }}"
- name: "Make the cache a tmpfs"
mount: name=/var/lib/sss/db/ src=tmpfs fstype=tmpfs opts='size=80m' state=mounted
mount: name=/var/lib/sss/db/ src=tmpfs fstype=tmpfs opts='size={{ ssd_size }}' state=mounted
become: true
become_user: root
......
Markdown is supported
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