File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
ansible/roles/compute_init Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 3
3
- name : Compute node initialisation
4
4
hosts : localhost
5
5
become : yes
6
+ # VARS TO BE SUPPLIED VIA CLOUD INIT METADATA
6
7
vars :
7
8
control_node_ip : " 172.16.1.228"
8
9
nfs_export_hosts : " /exports/hosts"
9
10
resolv_conf_nameservers : [1.1.1.1, 8.8.8.8]
10
11
11
- # block device (disk) on which to create the exported filesystem.
12
- # if the disk is not defined, formatting and mounting will not be done.
12
+
13
13
nfs_disk_location :
14
- # Path to exported filesystem mountpoint on nfs servers
15
14
nfs_export : " /exports/home"
16
- # nfs client mount options
17
15
nfs_client_mnt_options :
18
- # Path to mountpoint on nfs clients
19
16
nfs_client_mnt_point : " /home"
20
17
nfs_client_mnt_state : mounted
21
18
nfs_server : " {{ control_node_ip }}"
48
45
basic_users_groups : []
49
46
50
47
51
- # Default to 10GB
52
48
cvmfs_quota_limit_mb : 10000
53
49
cvmfs_config_default :
54
50
CVMFS_CLIENT_PROFILE : single
137
133
block :
138
134
- name : Read manila share from nfs file
139
135
slurp :
140
- src : " /mnt/cluster/ manila_share_info.yml"
136
+ src : " /mnt/manila_share_info.yml"
141
137
register : manila_share_info_file
142
138
143
139
- name : Parse and set fact for manila share info
Original file line number Diff line number Diff line change 96
96
mode : 0644
97
97
delegate_to : " {{ groups['control'] | first }}"
98
98
99
+ - name : Ensure /exports/cluster exists on control node
100
+ ansible.builtin.file :
101
+ path : /exports/cluster
102
+ state : directory
103
+ mode : ' 0755'
104
+ delegate_to : " {{ groups['control'] | first }}"
105
+
106
+ - name : Copy manila share info to /exports/cluster
107
+ copy :
108
+ content : " {{ os_manila_mount_share_info | to_nice_yaml }}"
109
+ dest : " /exports/cluster/manila_share_info.yml"
110
+ delegate_to : " {{ groups['control'] | first }}"
111
+
99
112
- name : Write openhpc munge key
100
113
copy :
101
114
content : " {{ vault_openhpc_mungekey | b64decode }}"
102
115
dest : " /exports/cluster/openhpc_munge.key"
103
116
owner : munge
104
117
group : munge
105
118
mode : 0400
106
- become : true
107
119
delegate_to : " {{ groups['control'] | first }}"
108
120
109
121
You can’t perform that action at this time.
0 commit comments