Puppet Class: appdynamics::agent::config::db

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

Overview

Class: appdynamics::agent::config::db

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/db.pp', line 3

class appdynamics::agent::config::db
(
  $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-db'],
    require =>  Class['appdynamics::agent::install'],
  } ->

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

  file { 'database_init_script':
    path    =>  '/etc/init.d/appd-dbagent',
    content =>  template('appdynamics/agent/db/appd_dbagent.erb'),
    group   =>  'root',
    owner   =>  'root',
    mode    =>  '0755',
  } ->

  file { 'database_init_link':
    ensure =>  link,
    path   =>  '/etc/rc2.d/S99appddbagent',
    target =>  '../init.d/appd-dbagent',
    notify =>  Service['appdynamics-db'],
  }
}