dev/provisioning/modules/puppi/manifests/mcollective/server.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 # = Class puppi::mcollective::server
       
     2 #
       
     3 # This class installs the puppi agent on mcollective servers
       
     4 # (Note that in mcollective terminology a server is an host
       
     5 # managed by a mcollective client)
       
     6 #
       
     7 # == Usage:
       
     8 # include puppi::mcollective::server
       
     9 #
       
    10 # :include:../README.mcollective
       
    11 #
       
    12 class puppi::mcollective::server {
       
    13 
       
    14   require puppi::params
       
    15 
       
    16   file { "${puppi::params::mcollective}/agent/puppi.ddl":
       
    17     ensure  => 'present',
       
    18     mode    => '0644',
       
    19     owner   => 'root',
       
    20     group   => 'root',
       
    21     source  => 'puppet:///modules/puppi/mcollective/puppi.ddl',
       
    22     require => Class['mcollective'],
       
    23   }
       
    24 
       
    25   file { "${puppi::params::mcollective}/agent/puppi.rb":
       
    26     ensure  => 'present',
       
    27     mode    => '0644',
       
    28     owner   => 'root',
       
    29     group   => 'root',
       
    30     source  => 'puppet:///modules/puppi/mcollective/puppi.rb',
       
    31     require => Class['mcollective'],
       
    32   }
       
    33 
       
    34 }