diff --git a/roles/ceems_api_server/defaults/main.yml b/roles/ceems_api_server/defaults/main.yml index f1c686a..0b78807 100644 --- a/roles/ceems_api_server/defaults/main.yml +++ b/roles/ceems_api_server/defaults/main.yml @@ -24,3 +24,4 @@ ceems_api_server_env_vars: {} ceems_api_server_binary_install_dir: /usr/local/bin ceems_api_server_system_group: ceems ceems_api_server_system_user: "{{ ceems_api_server_system_group }}" +ceems_api_server_create_system_user_group: true diff --git a/roles/ceems_api_server/meta/argument_specs.yml b/roles/ceems_api_server/meta/argument_specs.yml index ca2bafa..29f8711 100644 --- a/roles/ceems_api_server/meta/argument_specs.yml +++ b/roles/ceems_api_server/meta/argument_specs.yml @@ -82,12 +82,17 @@ argument_specs: ceems_api_server_binary_install_dir: description: - I(Advanced) - - Directory to install ceems_api_server binary + - Directory to install CEEMS API server binary default: /usr/local/bin + ceems_api_server_create_system_user_group: + description: + - I(Advanced) + - Create system user and group for CEEMS API server + default: true ceems_api_server_system_group: description: - I(Advanced) - - System group for batch job stats server + - System group for CEEMS API server server default: ceems ceems_api_server_system_user: description: diff --git a/roles/ceems_api_server/tasks/install.yml b/roles/ceems_api_server/tasks/install.yml index c540ebe..484d81b 100644 --- a/roles/ceems_api_server/tasks/install.yml +++ b/roles/ceems_api_server/tasks/install.yml @@ -4,7 +4,9 @@ name: "{{ ceems_api_server_system_group }}" state: present system: true - when: ceems_api_server_system_group != "root" + when: + - ceems_api_server_system_group != "root" + - ceems_api_server_create_system_user_group - name: Create the ceems_api_server user ansible.builtin.user: @@ -15,7 +17,9 @@ system: true create_home: false home: / - when: ceems_api_server_system_user != "root" + when: + - ceems_api_server_system_user != "root" + - ceems_api_server_create_system_user_group - name: Get binary when: diff --git a/roles/ceems_exporter/defaults/main.yml b/roles/ceems_exporter/defaults/main.yml index 2c0498e..098f2a1 100644 --- a/roles/ceems_exporter/defaults/main.yml +++ b/roles/ceems_exporter/defaults/main.yml @@ -27,3 +27,4 @@ ceems_exporter_env_vars: {} ceems_exporter_binary_install_dir: /usr/local/bin ceems_exporter_system_group: ceemsexp ceems_exporter_system_user: "{{ ceems_exporter_system_group }}" +ceems_exporter_create_system_user_group: true diff --git a/roles/ceems_exporter/meta/argument_specs.yml b/roles/ceems_exporter/meta/argument_specs.yml index 1cc565e..ee181e3 100644 --- a/roles/ceems_exporter/meta/argument_specs.yml +++ b/roles/ceems_exporter/meta/argument_specs.yml @@ -90,6 +90,11 @@ argument_specs: - I(Advanced) - Directory to install ceems_exporter binary default: /usr/local/bin + ceems_exporter_create_system_user_group: + description: + - I(Advanced) + - Create system user and group for CEEMS exporter + default: true ceems_exporter_system_group: description: - I(Advanced) diff --git a/roles/ceems_exporter/tasks/install.yml b/roles/ceems_exporter/tasks/install.yml index ddf18c2..a075537 100644 --- a/roles/ceems_exporter/tasks/install.yml +++ b/roles/ceems_exporter/tasks/install.yml @@ -4,7 +4,9 @@ name: "{{ ceems_exporter_system_group }}" state: present system: true - when: ceems_exporter_system_group != "root" + when: + - ceems_exporter_system_group != "root" + - ceems_exporter_create_system_user_group - name: Create the ceems_exporter user ansible.builtin.user: @@ -15,7 +17,9 @@ system: true create_home: false home: / - when: ceems_exporter_system_user != "root" + when: + - ceems_exporter_system_user != "root" + - ceems_exporter_create_system_user_group - name: Get binary when: diff --git a/roles/ceems_lb/defaults/main.yml b/roles/ceems_lb/defaults/main.yml index 323da27..b0cda07 100644 --- a/roles/ceems_lb/defaults/main.yml +++ b/roles/ceems_lb/defaults/main.yml @@ -19,3 +19,4 @@ ceems_lb_env_vars: {} ceems_lb_binary_install_dir: /usr/local/bin ceems_lb_system_group: ceems ceems_lb_system_user: "{{ ceems_lb_system_group }}" +ceems_lb_create_system_user_group: true diff --git a/roles/ceems_lb/meta/argument_specs.yml b/roles/ceems_lb/meta/argument_specs.yml index bf7322b..4b00d05 100644 --- a/roles/ceems_lb/meta/argument_specs.yml +++ b/roles/ceems_lb/meta/argument_specs.yml @@ -65,6 +65,11 @@ argument_specs: - I(Advanced) - Directory to install ceems_lb binary default: /usr/local/bin + ceems_lb_create_system_user_group: + description: + - I(Advanced) + - Create system user and group for CEEMS load balancer + default: true ceems_lb_system_group: description: - I(Advanced) diff --git a/roles/ceems_lb/tasks/install.yml b/roles/ceems_lb/tasks/install.yml index 09022c3..f799265 100644 --- a/roles/ceems_lb/tasks/install.yml +++ b/roles/ceems_lb/tasks/install.yml @@ -4,7 +4,9 @@ name: "{{ ceems_lb_system_group }}" state: present system: true - when: ceems_lb_system_group != "root" + when: + - ceems_lb_system_group != "root" + - ceems_lb_create_system_user_group - name: Create the ceems_lb user ansible.builtin.user: @@ -15,7 +17,9 @@ system: true create_home: false home: / - when: ceems_lb_system_user != "root" + when: + - ceems_lb_system_user != "root" + - ceems_lb_create_system_user_group - name: Get binary when: diff --git a/roles/litestream/defaults/main.yml b/roles/litestream/defaults/main.yml index 672e527..133536b 100644 --- a/roles/litestream/defaults/main.yml +++ b/roles/litestream/defaults/main.yml @@ -11,3 +11,4 @@ litestream_env_vars: {} litestream_binary_install_dir: /usr/local/bin litestream_system_group: root litestream_system_user: "{{ litestream_system_group }}" +litestream_create_system_user_group: true diff --git a/roles/litestream/meta/argument_specs.yml b/roles/litestream/meta/argument_specs.yml index 3d283f8..146d7c3 100644 --- a/roles/litestream/meta/argument_specs.yml +++ b/roles/litestream/meta/argument_specs.yml @@ -34,6 +34,11 @@ argument_specs: - I(Advanced) - Directory to install litestream binary default: /usr/local/bin + litestream_create_system_user_group: + description: + - I(Advanced) + - Create system user and group for litestream + default: true litestream_system_group: description: - I(Advanced) diff --git a/roles/litestream/tasks/install.yml b/roles/litestream/tasks/install.yml index 08a8555..3afe324 100644 --- a/roles/litestream/tasks/install.yml +++ b/roles/litestream/tasks/install.yml @@ -4,7 +4,9 @@ name: "{{ litestream_system_group }}" state: present system: true - when: litestream_system_group != "root" + when: + - litestream_system_group != "root" + - litestream_create_system_user_group - name: Create the litestream user ansible.builtin.user: @@ -15,7 +17,9 @@ system: true create_home: false home: / - when: litestream_system_user != "root" + when: + - litestream_system_user != "root" + - litestream_create_system_user_group - name: Get binary when: diff --git a/roles/nvidia_dcgm_exporter/defaults/main.yml b/roles/nvidia_dcgm_exporter/defaults/main.yml index b9538fe..a74d863 100644 --- a/roles/nvidia_dcgm_exporter/defaults/main.yml +++ b/roles/nvidia_dcgm_exporter/defaults/main.yml @@ -17,3 +17,4 @@ nvidia_dcgm_exporter_cli_args: [] nvidia_dcgm_exporter_binary_install_dir: /usr/local/bin nvidia_dcgm_exporter_system_group: dcgmexp nvidia_dcgm_exporter_system_user: "{{ nvidia_dcgm_exporter_system_group }}" +nvidia_dcgm_exporter_create_system_user_group: true diff --git a/roles/nvidia_dcgm_exporter/meta/argument_specs.yml b/roles/nvidia_dcgm_exporter/meta/argument_specs.yml index 6896596..485d9ad 100644 --- a/roles/nvidia_dcgm_exporter/meta/argument_specs.yml +++ b/roles/nvidia_dcgm_exporter/meta/argument_specs.yml @@ -49,19 +49,24 @@ argument_specs: - I(Advanced) - Directory to install nvidia_dcgm_exporter binary default: /usr/local/bin + nvidia_dcgm_exporter_create_system_user_group: + description: + - I(Advanced) + - Create system user and group for nVIDIA DCGM exporter + default: true nvidia_dcgm_exporter_system_group: description: - I(Advanced) - - System group for batch job exporter + - System group for nVIDIA DCGM exporter default: dcgm-exp nvidia_dcgm_exporter_system_user: description: - I(Advanced) - - DCGM exporter user + - nVIDIA DCGM exporter user default: dcgm-exp nvidia_dcgm_exporter_cli_args: description: - I(Advanced) - - Additional CLI arguments that will be passed to DCGM exporter + - Additional CLI arguments that will be passed to nVIDIA DCGM exporter type: list elements: str diff --git a/roles/nvidia_dcgm_exporter/tasks/install.yml b/roles/nvidia_dcgm_exporter/tasks/install.yml index 14b2a29..cefb420 100644 --- a/roles/nvidia_dcgm_exporter/tasks/install.yml +++ b/roles/nvidia_dcgm_exporter/tasks/install.yml @@ -4,7 +4,9 @@ name: "{{ nvidia_dcgm_exporter_system_group }}" state: present system: true - when: nvidia_dcgm_exporter_system_group != "root" + when: + - nvidia_dcgm_exporter_system_group != "root" + - nvidia_dcgm_exporter_create_system_user_group - name: Create the nvidia_dcgm_exporter user ansible.builtin.user: @@ -15,7 +17,9 @@ system: true create_home: false home: / - when: nvidia_dcgm_exporter_system_user != "root" + when: + - nvidia_dcgm_exporter_system_user != "root" + - nvidia_dcgm_exporter_create_system_user_group - name: Get binary when: