BnR Test NFS server conectivity & ubi-minimal container image
When ReaR is configure there is no validation on the NFS server, this patch adds a simple ping test validation to the NFS server. The NFS ping test can be disabled with a variable. This patch also switches from centos-8 to ubi-minimal container. Change-Id: Ibbf7ba3435da8dc9218403df76f0eb86df4374db
This commit is contained in:
parent
53b40ecbfc
commit
64932f1bca
|
@ -75,3 +75,6 @@ tripleo_backup_and_restore_firewalld_zone: "libvirt"
|
||||||
|
|
||||||
# The ReaR rpm installs a cronjob at 1:30 each day by default. This variable deactivate that behaviour.
|
# The ReaR rpm installs a cronjob at 1:30 each day by default. This variable deactivate that behaviour.
|
||||||
tripleo_backup_and_restore_remove_default_cronjob: true
|
tripleo_backup_and_restore_remove_default_cronjob: true
|
||||||
|
|
||||||
|
# Skip the ping test to the NFS server on rear setup
|
||||||
|
tripleo_backup_and_restore_skip_nfs_test: false
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- role: backup_and_restore
|
- role: backup_and_restore
|
||||||
tripleo_backup_and_restore_nfs_server: undercloud
|
tripleo_backup_and_restore_nfs_server: localhost
|
||||||
tripleo_backup_and_restore_rear_simulate: true
|
tripleo_backup_and_restore_rear_simulate: true
|
||||||
tripleo_backup_and_restore_service_manager: false
|
tripleo_backup_and_restore_service_manager: false
|
||||||
tripleo_backup_and_restore_hiera_config_file: "{{ ansible_user_dir }}/hiera.yaml"
|
tripleo_backup_and_restore_hiera_config_file: "{{ ansible_user_dir }}/hiera.yaml"
|
||||||
|
|
|
@ -83,13 +83,13 @@
|
||||||
podman_image:
|
podman_image:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- centos:8
|
- registry.access.redhat.com/ubi8/ubi-minimal
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
- name: Create a data container
|
- name: Create a data container
|
||||||
podman_container:
|
podman_container:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
image: centos:8
|
image: ubi-minimal
|
||||||
state: started
|
state: started
|
||||||
command: sleep 1d
|
command: sleep 1d
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -86,6 +86,12 @@
|
||||||
tags:
|
tags:
|
||||||
- bar_setup_rear
|
- bar_setup_rear
|
||||||
|
|
||||||
|
- name: Check NFS server IP
|
||||||
|
command: ping -c 1 '{{ tripleo_backup_and_restore_nfs_server }}'
|
||||||
|
when: not (tripleo_backup_and_restore_skip_nfs_test | bool)
|
||||||
|
tags:
|
||||||
|
- bar_setup_rear
|
||||||
|
|
||||||
- name: Generate ReaR config file
|
- name: Generate ReaR config file
|
||||||
become: true
|
become: true
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in New Issue