---
name: cni-flannel

templates:
  pre-start.erb: bin/pre-start
  flanneld_ctl.erb: bin/flanneld_ctl
  30-cni-wrapper-plugin.conf.erb: config/cni/30-cni-wrapper-plugin.conf
  flannel-watchdog_ctl.erb: bin/flannel-watchdog_ctl
  flannel-watchdog_as_vcap.erb: bin/flannel-watchdog_as_vcap
  flannel-watchdog.json.erb: config/flannel-watchdog.json
  etcd_ca.crt.erb: config/certs/etcd/ca.crt
  etcd_client.crt.erb: config/certs/etcd/client.crt
  etcd_client.key.erb: config/certs/etcd/client.key

packages:
  - flannel
  - runc-cni
  - flannel-watchdog

properties:
  cf_networking.plugin.etcd_endpoints:
    description: "List of etcd endpoints"
    default: []

  cf_networking.plugin.etcd_ca_cert:
    description: "PEM encoded CA cert"
    default: ""

  cf_networking.plugin.etcd_client_cert:
    description: "PEM encoded client cert"
    default: ""

  cf_networking.plugin.etcd_client_key:
    description: "PEM encoded client key"
    default: ""

  cf_networking.network:
    description: "CIDR block for overlay network."
    default: "10.255.0.0/16"

  cf_networking.subnet_prefix_length:
    description: "Length, in bits, of the prefix for subnets allocated per Diego cell, e.g. '24' for a '/24' subnet."
    default: 24

  cf_networking.mtu:
    description: "MTU for containers"
    default: 0

  cf_networking.disable:
    description: "Disable container to container networking"
    default: false

  cf_networking.flannel_watchdog.metron_address:
    description: "Forward metrics to this metron agent"
    default: 127.0.0.1:3457
