Puppet Class: odoo
- Defined in:
- manifests/init.pp
Overview
Install and configure Odoo Community.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'manifests/init.pp', line 46
class odoo (
$config_file = '/etc/odoo/odoo.conf',
$install_wkhtmltopdf = false,
$settings = {},
$version = present,
) {
if $install_wkhtmltopdf {
package { 'wkhtmltopdf':
ensure => present,
notify => Service['odoo']
}
}
package { 'odoo':
ensure => $version,
notify => Service['odoo']
}
if $::osfamily == 'RedHat' {
exec { '/usr/bin/systemctl daemon-reload':
refreshonly => true,
subscribe => Package['odoo'],
}
}
$defaults = {
path => $config_file,
require => Package['odoo'],
notify => Service['odoo'],
}
create_ini_settings($settings, $defaults)
service { 'odoo':
ensure => running,
enable => true,
}
}
|