Puppet Class: owncloud::server

Inherits:
owncloud::server::params
Defined in:
manifests/server.pp

Overview

Parameters:

  • packages (Any) (defaults to: params_lookup( 'packages' ))
  • path (Any) (defaults to: params_lookup( 'path' ))
  • user (Any) (defaults to: params_lookup( 'user' ))
  • passwordsalt (Any) (defaults to: params_lookup( 'passwordsalt' ))
  • mysql_database (Any) (defaults to: params_lookup( 'mysql_database' ))
  • mysql_user (Any) (defaults to: params_lookup( 'mysql_user' ))
  • mysql_password (Any) (defaults to: params_lookup( 'mysql_password' ))
  • mysql_host (Any) (defaults to: params_lookup( 'mysql_host' ))
  • apache_vhost (Any) (defaults to: params_lookup( 'apache_vhost'))
  • instanceid (Any) (defaults to: params_lookup( 'instanceid' ))
  • enabled (Any) (defaults to: params_lookup( 'enabled' ))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/server.pp', line 1

class owncloud::server(
  $packages       = params_lookup( 'packages' ),
  $path           = params_lookup( 'path' ),
  $user           = params_lookup( 'user' ),
  $passwordsalt   = params_lookup( 'passwordsalt' ),
  $mysql_database = params_lookup( 'mysql_database' ),
  $mysql_user     = params_lookup( 'mysql_user' ),
  $mysql_password = params_lookup( 'mysql_password' ),
  $mysql_host     = params_lookup( 'mysql_host' ),
  $apache_vhost   = params_lookup( 'apache_vhost'),
  $instanceid     = params_lookup( 'instanceid' ),
  $enabled        = params_lookup( 'enabled' )
  ) inherits owncloud::server::params {

    $ensure = $enabled ? {
      true => present,
      false => absent
    }

  include owncloud::server::package, owncloud::server::config
}