Browse Source

Update validation path with the share/ansible one

Depends-On: https://review.opendev.org/#/c/747761/
Change-Id: Ib612436e6c934fecee58137ed660a43dc5656ced
changes/64/747764/2
Mathieu Bultel 1 year ago
parent
commit
f22d380319
  1. 4
      roles/validations/defaults/main.yaml
  2. 4
      validations_libs/constants.py

4
roles/validations/defaults/main.yaml

@ -1,7 +1,7 @@
log_dir: "{{ ansible_user_dir }}/logs"
zuul_work_virtualenv: "{{ ansible_user_dir }}/.venv"
ansible_dir: "{{ zuul_work_virtualenv }}/share/validations-common"
validation_dir: "{{ zuul_work_virtualenv }}/share/validations-common/playbooks"
ansible_dir: "{{ zuul_work_virtualenv }}/share/ansible"
validation_dir: "{{ zuul_work_virtualenv }}/share/ansible/validation-playbooks"
vf_log_dir: "/var/log/validations"
val_exec: "source {{ zuul_work_virtualenv }}/bin/activate; validation.py"
command:

4
validations_libs/constants.py

@ -12,9 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
#
DEFAULT_VALIDATIONS_BASEDIR = '/usr/share/validations-common'
DEFAULT_VALIDATIONS_BASEDIR = '/usr/share/ansible/'
ANSIBLE_VALIDATION_DIR = '/usr/share/validations-common/playbooks'
ANSIBLE_VALIDATION_DIR = '/usr/share/ansible/validation-playbooks'
VALIDATION_GROUPS_INFO = '%s/groups.yaml' % DEFAULT_VALIDATIONS_BASEDIR

Loading…
Cancel
Save