mesosdns

Puppet module for mesos-dns - An DNS-based service discovery for Mesos.

intelliAd Media GmbH

intelliad

11,635 downloads

5,719 latest version

4.3 quality score

Version information

  • 0.1.4 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Jan 11th 2017
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >=3.4.0 <5.0.0
  • Ubuntu

Start using this module

Documentation

intelliad/mesosdns — version 0.1.4 Jan 11th 2017

Mesos-DNS Puppet Module

Puppet Forge Puppet Forge score Build Status

Manage Mesos-DNS - An DNS-based service discovery for Mesos.

Usage

Example with default config and master is set via zookeeper url

class{'mesosdns':
    mesos_zk => 'zk://localhost:2181/mesos',
}

Example with default config and master is set via mesos master address

class{'mesosdns':
  mesos_master => ['localhost:5050'],
}

Its also possible to set both mesos master and zookeeper, mesos-dns uses both.

class{'mesosdns':
  mesos_zk => 'zk://localhost:2181/mesos',
  mesos_master => ['localhost:5050'],
}

Class ::mesosdns Parameters

Required Parameters

  • mesos_zk - Zookeeper url of mesos
  • mesos_master - or/and array of mesos masters - host:port

Optional Parameters

  • ensure - present to install and configure mesos-dns or absent to remove all

  • version - download and install an specific release from GitHub

  • source - Download URL (erb template) to use, can be used to specify an custom url for the final binary

  • install_path - Install and downloads the binary to this path

  • config_path - config.json will be placed here

  • service_status - Status of the configured services.

    • Valid values are 'enabled', 'disabled', 'running' and 'unmanaged',
    • Defaults to enabled
  • service_restart - Should service be restarted on config changes

    • Boolean
    • Defaults to true
  • service_provider - Set an specific service provider

    • Currently implemented upstart and systemd
    • Default is got by puppet stdlib fact $::service_provider and depence on the running OS

Mesos-DNS Configuration Parameters

For further details have a look on Mesos-DNS configuration documentation. For default values have a look on mesosdns::init

  • zk_detection_timeout -> zkDetectionTimeout - Integer
  • refresh_seconds -> refreshSeconds - Integer
  • state_timeout_seconds -> stateTimeoutSeconds - Integer
  • ttl -> ttl - Integer
  • domain -> domain - String
  • port -> port - Integer
  • resolvers -> resolvers - Array of Strings
  • timeout -> timeout - Integer
  • listener -> listener - String (IP)
  • dns_on -> dnson - Boolean
  • http_on -> httpon - Boolean
  • http_port -> httpport - Integer
  • external_on -> externalon - Boolean
  • soa_mname -> SOAMname - String
  • soa_rname -> SOARname - String
  • soa_refresh -> SOARefresh - Integer
  • soa_retry -> SOARetry - Integer
  • soa_expire -> SOAExpire - Integer
  • soa_minttl -> SOAMinttl - Integer
  • recurse_on -> recurseon - Boolean
  • enforce_rfc952 -> enforceRFC952 - Boolean
  • ip_sources -> IPSources - Array of Strings

Requirements

  • Puppet > 3.0 and < 5.0

Dependencies

  • stdlib version >= 4.10.0 - we need fact service_provider and some validiation functions
  • archive version >= 0.4.0 - is required to download binary

Limitations

This module should work out of the box with all Linux systems which has service provider upstart or systemd (detected by stdlib facter)

Links

For more information see Mesos-DNS project

License

Apache License 2.0

Contributors