Forge Home

chronos

Installs and configures chronos framework

12,626 downloads

9,808 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.5.0 (latest)
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.0
released Apr 12th 2016
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ottode-chronos', '0.5.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ottode-chronos
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ottode-chronos --version 0.5.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

ottode/chronos — version 0.5.0 Apr 12th 2016

Chronos Puppet Module

Puppet
Forge Build Status

Installs and configures the mesos framework chronos. It plays well with deric/mesos puppet module.

Usage

Install and configure chronos to connect to 3 zookeeper hosts. Make sure that libmesos.so is installed with the mesos package.

class { '::chronos':
  zk_nodes => [
                'zk-host-01:2181',
                'zk-host-02:2181',
                'zk-host-03:2181',
              ],
  require  => Package['mesos'], # require libmesos.so installed
}

Parameters

  • zk_nodes - array of zookeeper hosts - mandatory
  • zk_path_mesos - zookeeper path for finding mesos master, usually /mesos
  • zk_path_chronos - zookeeper path for storing chronos state
  • package - chronos package name
  • version - install specific version of chronos
  • enable_service - enable chronos service
  • options - additional command line options
  • java_home - set JAVA_HOME
  • run_as_user - run service under specified user
  • secret - secret for connecting to mesos

All of these parameters could be handled by hiera:

chronos::zk_nodes:
  - 'zk-host-01:2181'
  - 'zk-host-02:2181'
  - 'zk-host-03:2181'
chronos::zk_path_chronos: '/my/chronos'

Jobs

You can configure chronos jobs by including a chronos::job resource:

chronos_job{'my-job':
  chronos_url => 'http://localhost:8080',
  content => '{ "name": "my-job", "command": "echo hey!", ... }',
}

Delete the same job by including:

chronos_job{'my-job':
  ensure  => absent,
  chronos_url => 'http://localhost:8080',
  content => '{ "name": "my-job" }',
}

Packages

You can build package by yourself and upload package to your software repository. Or use packages from mesosphere.io:

Requirements

  • Puppet > 3.0 and < 5.0
  • RHEL 7 or CentOS 7

Dependencies

Chronos needs libmesos.so file installed to run. This file is not installed by this module. Use deric/mesos to install mesos binaries.

Additional dependencies:

Installation

Preferred installation is via puppet-librarian just add to Puppetfile:

mod 'ottode/chronos', '>= 0.1.0'

for latest version from git:

mod 'ottode/chronos', :git => 'git://github.com/otto-de/puppet-chronos.git'

Links

For more information see chronos project

License

Apache License 2.0

Contributors

Alphabetical list of contributors (not necessarily up-to-date), generated by command git log --format='%aN' | sort -u | sed -e 's/^/\- /':

  • as0bu
  • Felix Bechstein
  • Florian Sellmayr