From 436c321ea39ad3017b536799450e5dc0cfd373fd Mon Sep 17 00:00:00 2001 From: Kamil Sambor Date: Mon, 5 Aug 2024 15:40:58 +0200 Subject: [PATCH] Fix default hugepages group --- roles/edpm_extra_mounts/defaults/main.yml | 4 ++-- roles/edpm_extra_mounts/molecule/default/converge.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/roles/edpm_extra_mounts/defaults/main.yml b/roles/edpm_extra_mounts/defaults/main.yml index 437f6f2ee..26a8a90da 100644 --- a/roles/edpm_extra_mounts/defaults/main.yml +++ b/roles/edpm_extra_mounts/defaults/main.yml @@ -23,5 +23,5 @@ edpm_extra_mounts_hide_sensitive_logs: true edpm_extra_mounts: [] edpm_default_mounts: [ - {name: 'hugepages1G', path: '/dev/hugepages1G', opts: 'pagesize=1G', fstype: 'hugetlbfs'}, - {name: 'hugepages2M', path: /dev/hugepages2M, opts: 'pagesize=2M', fstype: 'hugetlbfs'}] + {name: 'hugepages1G', path: '/dev/hugepages1G', opts: 'pagesize=1G', fstype: 'hugetlbfs', group: 'hugetlbfs'}, + {name: 'hugepages2M', path: /dev/hugepages2M, opts: 'pagesize=2M', fstype: 'hugetlbfs', group: 'hugetlbfs'}] diff --git a/roles/edpm_extra_mounts/molecule/default/converge.yml b/roles/edpm_extra_mounts/molecule/default/converge.yml index ffc32a004..253b8b889 100644 --- a/roles/edpm_extra_mounts/molecule/default/converge.yml +++ b/roles/edpm_extra_mounts/molecule/default/converge.yml @@ -18,6 +18,13 @@ - name: Converge hosts: all tasks: + - name: "Include edpm_users with non default config" + ansible.builtin.include_role: + name: "osp.edpm.edpm_users" + vars: + edpm_users_users: + - {"name": "hugetlbfs", "gid": "42477", "group_only": true} + edpm_users_extra_dirs: [] - name: "Include edpm_extra_mounts" ansible.builtin.include_role: name: "osp.edpm.edpm_extra_mounts" @@ -29,7 +36,9 @@ path: '/dev/hugepages1G' opts: 'pagesize=1G' fstype: 'hugetlbfs' + group: 'hugetlbfs' - name: 'hugepages2MB' path: '/dev/hugepages2MB' opts: 'pagesize=2M' fstype: 'hugetlbfs' + group: 'hugetlbfs'