Giter VIP home page Giter VIP logo

puppetlabs-chronos's People

Contributors

ody avatar waynr avatar ziaunys avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppetlabs-chronos's Issues

Provider pe-gem instead of pe_gem

in file manifests/init.pp is code:

  if $manage_package_deps {
    $gem_provider = $::puppetversion ? {
      /Puppet Enterprise/ => 'pe-gem',
      default             => 'gem',
    }

But according to pe_gem module it shall be:

package { 'json':
  ensure   => present,
  provider => pe_gem,
}

So I think the line 53 shall be corrected to /Puppet Enterprise/ => 'pe_gem',

Default service provider fails in Centos 6.6

Chronos service is managed by upstart. I'd like to add option $service_provider to reflect that.

Letting puppet select the provider was failing badly on CentOS 6.6. The default provider there is service, but chronos afaik requires upstart.

I'd like to have an option to enforce the provider. I don't know how to set some non-destructive default provider (for OSes which are not using upstart).

class chronos::service {
  ...
  $service_provider = $chronos::service_provider

  service { $service_name:
    ensure => running,
    enable => true,
    provider => $service_provider,
  }

chronos_jobs always seen as changed

When I have a resource like:

chronos_job { 'nagios_chronos_check':
    ensure            => 'present',
    host              => "http://localhost:8081",
    owner             => '[email protected]',
    epsilon           => 'PT3M',
    schedule_timezone => 'UTC',
    name              => 'nagios_chronos_check',
    command           => '',
    async             => false,
    retries           => 1,
    container         => {
      forcePullImage => true,
      image          => 'platform/nagios-chronos-check:0.0.2',
      network        => 'HOST',
      volumes        => [ {
        containerPath => '/etc/localtime',
        hostPath      => '/etc/localtime',
        mode          => 'RO',
      }, {
        containerPath => '/etc/send_nsca.cfg',
        hostPath      => '/etc/send_nsca.cfg',
        mode          => 'RO',
      }, ],
    },
    require           => Package['rubygem-httparty'],
  }

puppet will always update the chronos job because it considers it differs from the one in chronos:

Notice: /Stage[main]/Profile::Mesos::Chronos/Chronos_job[nagios_chronos_check]/container: container changed {'forcePullImage' => 'true', 'image' => 'platform/nagios-chronos-check:0.0.2', 'network' => 'HOST', 'type' => 'docker', 'volumes' => [{'containerPath' => '/etc/localtime', 'hostPath' => '/etc/localtime', 'mode' => 'RO'}, {'containerPath' => '/etc/send_nsca.cfg', 'hostPath' => '/etc/send_nsca.cfg', 'mode' => 'RO'}]} to '{"forcePullImage"=>true, "image"=>"platform/nagios-chronos-check:0.0.2", "network"=>"HOST", "volumes"=>[{"containerPath"=>"/etc/localtime", "hostPath"=>"/etc/localtime", "mode"=>"RO"}, {"containerPath"=>"/etc/send_nsca.cfg", "hostPath"=>"/etc/send_nsca.cfg", "mode"=>"RO"}]}'

Any clue on how to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.