Puppet Class: mha::node::install

Defined in:
manifests/node/install.pp

Overview



1
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
# File 'manifests/node/install.pp', line 1

class mha::node::install {

  $version  = lookup('mha::node::version')
  $ssh_user = lookup('mha::node::ssh_user')

  $rpm = "mha4mysql-node-${version}.el${facts['operatingsystemmajrelease']}.noarch.rpm"
  $rpm_path = "/usr/local/src/${rpm}"

  ensure_packages('perl-DBD-MySQL')

  file { $rpm_path:
    source => "puppet:///modules/mha/${rpm}",
  }

  package { 'mha4mysql-node':
    provider => rpm,
    source   => $rpm_path,
    require  => Package['perl-DBD-MySQL'],
  }

  file { '/var/log/masterha':
    ensure => directory,
    owner  => $ssh_user,
    mode   => '0755',
  }

}