File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 3939 state : latest
4040 when : slurm_with_accounting
4141
42- # Create slurmrestd system user/group to run slurmrestd with unprivileged user
43- # when using TCP/IP socket (ie. not unix socket).
44- - name : Create slurmrestd system group
45- ansible.builtin.group :
46- name : slurmrestd
47- gid : " {{ slurmrestd_gid }}"
48- when : slurm_with_jwt
49-
50- - name : Create slurmrest system user
51- ansible.builtin.user :
52- name : slurmrestd
53- uid : " {{ slurmrestd_uid }}"
54- group : slurmrestd
55- system : yes
56- shell : /sbin/nologin
57- home : /var/spool/slurmrest
58- create_home : no
59- when : slurm_with_jwt
60-
6142- name : Install slurmrestd
6243 ansible.builtin.package :
6344 name : " {{ slurm_emulator | ternary(slurm_emulator_server_packages, slurm_restd_packages) }}"
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RuntimeDirectoryMode=0755
1616ExecStart=/usr/sbin/slurmrestd $SLURMRESTD_OPTIONS {% if not slurm_with_accounting %} -s openapi/slurmctld {% endif %} -a {% if slurm_with_jwt %} rest_auth/jwt{% else %} rest_auth/local{% endif %} [::]:{{ slurm_restd_port }}
1717{% endif %}
1818{% if slurm_with_jwt %}
19+ DynamicUser=yes
1920User=slurmrestd
2021Group=slurmrestd
2122{% else %}
You can’t perform that action at this time.
0 commit comments