Puppet Class: archiva

Defined in:
modules/archiva/manifests/init.pp

Overview

Class: archiva

Installs and runs Apache Archiva. You must do any further configuration of Archiva via the archiva web interface. Archiva will save its custom configurations to /var/lib/archiva/conf/archiva.xml.

Parameters:

  • port (Any) (defaults to: 8080)


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/archiva/manifests/init.pp', line 8

class archiva($port = 8080)
{
    package { 'archiva':
        ensure => 'installed',
    }

    file { '/etc/archiva/jetty.xml':
        content => template('archiva/jetty.xml.erb'),
        require => Package['archiva'],
    }

    service { 'archiva':
        ensure     => 'running',
        enable     => true,
        hasstatus  => true,
        hasrestart => true,
        subscribe  => File['/etc/archiva/jetty.xml'],
    }
}