Puppet Class: artifactory::install::package

Defined in:
manifests/install/package.pp

Summary

Install artifactory from package

Overview



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

class artifactory::install::package {
  case $artifactory::edition {
    'enterprise', 'pro' : {
      $_package = $artifactory::package_name_pro
    }
    default : {
      $_package = $artifactory::package_name
    }
  }

  package { $_package:
    ensure  => $artifactory::package_version,
  }

  if $facts['os']['family'] == 'Debian' {
    exec { 'fix permissions of artifactory log directory' :
      path        => '/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin:/usr/local/sbin',
      command     => "chown -R ${artifactory::config_owner}:${artifactory::config_group} ${artifactory::data_directory}/log",
      refreshonly => true,
      subscribe   => [
        Package[$_package],
      ],
    }
  }
}