Forge Home

odoo

Puppet module to install Odoo Community.

7,493 downloads

6,962 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.

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.2.2 (latest)
  • 0.2.1
  • 0.2.0
released Dec 31st 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-odoo', '0.2.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install locp-odoo --version 0.2.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/odoo — version 0.2.2 Dec 31st 2016

odoo

CircleCI Build Status Coverage Status Join the chat at https://gitter.im/locp/puppet-odoo

Table of Contents

  1. Description
  2. Setup - The basics of getting started with odoo
  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 Communinty edition in a manner similar to that described in Installing Odoo.

Setup

What odoo affects

  • Installs the odoo package from the Odoo repository.
  • Configures /etc/odoo/odoo.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 odoo

include ::odoo::repo10
include ::odoo

or for Odoo 9:

include ::odoo::repo9
include ::odoo

Do not have both ::odoo::repo9 and ::odoo::repo10 in your catalogue for the same node as they will both be attempting to update the repository file.

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 9 repositories. It then installs the odoo and wkhtmltopdf packages with some settings for the Odoo server:

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

class { '::odoo::repo9':
  before => Class['odoo']
}

class { '::odoo':
  config_file         => '/etc/odoo/openerp-server.conf',
  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             => present,
}

To do the same for Odoo 10:

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

class { '::odoo::repo10':
  before => Class['odoo']
}

class { '::odoo':
  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/odoo/addons',
    }
  },
}

Reference

Public Classes

Limitations

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.