|
74 | 74 | - scale_cluster_profile_name is defined and scale_cluster_profile_name != 'None'
|
75 | 75 | - scale_cluster_profile_name not in gpfs_cluster_system_profile
|
76 | 76 |
|
| 77 | +- block: |
| 78 | + - name: check | cluster profile name validation |
| 79 | + assert: |
| 80 | + that: |
| 81 | + - scale_cluster_profile_name is not match("gpfs.*") |
| 82 | + msg: >- |
| 83 | + A user-defined profile must not begin with the string 'gpfs' |
| 84 | +
|
| 85 | + - name: check | cluster profile format validation |
| 86 | + assert: |
| 87 | + that: |
| 88 | + - stat_user_profile_result.matched == 1 |
| 89 | + msg: >- |
| 90 | + A user-defined profile must have the .profile suffix |
| 91 | + delegate_to: localhost |
| 92 | + when: |
| 93 | + - scale_cluster_profile_name is defined and scale_cluster_profile_name != 'None' |
| 94 | + - scale_cluster_profile_name not in gpfs_cluster_system_profile |
| 95 | + |
| 96 | +- block: |
| 97 | + - name: cluster | Copy user defined profile |
| 98 | + copy: |
| 99 | + src: "{{ stat_user_profile_result.files.0.path }}" |
| 100 | + dest: "{{ scale_cluster_profile_system_path }}" |
| 101 | + mode: a+x |
| 102 | + when: |
| 103 | + - scale_cluster_profile_name is defined and scale_cluster_profile_name != 'None' |
| 104 | + - scale_cluster_profile_name not in gpfs_cluster_system_profile |
| 105 | + |
77 | 106 | #
|
78 | 107 | # Create new cluster
|
79 | 108 | #
|
|
89 | 118 | patterns: "{{ scale_cluster_profile_name }}.profile"
|
90 | 119 | register: stat_profile_result
|
91 | 120 |
|
92 |
| - - block: |
93 |
| - - name: check | cluster profile name validation |
94 |
| - assert: |
95 |
| - that: |
96 |
| - - scale_cluster_profile_name is not match("gpfs.*") |
97 |
| - msg: >- |
98 |
| - A user-defined profile must not begin with the string 'gpfs' |
99 |
| -
|
100 |
| - - name: check | cluster profile format validation |
101 |
| - assert: |
102 |
| - that: |
103 |
| - - stat_user_profile_result.matched == 1 |
104 |
| - msg: >- |
105 |
| - A user-defined profile must have the .profile suffix |
106 |
| -
|
107 |
| - - name: cluster | Copy user defined profile |
108 |
| - copy: |
109 |
| - src: "{{ stat_user_profile_result.files.0.path }}" |
110 |
| - dest: "{{ scale_cluster_profile_system_path }}" |
111 |
| - mode: a+x |
112 |
| - when: |
113 |
| - - scale_cluster_profile_name is defined and scale_cluster_profile_name != 'None' |
114 |
| - - scale_cluster_profile_name not in gpfs_cluster_system_profile |
115 |
| - |
116 | 121 | - name: install | Initialize gpfs profile
|
117 | 122 | set_fact:
|
118 | 123 | profile_type: ""
|
|
0 commit comments