-
Notifications
You must be signed in to change notification settings - Fork 0
/
houdini_unit_test.yaml
46 lines (34 loc) · 1.42 KB
/
houdini_unit_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
### HOUDINI UNIT TEST ###
- hosts: "{{ variable_host | default('role_node_centos') }}"
remote_user: "{{ variable_connect_as_user | default('centos') }}"
gather_facts: "{{ variable_gather_facts | default('false') }}"
become: true
vars:
# the become sudo pass is only relevent for local installation if required on the host specified.
ansible_become_pass: "{{ user_deadlineuser_pw }}"
variable_user: "{{ ansible_user }}"
bastionip: "{{ groups['bastionip'][0] }}"
# whether to execute the unit test. False will just copy the file.
execute: true
# run on boot to test startup latency.
run_on_boot: false
skip_packages: false
houdini_install_type: 'node'
vars_files_locs: [ "/{{ secrets_path }}/overrides/ansible/collections/ansible_collections/firehawkvfx/houdini/vars/main.yml", "{{ playbook_dir }}/vars/main.yml" ] # The first file found will be used, allowing the one in your secrets location to override defaults.
vars_files:
- /deployuser/ansible/group_vars/all/vars
pre_tasks:
- name: aquire vars from secrets path before using defaults
include_vars: "{{ item }}"
with_first_found: "{{ vars_files_locs }}"
tags:
- always
- name: test
debug:
msg: 'test a houdini submission to ensure houdini and deadline work'
tags:
- always
roles:
- role: houdini_openfirehawk_houdini_tools_sync
- role: houdini_unit_test
- role: cleanup