Forge Home

odoo9

Puppet module to install Odoo 9.0 Community.

7,211 downloads

6,766 latest version

4.3 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.

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Dec 23rd 2016
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0 < 5.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'locp-odoo9', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add locp-odoo9
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install locp-odoo9 --version 0.1.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
Tags: openerp, odoo

Documentation

locp/odoo9 — version 0.1.2 Dec 23rd 2016

odoo9

Table of Contents

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

Description

Install Odoo 9 Communinty edition in a manner similar to that described in Installing Odoo.

This module has now been renamed to locp-odoo. Please see the following:

Setup

What odoo9 affects

  • Installs the odoo package from the Odoo repository.
  • Configures /etc/odoo/openerp-server.conf.
  • Manipulates the running state of the odoo service.
  • Optionally configures repositories to enable package installations from the Odoo nightly builds.
  • Optionally installs the wkhtmltopdf package from the Odoo repository.

Beginning with odoo9

include ::odoo9

Usage

The following example will install a basic PostgreSQL database on the node (using [puppetlabs-postgresql](https://forge.puppet.com/puppetlabs/postgresql)) it then configures the the Odoo repositories. It then installs the odoo and wkhtmltopdf packages with some settings for the Odoo server:

class { 'postgresql::server':
  before => Class['odoo9']
}

class { '::odoo9::repo':
  before => Class['odoo9']
}

class { '::odoo9':
  install_wkhtmltopdf => true,
  settings            => {
    'options' => {
      'admin_passwd' => 'XXX_TOP_SECRET_XXX',
      'db_host'      => 'False',
      'db_port'      => 'False',
      'db_user'      => 'odoo',
      'db_password'  => 'False',
      'addons_path'  => '/usr/lib/python2.7/dist-packages/openerp/addons',
    }
  },
  version             => '9.0c.20161009',
}

Reference

Attributes

Class odoo9

install_wkhtmltopdf

Whether or not to install the optional wkhtmltopdf package from the Odoo repository. Default value false.

settings

A hash of settings to be passed to the create_ini_settings (see https://forge.puppet.com/puppetlabs/inifile#manage-multiple-ini_settings for details). The following defaults are provided:

{
  path    => '/etc/odoo/openerp-server.conf',
  require => Package['odoo'],
  notify  => Service['odoo'],
}
version

The version of the odoo package to be installed. Valid values are present, latest or the version of the version of the package to be installed ('i.e. 9.0c.20161009).

Class odoo9::repo

descr

The name of the repository to be configured. Default value 'Odoo Nightly repository'

key_id

The key for the Debian APT repository. This option is ignored on the Red Hat family. Default value '5D134C924CB06330DCEFE2A1DEF2A2198183CBB5'

pkg_url

The URL to the package on the repository. It defaults to http://nightly.odoo.com/9.0/nightly/rpm/ on the Red Hat family and http://nightly.odoo.com/9.0/nightly/deb/.

pkg_url

The release for the Debian APT repository. This option is ignored on the Red Hat family. Default value './'

repos

The repos for the Debian APT repository. This option is ignored on the Red Hat family. Default value ''

Limitations

At the moment this module has only been tested against Ubuntu 14. Also this module does not in anyway configure PostgreSQL.

Development

Contributions will be gratefully accepted. Please go to the project page, fork the project, make your changes locally and then raise a pull request. Details on how to do this are available at https://guides.github.com/activities/contributing-to-open-source.