Puppet Class: r10k::mcollective::application
- Inherits:
- r10k::params
- Defined in:
- manifests/mcollective/application.pp
Overview
Install the r10k mcollective application to a client
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/mcollective/application.pp', line 2
class r10k::mcollective::application (
$agent_name = $r10k::params::mc_agent_name,
$app_name = $r10k::params::mc_app_name,
$agent_ddl = $r10k::params::mc_agent_ddl_name,
$agent_path = $r10k::params::mc_agent_path,
$app_path = $r10k::params::mc_application_path,
$mc_service = $r10k::params::mc_service_name,
) inherits r10k::params {
require r10k
File {
ensure => present,
owner => $r10k::root_user,
group => $r10k::root_group,
mode => '0644',
}
# Install the agent and its ddl file
file { 'mcollective_application_exec':
path => "${app_path}/${app_name}",
source => "puppet:///modules/${module_name}/application/${agent_name}",
}
file { 'mcollective_application_ddl':
path => "${agent_path}/${agent_ddl}",
source => "puppet:///modules/${module_name}/agent/${agent_ddl}",
}
}
|