Puppet Class: opengrok::params

Defined in:
manifests/params.pp

Overview

Class opengrok::params

This class is meant to be called from opengrok. It sets variables according to platform.

Examples:

default $download_url

$download_url = 'https://github.com/OpenGrok/OpenGrok/files/467358/opengrok-0.12.1.6.tar.gz.zip'

default $projects

$projects = {}

default $install_ctags

$install_ctags = true

default $ctags_package

$ctags_package = 'ctags'

default $manage_tomcat

$manage_tomcat = true

default $opengrok_dir

$opengrok_dir = '/opt/opengrok'

default $manage_git

$manage_git = true

default $service_name

$service_name = 'tomcat'

default $catalina_home

$catalina_home = '/var/lib/tomcat'

default $body_text

$body_text = 'You can replace this block of text (in index_body.html) with some more useful
   information about your source tree and its organization, with direct links to key parts of code base.'

default $config_hash

$config_hash = { 'OPENGROK_VERBOSE' => 'no' }


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'manifests/params.pp', line 30

class opengrok::params {
  case $::osfamily {
    'RedHat', 'Amazon': {
      $download_url = 'https://github.com/OpenGrok/OpenGrok/files/467358/opengrok-0.12.1.6.tar.gz.zip'
      $projects = {}
      $install_ctags = true
      $ctags_package = 'ctags'
      $manage_tomcat = true
      $opengrok_dir = '/opt/opengrok'
      $manage_git = true
      $service_name = 'tomcat'
      $catalina_home = '/var/lib/tomcat'
      $body_text = 'You can replace this block of text (in index_body.html) with some more useful
         information about your source tree and its organization, with direct links to key parts of code base.'
      $config_hash = { 'OPENGROK_VERBOSE' => 'no' }
    }
    default: {
      fail("${::operatingsystem} not supported")
    }
  }
}