Module for installing and (optionally) configuring Owncloud

Chris Cowley



8,625 latest version

0.3 quality score

Version information

  • 0.1.0 (latest)
released Jul 29th 2014

Start using this module

Tags: owncloud


chriscowley/owncloud — version 0.1.0 Jul 29th 2014

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with owncloud
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module


Installs Owncloud and optionally configures Owncloud.

##Module Description

The most simple options just deploy Owncloud. Optionally, it can also configure both Owncloud and the web server (currenly on Nginx/PHP-FPM).


###What owncloud affects

  • The installer file is placed in /opt.
  • This install is expanded into /var/www/owncloud


  • The configuration file /var/www/owncloud/config/config.php is created
  • The configuration file for Nginx is created

###Setup Requirements OPTIONAL

Only curl needs to be installed. For the module to work, no others are required. Other modules to control your web server and PHP are required.

For larger installs, you will also need MySQL.

Personally I use:

You can use whatever suits you (or even none at all if that is what floats your boat).

###Beginning with owncloud

The most basic usage is

node owncloud.example.com {
    class { 'owncloud': }

Or if using Hiera:

  - owncloud

That will just install version 7.0.0 (current at time of writing). No configuration is performed.


A more advanced use case would be:

  - mysql
  - owncloud
owncloud::releasever: 7.1.0
owncloud::webserver: nginx
owncloud::servername: owncloud.example.com

Should be pretty self-explanitory, but this will install Owncloud 7.1.0, then configure Nginx with an SSL virtual Host.


Currently tested only on CentOS 6. It will not work on Debian/Ubuntu, but I have put case statements in place to make it easy in the future.

Currently only supports Nginx as the web server. Again, case statements are there to allow support for other web servers.


Feel free to fork and send any pull requests.