#  Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
---

# Usage : test_infiniband_config.yml
ib_inventory_name: "infiniband_inventory"
template_value: 'infiniband_template'
ib_host_name: 100.96.28.140
job_name: "test_infiniband_template"
ib_playbook_path: "control_plane/infiniband.yml"
success_message: "Execution Successful"
fail_case: "Failed. please check input parameters and try again!"
awx_script_path: "test_prepare.yml"
ib_vars_dir: ../input_params/ib_vars.yml
ib_vars_backup_dir: ib_vars_backup.yml
inventory_dir: test_ib_inventory
ib_mtu_path: test_ib_mtu.yml
login_vars_path: "../input_params/login_vars.yml"
login_vars_vault_path: "../input_params/.login_vault_key"
tower_config_file_path: "../roles/webui_awx/files/.tower_cli.cfg"
tower_vault_file_path: "../roles/webui_awx/files/.tower_vault_key"
file_perm: '0644'

# Usage: test_ib_mtu.yml
username: admin
password: admin
var_check: '"MTU": "2048"'

# Usage: test_infiniband_facts.yml
fact_template_value: 'infiniband_template'
fact_job_name: 'test_ib_fact_job'
ib_facts_playbook_path: "control_plane/tools/ib_facts.yml"
test_infiniband_vars_dir: "test_vars/test_infiniband_vars.yml"
random_ip: 100.100.100.100
invalid_username: 'invalid_username'

# Usage: test_infiniband_facts.yml
validation_port: 1/5
port_num: 5
search_line: "  ib 1/6:"
line_to_add: '      - "mtu 2K"'
time_to_pause: 2
line_to_search: "^(.*)port 8"
ib_success_msg: "successful"
ib_fail_msg: "failed"