Giter Site home page Giter Site logo

jean-gui / puppet-roundcube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tohuwabohu/puppet-roundcube

0.0 1.0 0.0 208 KB

Puppet module for installing and managing the Roundcube webmail application

License: Apache License 2.0

Ruby 52.24% Puppet 46.81% HTML 0.96%

puppet-roundcube's Introduction

roundcube

Puppet Forge Build Status

Overview

Puppet module to install and manage Roundcube. Roundcube webmail...

is a browser-based multilingual IMAP client with an application-like user interface.

(source: Roundcube website).

Usage

The module uses composer to install 3rd party dependencies specified by Roundcube and to download additional plugins from the Roundcube Plugin Repository.

Note: At the moment, the module relies on git being installed without explicitly requiring it. Git is to checkout several pacakge repositories listed in Roundcube's composer.json.

To install Roundcube with all defaults simply use

class { 'roundcube': }

Specify a certain mail server

class { 'roundcube':
  imap_host => 'ssl://localhost',
  imap_port => 993,
}

Specify the database to be used by Roundcube

class { 'roundcube':
  db_type     => 'pgsql',
  db_name     => 'roundcube',
  db_host     => 'localhost',
  db_username => 'roundcube',
  db_password => 'secret',
}

or specify the database DSN directly (e.g. when using SQLite)

class { 'roundcube':
  db_dsn => 'sqlite:////var/lib/database/roundcube.db?mode=0646',
}

Specify a couple of plugins to activate

class { 'roundcube':
  plugins => [
    'emoticons',
    'markasjunk',
    'password',
  ],
}

(see below for more information)

Archive Module

This module supports both well-known archive modules. This allows you to use your favorite archive module (either https://github.com/voxpupuli/puppet-archive or https://github.com/camptocamp/puppet-archive). Please make sure that the required archive module is installed and that you have set the parameter archive_provider to either camptocamp (default) or puppet.

Advanced usage

Specify advanced parameters

class { 'roundcube':
  options_hash {
    'language'    => 'en_US', # override auto-detection
    'support_url' => 'http://example.com/helpdesk',
  },
}

or even use your own configuration file template

class { 'roundcube':
  config_file_template => 'path/to/config_file.erb.',
  options_hash         => {
    'some_param_1' => '...',
  },
}

You can then use <%= @options['some_param_1'] %> in your template. See config/defaults.inc.php in the Roundcube directory for a complete list of possible configuration arguments.

Roundcube plugins

Roundcube ships a couple of very useful plugins. If you're happy with the default settings, you can enable plugins by simply adding the plugin names to the plugins list:

class { 'roundcube':
  plugins => [
    'password',
  ],
}

If you want to override the default configuration, you should declare a roundcube::plugin resource instead and provide the custom configuration values

$db_password_encoded = uriescape($db_password)
$password_db_dsn = "pgsql://${db_username}:${db_password_encoded}@localhost/${db_name}"

roundcube::plugin { 'password':
  options_hash => {
    'password_minimum_length'   => 16,
    'password_require_nonalpha' => true,
    'password_force_new_user'   => true,
    'password_db_dsn'           => $password_db_dsn,
  },
}

To install a plugin from the Roundcube plugin repository, you only need to specify the package name and the desired version, e.g.

roundcube::plugin { 'johndoh/markasjunk2':
  ensure => 'dev-release-1.9',
  options_hash => {
    # override the default options
  },
}

Limitations

The module has been tested on the following operating systems. Testing and patches for other platforms are welcome.

  • Debian 8.0 (Jessie)
  • Debian 9.0 (Stretch)
  • Ubuntu 14.04 (Trusty Tahr)
  • Ubuntu 16.04 (Xenial Xerus)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Development

This project uses rspec-puppet and beaker to ensure the module works as expected and to prevent regressions.

gem install bundler
bundle install --path vendor

bundle exec rake spec
bundle exec rake beaker

(note: see Beaker - Supported ENV variables for a list of environment variables to control the default behaviour of Beaker)

puppet-roundcube's People

Contributors

fraenki avatar jean-gui avatar tohuwabohu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.