# SPDX-License-Identifier: MIT
---
mssql_accept_microsoft_odbc_driver_for_sql_server_eula: false
mssql_accept_microsoft_cli_utilities_for_sql_server_eula: false
mssql_accept_microsoft_sql_server_standard_eula: false
mssql_version: null
mssql_upgrade: false
mssql_password: null
mssql_edition: null
mssql_tools_versions: [18]
mssql_tcp_port: 1433
mssql_manage_firewall: false
mssql_ip_address: null
mssql_enable_sql_agent: null
mssql_install_fts: null
mssql_install_powershell: null
mssql_tune_for_fua_storage: null
mssql_datadir: null
mssql_datadir_mode: '755'
mssql_logdir: null
mssql_logdir_mode: '755'

mssql_pre_input_sql_file: []
mssql_post_input_sql_file: []
mssql_pre_input_sql_content: []
mssql_post_input_sql_content: []
mssql_debug: false

mssql_tls_enable: null
mssql_tls_cert: null
mssql_tls_private_key: null
mssql_tls_force: false
mssql_tls_version: 1.2
mssql_tls_remote_src: false
mssql_tls_certificates: []
mssql_tls_self_sign: false

mssql_rpm_key: https://packages.microsoft.com/keys/microsoft.asc
mssql_server_repository: "{{ __mssql_server_repository }}"
mssql_client_repository: "{{ __mssql_client_repository }}"

mssql_ha_configure: false
mssql_ha_ag_cluster_type: external
# mssql_ha_replica_type must be set per host in inventory. Setting it hear to
# avoid "variable not defined" error in Ansible
mssql_ha_replica_type: null
mssql_ha_endpoint_port: 5022
mssql_ha_cert_name: null
mssql_ha_private_key_password: null
mssql_ha_master_key_password: null
mssql_ha_reset_cert: false
mssql_ha_endpoint_name: null
mssql_ha_ag_name: null
mssql_ha_db_names: []
mssql_ha_ag_is_contained: false
# if mssql_ha_ag_is_contained=false, mssql_ha_ag_reuse_system_db will be false
mssql_ha_ag_reuse_system_db: false
mssql_ha_ag_secondary_role_allow_connections: null
mssql_ha_ag_read_only_routing_list: null

mssql_ha_prep_for_pacemaker: "{{ mssql_ha_ag_cluster_type | lower != 'none' }}"
mssql_ha_virtual_ip: null
mssql_ha_login: null
mssql_ha_login_password: null
mssql_manage_ha_cluster: false

mssql_ad_configure: false
mssql_ad_join: true
mssql_ad_sql_user: null
mssql_ad_sql_password: null
# Default to CN={{ mssql_ad_sql_user }},CN=Users,DC=DOMAIN,DC=SUBDOMAIN...
mssql_ad_sql_user_dn: >-
  CN={{ mssql_ad_sql_user }},
  CN=Users,
  {{ ad_integration_realm.split(".")
  | map("regex_replace", "^", "DC=")
  | join(",") }}
mssql_ad_keytab_file: null
mssql_ad_keytab_remote_src: false
mssql_ad_kerberos_user: >-
  {{ ad_integration_user if ad_integration_user is defined
  else mssql_ad_sql_user }}
mssql_ad_kerberos_password: >-
  {{ ad_integration_password if ad_integration_user is defined
  else mssql_ad_sql_password }}

mssql_run_selinux_confined: "{{ __mssql_confined_supported | d(false) }}"
mssql_manage_selinux: false
