summaryrefslogtreecommitdiff
path: root/provider_base/services/monitor.json
blob: 56ca015ba287ad676816b76f9813689c8b6f524d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "nagios": {
    "nagiosadmin_pw": "= secret :nagios_admin_password",
    "domains_internal": "= global.tags.field('domain.internal_suffix').compact.uniq",
    "hosts": "= (self.environment == 'local' ? nodes_like_me : nodes[:environment => '!local']).pick_fields('domain.internal', 'domain.full_suffix', 'ip_address', 'services', 'openvpn.gateway_address', 'ssh.port')"
  },
  "hosts": "= self.environment == 'local' ? hosts_file(nodes_like_me) : hosts_file(nodes[:environment => '!local'])",
  "ssh": {
    "monitor": {
      "username": "= Leap::Platform.monitor_username",
      "private_key": "= file(:monitor_priv_key)"
    }
  },
  "x509": {
    "use": true,
    "use_commercial": true,
    "ca_cert": "= file :ca_cert, :missing => 'provider CA. Run `leap cert ca`'",
    "client_ca_cert": "= file :client_ca_cert, :missing => 'Certificate Authority. Run `leap cert ca`'",
    "client_ca_key": "= file :client_ca_key, :missing => 'Certificate Authority. Run `leap cert ca`'"
  }
}