# Copyright 2022 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: pre-requisites.yml
control_plane_installation_required: "AWX and grafana installation through control_plane.yml is mandatory for telemetry.yml"

base_vars_file: "{{ role_path }}/../../input_params/base_vars.yml"
login_vars_file: "{{ role_path }}/../../input_params/login_vars.yml"
ctrl_plane_login_vars_filename: "{{ role_path }}/../../../control_plane/input_params/login_vars.yml"

fail_msg_base_vars: "telemetry/base_vars.yml file doesn't exist."
fail_msg_login_vars: "telemetry/login_vars.yml file doesn't exist."
ctrl_plane_fail_msg_login_vars: "control_plane/login_vars.yml file doesn't exist"
pip_packages:
  - openshift
  - omsdk
  - PyMySQL
mysqldb_collection_name: community.mysql:3.1.0

#Usage: validate_base_vars.yml
folder_perm: '644'
vault_file_perm: '0644'

idrac_telemetry_support_success_msg: "idrac_telemetry_support validated"
idrac_telemetry_support_fail_msg: "Failed. idrac_telemetry_support only accepts boolean
                                    values true or false"

slurm_telemetry_support_success_msg: "slurm_telemetry_support validated"
slurm_telemetry_support_fail_msg: "Failed. slurm_telemetry_support only accepts boolean
                                    values true or false"

slurm_telemetry_idrac_support_success_msg: "slurm and idrac telemetry are supported"
slurm_telemetry_idrac_support_fail_msg: "slurm telemetry is supported only when
                                      idrac_telemetry_support is true"

timescaledb_success_msg: "Timescale DB name validated successfully"
timescaledb_fail_msg: "Timescale DB name should have minimum length of 2"

mysqldb_success_msg: "MySQL DB name validated successfully"
mysqldb_fail_msg: "MySQL DB name should have minimum length of 2"

# Usage: validate_login_vars.yml
vault_filename: "{{ role_path }}/../../input_params/.login_vault_key"
login_vars_fail_msg: "Usernames and passwords in input_params/login_vars.yml should have minimum length 2"

ctrl_plane_login_vault_filename: "{{ role_path }}/../../../control_plane/input_params/.login_vault_key"
min_length_grafana: 5
max_length: 30
ctrl_plane_login_vars_fail_msg: "Incorrect grafana_username or grafana_password format provided
                                  in control_plane/login_vars.yml"

# Usage: k8s_secrets.yml
namespace: telemetry-and-visualizations

secrets_name: credentials