Sha256: 46c6020c5bd32c4a1a10965d8c6675527a649b7290111032e0c6a0310c4d9279

Contents?: true

Size: 593 Bytes

Versions: 20

Compression:

Stored size: 593 Bytes

Contents

# Definition: tomcat::instance::package
#
# Private define to install Tomcat from a package.
#
# Parameters:
# - $package_ensure is the ensure passed to the package resource.
# - The $package_name you want to install.
define tomcat::instance::package (
  $package_ensure = 'installed',
  $package_name = undef,
) {
  if $caller_module_name != $module_name {
    fail("Use of private class ${name} by ${caller_module_name}")
  }

  if $package_name {
    $_package_name = $package_name
  } else {
    $_package_name = $name
  }

  package { $_package_name:
    ensure => $package_ensure
  }

}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-retrospec-1.8.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.7.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.6.1 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.6.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.5.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.4.1 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.4.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.3.2 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.3.1 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.3.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.2.1 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.2.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.1.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-1.0.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-0.12.1 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-0.12.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-0.11.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-0.10.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-0.9.1 spec/fixtures/modules/tomcat/manifests/instance/package.pp
puppet-retrospec-0.9.0 spec/fixtures/modules/tomcat/manifests/instance/package.pp