Puppet Class: puppi::mcollective::client

Defined in:
manifests/mcollective/client.pp

Overview

Class puppi::mcollective::client

This class installs the mc puppi command for mcollective clients (Note that in mcollective terminology a client is an host from where you can manage mcollective servers)

The class installs also the puppideploy and puppicheck commands that are simple wrappers about mco puppi that correctly trap remote errors and can be used in automatic procedures or to give limited access (typically via sudo) to mc puppi commands

They can be integrated, for example, in Jenkins as remote ssh commands to manage deployments or tests

Usage:

include puppi::mcollective::client

:include:../README.mcollective



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'manifests/mcollective/client.pp', line 20

class puppi::mcollective::client {

  require puppi::params
  require puppi::mcollective::server

# OLD STYLE mc-puppi command
  file { '/usr/local/bin/mc-puppi':
    ensure  => 'present',
    mode    => '0755',
    owner   => 'root',
    group   => 'root',
    source  => 'puppet:///modules/puppi/mcollective/mc-puppi',
    require => Class['mcollective'],
    }

# mco application TODO
#  file { "${puppi::params::mcollective}/application/puppi.rb":
#    ensure  => 'present',
#    mode    => '0644',
#    owner   => 'root',
#    group   => 'root',
#    source  => 'puppet:///modules/puppi/mcollective/mcpuppi.rb',
#  }

  file { '/usr/bin/puppicheck':
    ensure => 'present',
    mode   => '0750',
    owner  => $puppi::params::mcollective_user,
    group  => $puppi::params::mcollective_group,
    source => 'puppet:///modules/puppi/mcollective/puppicheck',
  }

  file { '/usr/bin/puppideploy':
    ensure => 'present',
    mode   => '0750',
    owner  => $puppi::params::mcollective_user,
    group  => $puppi::params::mcollective_group,
    source => 'puppet:///modules/puppi/mcollective/puppideploy',
  }

}