Puppet Class: jboss::internal::runtime

Defined in:
manifests/internal/runtime.pp

Overview

JBoss internals - class that calculates and hold variables calculated at runtime



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
28
29
30
31
32
# File 'manifests/internal/runtime.pp', line 2

class jboss::internal::runtime {
  include jboss

  $runasdomain   = $jboss::runasdomain
  $profile       = $jboss::profile

  $domainconfigfile = 'domain.xml'
  $hostconfigfile = 'host.xml'

  $standaloneconfigfile = $profile ? {
    ''        => 'standalone.xml',
    'ha'      => 'standalone-ha.xml',
    'osgi'    => 'standalone-osgi.xml',
    'full'    => 'standalone-full.xml',
    'full-ha' => 'standalone-full-ha.xml',
    default   => 'standalone-full.xml'
  }

  $configfile = $runasdomain ? {
    true    => $domainconfigfile,
    default => $standaloneconfigfile,
  }

  validate_absolute_path($jboss::home)

  $standaloneconfigpath = "${jboss::home}/standalone/configuration/${standaloneconfigfile}"
  $hostconfigpath = "${jboss::home}/domain/configuration/${hostconfigfile}"
  $domainconfigpath = "${jboss::home}/domain/configuration/${domainconfigfile}"

  include jboss::internal::runtime::dc
}