|
8 | 8 | control_node_ip: "172.16.1.228"
|
9 | 9 | resolv_conf_nameservers: [1.1.1.1, 8.8.8.8]
|
10 | 10 |
|
11 |
| - |
12 | 11 | nfs_export: "/exports/home"
|
13 | 12 | nfs_client_mnt_options:
|
14 | 13 | nfs_client_mnt_point: "/home"
|
15 | 14 | nfs_client_mnt_state: mounted
|
16 | 15 | nfs_server: "{{ control_node_ip }}"
|
17 | 16 |
|
18 |
| - |
19 |
| - os_manila_mount_shares: [] |
20 | 17 | os_manila_mount_state: mounted
|
21 | 18 | os_manila_mount_opts:
|
22 | 19 | - x-systemd.device-timeout=30
|
|
26 | 23 | - rw
|
27 | 24 | os_manila_mount_ceph_conf_path: /etc/ceph
|
28 | 25 |
|
29 |
| - |
30 | 26 | basic_users_manage_homedir: false
|
31 | 27 | basic_users_userdefaults:
|
32 | 28 | state: present
|
|
38 | 34 | - name: testuser # can't use rocky as $HOME isn't shared!
|
39 | 35 | password: "{{ test_user_password | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}" # idempotent
|
40 | 36 | uid: 1005
|
41 |
| - state: present |
42 | 37 | basic_users_groups: []
|
43 | 38 |
|
44 |
| - |
45 | 39 | openhpc_conf_server: "{{ control_node_ip }}"
|
46 | 40 |
|
47 | 41 | tasks:
|
|
114 | 108 |
|
115 | 109 | - name: Manila mount
|
116 | 110 | block:
|
117 |
| - - name: Read manila share from nfs file |
| 111 | + - name: Read manila share info from nfs file |
118 | 112 | slurp:
|
119 | 113 | src: "/mnt/cluster/manila_share_info.yml"
|
120 | 114 | register: manila_share_info_file
|
| 115 | + no_log: true |
121 | 116 |
|
122 | 117 | - name: Parse and set fact for manila share info
|
123 | 118 | set_fact:
|
124 | 119 | os_manila_mount_share_info: "{{ manila_share_info_file.content | b64decode | from_yaml }}"
|
125 | 120 |
|
| 121 | + - name: Read manila shares from nfs file |
| 122 | + slurp: |
| 123 | + src: "/mnt/cluster/manila_shares.yml" |
| 124 | + register: manila_shares_file |
| 125 | + |
| 126 | + - name: Parse and set fact for manila shares |
| 127 | + set_fact: |
| 128 | + os_manila_mount_shares: "{{ manila_shares_file.content | b64decode | from_yaml }}" |
| 129 | + |
126 | 130 | - name: Ensure Ceph configuration directory exists
|
127 | 131 | ansible.builtin.file:
|
128 | 132 | path: "{{ os_manila_mount_ceph_conf_path }}"
|
|
0 commit comments