Puppet Class: owncloud::server

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

Overview

Install and configure an owncloud server default parameters are retrieved from owncloud::server::params

Parameters:

  • packages (Any) (defaults to: [ 'mariadb-server' , 'owncloud' , 'php-fpm' ])
  • path (Any) (defaults to: $owncloud::server::params::path)
  • data_dir (Any) (defaults to: $owncloud::server::params::data_dir)
  • user (Any) (defaults to: $owncloud::server::params::user)
  • passwordsalt (Any) (defaults to: $owncloud::server::params::passwordalt)
  • mysql_database (Any) (defaults to: $owncloud::server::params::mysql_database)
  • mysql_user (Any) (defaults to: $owncloud::server::params::mysql_user)
  • mysql_password (Any) (defaults to: $owncloud::server::params::mysql_password)
  • mysql_host (Any) (defaults to: $owncloud::server::params::mysql_host)
  • apache_vhost (Any) (defaults to: $owncloud::server::params::apache_vhost)
  • instanceid (Any) (defaults to: $owncloud::server::params::instanceid)
  • enabled (Any) (defaults to: $owncloud::server::params::enabled)


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

class owncloud::server(
  $packages       = [ 'mariadb-server' , 'owncloud'   , 'php-fpm' ],
  $path           = $owncloud::server::params::path,
  $data_dir       = $owncloud::server::params::data_dir,
  $user           = $owncloud::server::params::user,
  $passwordsalt   = $owncloud::server::params::passwordalt,
  $mysql_database = $owncloud::server::params::mysql_database,
  $mysql_user     = $owncloud::server::params::mysql_user,
  $mysql_password = $owncloud::server::params::mysql_password,
  $mysql_host     = $owncloud::server::params::mysql_host,
  $apache_vhost   = $owncloud::server::params::apache_vhost,
  $instanceid     = $owncloud::server::params::instanceid,
  $enabled        = $owncloud::server::params::enabled
  ) inherits owncloud::server::params {

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

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