# Configure the agent backend # Enable this pluging by adding these line to local.conf: # # DESIGNATE_BACKEND_DRIVER=agent # DESIGNATE_AGENT_BACKEND_DRIVER=msdns # Dependencies: # ``functions`` file # ``designate`` configuration # install_designate_agent_backend - install any external requirements # configure_designate_agent_backend - make configuration changes, including those to other services # init_designate_agent_backend - initialize databases, etc. # start_designate_agent_backend - start any external services # stop_designate_agent_backend - stop any external services # cleanup_designate_agent_backend - remove transient data and cache # Save trace setting DP_AGENT_MSDNS_XTRACE=$(set +o | grep xtrace) set +o xtrace # Defaults # -------- DESIGNATE_MSDNS_MASTERS=${DESIGNATE_MSDNS_MASTERS:-"$DESIGNATE_SERVICE_HOST:$DESIGNATE_SERVICE_PORT_MDNS"} DESIGNATE_MSDNS_HOST_IP=${DESIGNATE_MSDNS_HOST_IP:-} DESIGNATE_MSDNS_HOST_PORT=${DESIGNATE_MSDNS_HOST_PORT:-} # Sanity Checks # ------------- if [ -z "$DESIGNATE_MSDNS_MASTERS" ]; then die $LINENO "You must configure DESIGNATE_MSDNS_MASTERS" fi if [ -z "$DESIGNATE_MSDNS_HOST_IP" ]; then die $LINENO "You must configure DESIGNATE_MSDNS_HOST_IP with the IP of the MS DNS host" fi if [ -z "$DESIGNATE_MSDNS_HOST_PORT" ]; then die $LINENO "You must configure DESIGNATE_MSDNS_HOST_PORT with the PORT of the MS DNS host" fi if [ "$DESIGNATE_SERVICE_PORT_MDNS" != "53" ]; then die $LINENO "Microsoft DNS requires DESIGNATE_SERVICE_PORT_MDNS to be set to '53'" fi # Entry Points # ------------ # install_designate_agent_backend - install any external requirements function install_designate_agent_backend { : } # configure_designate_agent_backend - make configuration changes, including those to other services function configure_designate_agent_backend { # Generate Designate pool.yaml file sudo tee $DESIGNATE_CONF_DIR/pools.yaml > /dev/null <