Puppet Class: opengrok::install

Defined in:
manifests/install.pp

Overview

Class opengrok::install

This class is called from opengrok for install.

Parameters:

  • manage_git (Any)

    Specifies wether or not to manage git, if true it will include ::git. Valid options: true, false. Example Value: true.

  • manage_tomcat (Any)

    Specifies wether or not to manage tomcat, if true it will include ::tomcat. Valid options: true, false. Example Value: true.

  • install_ctags (Any)

    Specifies wether or not to install ctags, will install system ctags package if true. Valid options: true, false. Example Value: true.

  • ctags_package (Any)

    Specifies the name of the system ctags package. Valid options: String of package name. Example Value: 'ctags'



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

class opengrok::install(
  $manage_tomcat,
  $manage_git,
  $install_ctags,
  $ctags_package,
){

  if $manage_tomcat {
    include ::tomcat

    tomcat::install {'tomcat':
      install_from_source => false,
      package_name        => 'tomcat',
    }

  }
  if $manage_git {
    include ::git
  }

  if $install_ctags {
    ensure_packages([$ctags_package], {ensure => 'present'})
  }

  #setup opengrok directories
  file { '/var/opengrok/':
    ensure =>  directory,
  } ->
  file { '/var/opengrok/src':
    ensure =>  directory,
  } ->
  file { '/var/opengrok/data':
    ensure =>  directory,
  } ->
  file { '/var/opengrok/etc':
    ensure =>  directory,
  }


}