Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

chronos_jobs always seen as changed #20

Open
zipkidje opened this issue Mar 23, 2017 · 0 comments
Open

chronos_jobs always seen as changed #20

zipkidje opened this issue Mar 23, 2017 · 0 comments

Comments

@zipkidje
Copy link

zipkidje commented Mar 23, 2017

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant