Puppet Class: appdynamics::agent::config::machine

Defined in:
manifests/agent/config/machine.pp

Overview

Class: appdynamics::agent::config::machine

Parameters:

  • agent_enable (Any)
  • agent_base (Any)
  • agent_home (Any)
  • group (Any)
  • user (Any)
  • app (Any)
  • tier (Any)
  • controller_host (Any)
  • controller_port (Any)
  • controller_ssl_enabled (Any)
  • enable_orchestration (Any)
  • account_name (Any)
  • account_access_key (Any)
  • force_agent_registration (Any)
  • node_name (Any)
  • agent_options (Any)
  • application_home (Any)


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
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
# File 'manifests/agent/config/machine.pp', line 3

class appdynamics::agent::config::machine
(
  $agent_enable,
  $agent_base,
  $agent_home,
  $group,
  $user,
  $app,
  $tier,
  $controller_host,
  $controller_port,
  $controller_ssl_enabled,
  $enable_orchestration,
  $account_name,
  $account_access_key,
  $force_agent_registration,
  $node_name,
  $agent_options,
  $application_home,
)
{
  $agent_runtime_directory = "${agent_base}/${agent_home}"

  file { $agent_home:
    ensure  => directory,
    path    => $agent_runtime_directory,
    group   => $group,
    owner   => $user,
    mode    => '0755',
    before  => Service['appdynamics-machine'],
    require => Class['appdynamics::agent::install'],
  } ->

  file { 'machine_controller-info_xml':
    path    => "${agent_runtime_directory}/conf/controller-info.xml",
    content => template('appdynamics/agent/machine/controller-info_xml.erb'),
    group   => $group,
    owner   => $user,
    mode    => '0644',
  } ->

  file { 'machine_init_script':
    path    => '/etc/init.d/appd-machineagent',
    content => template('appdynamics/agent/machine/appd_machineagent.erb'),
    group   => 'root',
    owner   => 'root',
    mode    => '0755',
  } ->

  file { 'machine_init_link':
    ensure => link,
    path   => '/etc/rc2.d/S99appdmachineagent',
    target => '../init.d/appd-machineagent',
    notify => Service['appdynamics-machine'],
  }
}