Giter Site home page Giter Site logo

trescloud / puppet-odoo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from locp/puppet-odoo

0.0 4.0 0.0 138 KB

Puppet module to install Odoo Community.

Home Page: https://forge.puppet.com/locp/odoo

License: Apache License 2.0

Ruby 63.49% Puppet 36.51%

puppet-odoo's Introduction

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.

puppet-odoo's People

Contributors

dallinb avatar

Watchers

James Cloos avatar Santiago Orozco avatar Andrés Calle avatar  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.