dev/provisioning/modules/puppi/manifests/mcollective/server.pp
author ymh <ymh.work@gmail.com>
Thu, 03 Nov 2016 09:44:11 +0100
changeset 390 f4fed295115b
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
put virtualenv activation during build in comment. That means that for the moment the build machine must be provisionned beforehand, or ansible must be available globally

# = Class puppi::mcollective::server
#
# This class installs the puppi agent on mcollective servers
# (Note that in mcollective terminology a server is an host
# managed by a mcollective client)
#
# == Usage:
# include puppi::mcollective::server
#
# :include:../README.mcollective
#
class puppi::mcollective::server {

  require puppi::params

  file { "${puppi::params::mcollective}/agent/puppi.ddl":
    ensure  => 'present',
    mode    => '0644',
    owner   => 'root',
    group   => 'root',
    source  => 'puppet:///modules/puppi/mcollective/puppi.ddl',
    require => Class['mcollective'],
  }

  file { "${puppi::params::mcollective}/agent/puppi.rb":
    ensure  => 'present',
    mode    => '0644',
    owner   => 'root',
    group   => 'root',
    source  => 'puppet:///modules/puppi/mcollective/puppi.rb',
    require => Class['mcollective'],
  }

}