Skip to content

Commit a1f71b6

Browse files
committed
remove or hardcode some vars, make resolv_conf block conditional
1 parent a32e309 commit a1f71b6

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
resolv_conf_nameservers: [1.1.1.1, 8.8.8.8]
1010

1111

12-
nfs_disk_location:
1312
nfs_export: "/exports/home"
1413
nfs_client_mnt_options:
1514
nfs_client_mnt_point: "/home"
@@ -25,7 +24,6 @@
2524
- noatime
2625
- _netdev # prevents mount blocking early boot before networking available
2726
- rw
28-
os_manila_mount_share_info: [] # populated by lookup mode
2927
os_manila_mount_ceph_conf_path: /etc/ceph
3028

3129

@@ -52,13 +50,6 @@
5250
cvmfs_config: "{{ cvmfs_config_default | combine(cvmfs_config_overrides) }}"
5351

5452
openhpc_conf_server: "{{ control_node_ip }}"
55-
openhpc_slurm_service_enabled: true
56-
openhpc_slurm_service_started: "{{ openhpc_slurm_service_enabled }}"
57-
openhpc_enable:
58-
control: false
59-
batch: true
60-
database: false
61-
runtime: true
6253

6354
tasks:
6455
- name: Configure resolve.conf
@@ -85,6 +76,7 @@
8576
name: NetworkManager
8677
state: reloaded
8778
when: _copy_nm_config.changed | default(false)
79+
when: resolv_conf_nameservers is defined and resolv_conf_nameservers | length > 0
8880

8981

9082
- name: Mount /mnt/cluster on compute nodes and copy hosts to /etc/hosts
@@ -295,12 +287,11 @@
295287
- name: Configure Munge service
296288
service:
297289
name: munge
298-
enabled: "{{ openhpc_slurm_service_enabled | bool }}"
299-
state: "{{ 'started' if openhpc_slurm_service_started | bool else 'stopped' }}"
290+
enabled: true
291+
state: started
300292

301293
- name: Ensure slurmd state
302294
service:
303295
name: slurmd
304-
enabled: "{{ openhpc_slurm_service_enabled | bool }}"
305-
state: "{{ 'started' if openhpc_slurm_service_started | bool else 'stopped' }}"
306-
when: openhpc_enable.batch | default(false) | bool
296+
enabled: true
297+
state: started

ansible/roles/compute_init/tasks/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
- ../../resolv_conf/templates/resolv.conf.j2
2525
- ../../stackhpc.os-manila-mount/templates/ceph.conf.j2
2626
- ../../stackhpc.os-manila-mount/templates/ceph.keyring.j2
27-
- ../../stackhpc.openhpc/templates/gres.conf.j2
2827

2928
- name: Inject files
3029
copy:

0 commit comments

Comments
 (0)