Forge Home

owncloud

Puppet ownCloud Module

10,395 downloads

10,206 latest version

4.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.2 (latest)
  • 0.0.1
released Aug 25th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'velaluqa-owncloud', '0.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add velaluqa-owncloud
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install velaluqa-owncloud --version 0.0.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

velaluqa/owncloud — version 0.0.2 Aug 25th 2014

puppet-owncloud

A puppet module to easily deploy owncloud. Make sure you have a correct php5 installation. This module only downloads the latest owncloud archive and extracts it to a given path.

Additionally it provides a nginx class to configure nginx to serve owncloud.

You may have to install php5-fpm (via puppet-php) and configure your web server (maybe with a puppet nginx module).

Suggested Preparation

This module is as simple as possible. You should be able to choose your own php installation and to decide which webserver you use.

# Create a new MySQL database
mysql::db { "owncloud":
  user => "owncloud",
  password => "myowncloudpassword",
  host => "127.0.0.1",
  require => Class['mysql::server'],
}

# Setup nginx via the jfryman/nginx puppet module
# https://forge.puppetlabs.com/jfryman/nginx
class { 'nginx': }

# Setup a sufficient php5 installation via the nodes/php puppet module
# https://forge.puppetlabs.com/nodes/php
class { 'php::extension::gd': }
class { 'php::extension::curl': }
class { 'php::extension::ldap': }
class { 'php::cli': ensure => present }
class { 'php::fpm::daemon': ensure => running }
class { 'php::extension::mysql': }

# Make sure php5-fpm is configured correctly
php::fpm::conf { 'www':
  listen => '/var/run/php5-fpm.sock',
  user => 'www-data',
}

# Configure php correctly
php::config { 'php-owncloud-conf':
  inifile  => '/etc/php5/fpm/php.ini',
  settings => {
    set => {
      'Date/date.timezone' => 'Europe/Berlin',
      'PHP/upload_tmp_dir' => '/srv/owncloud/data',
      'PHP/upload_max_filesize' => '1000M',
      'PHP/post_max_size' => '1000M',
    }
  }
}

# Install owncloud
class { 'owncloud':
  path => '/srv/owncloud'
}

# Configure nginx to serve owncloud
class { 'owncloud::nginx':
  hostname => 'mydomain.tld',
  upload_max_filesize => '1000M',
  php_fpm => 'unix:/var/run/php5-fpm.sock',
  # ssl => true,
  # ssl_key => 'mydomain.tld.key',
  # ssl_cert => 'mydomain.tld.crt',
}

Notice: Afterwards you have to configure owncloud manually. If you find a way to configure owncloud from the commandline, we would appreciate a pull request. Thanks!

Contribute

Want to help - send a pull request.