Browse Source

BnR Added a nfs validation when the nfs server is installed

Added a simple validation, the Backupnode group needs to be configured. Besides the name
of the group can be configured by parameter.

Change-Id: Ie0e3f25976464121e27f73765ccd271557d60e96
changes/57/790057/5
Juan Badia Payno 3 months ago
parent
commit
994d331095
  1. 12
      tripleo_ansible/playbooks/prepare-nfs-backup.yaml

12
tripleo_ansible/playbooks/prepare-nfs-backup.yaml

@ -13,8 +13,18 @@
# License for the specific language governing permissions and limitations
# under the License.
- name: Check BackupNode group
hosts: localhost
tasks:
- assert:
that:
- nfs_server_group_name | default("BackupNode") in groups
- ( groups[nfs_server_group_name | default("BackupNode") ] | length ) > 0
fail_msg: "There is no server on {{ nfs_server_group_name | default('BackupNode') }} groups"
tags: bar_setup_nfs_server
- name: TripleO BackupNode NFS installation and configuration.
hosts: BackupNode
hosts: '{{ nfs_server_group_name | default("BackupNode") }}'
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
become: true
roles:

Loading…
Cancel
Save