Puppet Class: jetty::deploy

Defined in:
manifests/deploy.pp

Overview

Class: jetty::deploy

This class installs a war file in $puppet_classes::jettyjetty::home/webapps/.

Parameters:

$source

The path to the source file.

$war

The name of the war.

Requires:

Jetty

Sample Usage:

class {'jetty::deploy':
  source => /tmp/myapp.war,
  war => app.war,
}

Authors

Gamaliel Sick

Copyright 2014 Gamaliel Sick, unless otherwise noted.

Parameters:

  • source (Any) (defaults to: hiera('jetty::deploy::source', undef))
  • war (Any) (defaults to: hiera('jetty::deploy::war', undef))


30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/deploy.pp', line 30

class jetty::deploy(
  $source       = hiera('jetty::deploy::source', undef),
  $war          = hiera('jetty::deploy::war', undef),
) {

  file { "jetty_war_${war}":
    ensure => present,
    path   => "${jetty::home}/webapps/${war}",
    owner  => $jetty::user,
    group  => $jetty::group,
    source => $source,
    notify => Service['jetty'],
  }
}