Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opus-codium/puppet-odoo

Puppet module to install, configure and manage the Odoo ERP and CRM
https://github.com/opus-codium/puppet-odoo

hacktoberfest odoo puppet-odoo

Last synced: about 2 months ago
JSON representation

Puppet module to install, configure and manage the Odoo ERP and CRM

Awesome Lists containing this project

README

        

# puppet-odoo

[![Build Status](https://img.shields.io/github/actions/workflow/status/opus-codium/puppet-odoo/release.yml)](https://github.com/opus-codium/puppet-odoo/releases)
[![Puppet Forge](https://img.shields.io/puppetforge/v/opuscodium/odoo.svg)](https://forge.puppetlabs.com/opuscodium/odoo)
[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/opuscodium/odoo.svg)](https://forge.puppetlabs.com/opuscodium/odoo)
[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/opuscodium/odoo.svg)](https://forge.puppetlabs.com/opuscodium/odoo)
[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/opuscodium/odoo.svg)](https://forge.puppetlabs.com/opuscodium/odoo)
[![License](https://img.shields.io/github/license/opus-codium/puppet-odoo.svg)](https://github.com/voxpupuli/opuscodium-odoo/blob/master/LICENSE.md)

#### Table of Contents

* [Module description](#module-description)
* [Usage](#usage)
* [Basic usage](#basic-usage)
* [Usage with odoo-enterprise](#usage-with-odoo-enterprise)

## Module description

This Puppet module allows managing odoo with Puppet

## Usage

### Basic usage

Usage in a profile is straightforward, the only mandatory parameter being the version of odoo you want to install:

```puppet
class profile::odoo {
class { 'odoo':
version => '13.0',
}
}
```

### Usage with odoo-enterprise

Odoo-enterprise is a collection of non-free plugins installed on top of odoo which provide extra features.

The easiest way is probably to fork https://github.com/odoo/enterprise in your organization, and add deploy keys for your servers in your copy of the repo.

Then rely on [vcsrepo](https://github.com/puppetlabs/puppetlabs-vcsrepo/) to fetch the proper version of the repository and configure it in your profile:

```puppet
class profile::odoo (
Enum['10.0', '11.0', '12.0', '13.0'] $version,
) {
$enterprise_path = '/opt/odoo/enterprise'
$enterprise_revision = $version ? {
'10.0' => '123456',
'11.0' => '234567',
'12.0' => '345678',
'13.0' => '456789',
}

vcsrepo { $enterprise_path:
ensure => present,
provider => 'git',
source => "[email protected]:${organization}/odoo-enterprise.git",
revision => $enterprise_revision,
notify => Class['odoo::service'],
force => true,
}

class { 'odoo':
version => $version,
addons_path => [
$enterprise_path,
'/usr/lib/python3/dist-packages/odoo/addons',
],
}
}
```