Puppet Class: sbt::install_package

Defined in:
manifests/install_package.pp

Overview



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
# File 'manifests/install_package.pp', line 6

class sbt::install_package {

  assert_private()

  if $::operatingsystem == 'CentOS' {

    yumrepo { 'bintray--sbt-rpm':
      name     => 'bintray--sbt-rpm',
      baseurl  => 'http://dl.bintray.com/sbt/rpm',
      enabled  => 1,
      gpgcheck => 0,
    }

    package { 'sbt':
      ensure   => 'installed',
      provider => 'yum',
      name     => 'sbt',
      require  => Yumrepo['bintray--sbt-rpm'],
    }

    file { '/usr/share/sbt-launcher-packaging/conf/sbtconfig.txt':
      content => template('sbt/usr/share/sbt-launcher-packaging/conf/sbtconfig.erb'),
      replace => true,
      require => Package['sbt'],
    }

  }
  else {
    fail('The installation as a package is only supported on CentOS/Redhat 6/7.')
  }

}