---
openshift_master_ca_cert: "/etc/origin/master/ca.crt"
openshift_master_ca_key: "/etc/origin/master/ca.key"
openshift_master_ca_serial: "/etc/origin/master/ca.serial.txt"
ca_cert: "/etc/origin/master/ca.crt"
admin_config: "{{ openshift.common.config_base }}/master/admin.kubeconfig"
cert_output_dir: /usr/share/nuage-openshift-monitor
kube_config: /usr/share/nuage-openshift-monitor/nuage.kubeconfig
kubemon_yaml: /usr/share/nuage-openshift-monitor/nuage-openshift-monitor.yaml
master_config_yaml: "/etc/origin/master/master-config.yaml"
nuage_mon_rest_server_url: "0.0.0.0:{{ nuage_mon_rest_server_port }}"
nuage_mon_rest_server_logdir: "{{ nuage_openshift_monitor_log_dir | default('/var/log/nuage-openshift-monitor') }}"
nuage_mon_log_level: "{{ nuage_openshift_monitor_log_level | default('3') }}"

nuage_mon_rest_server_crt_dir: "{{ nuage_ca_master_crt_dir }}/{{ ansible_nodename }}"
nuage_ca_master_rest_server_key: "{{ nuage_mon_rest_server_crt_dir }}/nuageMonServer.key"
nuage_ca_master_rest_server_crt: "{{ nuage_mon_rest_server_crt_dir }}/nuageMonServer.crt"

nuage_mon_rest_server_host: "{{ openshift.master.cluster_hostname | default(openshift.common.hostname) }}"

nuage_master_crt_dir: /usr/share/nuage-openshift-monitor
nuage_service_account: system:serviceaccount:default:nuage

nuage_master_config_dsets_mount_dir: /usr/share/
nuage_node_config_dsets_mount_dir: /usr/share/
nuage_cni_bin_dsets_mount_dir: /opt/cni/bin
nuage_cni_netconf_dsets_mount_dir: /etc/cni/net.d
nuage_vrs_mount_dir: /tmp
nuage_monitor_container_image_version: "{{ nuage_monitor_image_version | default('latest') }}"
nuage_vrs_container_image_version: "{{ nuage_vrs_image_version | default('latest') }}"
nuage_cni_container_image_version: "{{ nuage_cni_image_version | default('latest') }}"
nuage_infra_container_image_version: "{{ nuage_infra_image_version | default('latest') }}"
nuage_strongswan_container_image_version: "{{ nuage_strongswan_image_version | default('latest') }}"
api_server_url: "{{ hostvars[groups.oo_first_master.0].openshift.master.api_url }}"
nuage_vport_mtu: "{{ nuage_interface_mtu | default('1460') }}"
master_host_type: "{{ master_base_host_type | default('is_rhel_server') }}"
slave_host_type: "{{ slave_base_host_type | default('is_rhel_server') }}"
svc_ipv4_subnet: "{{ openshift_portal_net.split('/')[0] | default('172.30.0.0') }}"
svc_ipv4_subnet_mask: "{{ openshift_portal_net.split('/')[1] | default('16') }}"
pod_network_subnet: "{{ osm_cluster_network_cidr.split('/')[0] | default('70.70.0.0') }}"
pod_network_subnet_mask: "{{ osm_cluster_network_cidr.split('/')[1] | default('16') }}"
nw_uplink_intf: "{{ uplink_interface | default('eth0') }}"
nuage_vsc_active_ip: "{{ vsc_active_ip | default('') }}"
nuage_vsc_standby_ip: "{{ vsc_standby_ip | default('') }}"
nuage_bgp_config: "{{ nuage_bgp | default('disable') }}"
nuage_etcd_cert_prefix: "nuage-etcd-"

nuage_tasks:
- resource_kind: cluster-role
  resource_name: cluster-reader
  user: "{{ nuage_service_account }}"
