Updaten init.pp

develop
Stefan Katzensteiner 2015-11-04 13:58:08 +01:00
parent 9fb4a782cc
commit d73c53cb3e
3 changed files with 22 additions and 21 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.project .project
.pydevproject .pydevproject
.settings .settings
.idea

View File

@ -4,7 +4,7 @@ xmlrpc_port = 8080
; This is the password that allows database operations: ; This is the password that allows database operations:
; admin_passwd = admin ; admin_passwd = admin
db_host = False db_host = False
db_port = 5433 db_port = 5432
db_user = False db_user = False
db_password = False db_password = False

View File

@ -44,14 +44,14 @@ class odoo {
encoding => 'UTF8', encoding => 'UTF8',
} }
# workaround for http://projects.puppetlabs.com/issues/4695 # # workaround for http://projects.puppetlabs.com/issues/4695
# when PostgreSQL is installed with SQL_ASCII encoding instead of UTF8 # # when PostgreSQL is installed with SQL_ASCII encoding instead of UTF8
exec { 'utf8 postgres': # exec { 'utf8 postgres':
command => 'sudo -u postgres pg_dropcluster --stop 9.3 main ; pg_createcluster --start --locale en_US.UTF-8 9.3 main', # command => 'sudo -u postgres pg_dropcluster --stop 9.3 main ; pg_createcluster --start --locale en_US.UTF-8 9.3 main',
unless => 'sudo -u postgres psql -t -c "\l" | grep template1 | grep -q UTF', # unless => 'sudo -u postgres psql -t -c "\l" | grep template1 | grep -q UTF',
require => Class['postgresql::server'], # require => Class['postgresql::server'],
path => ['/bin', '/sbin', '/usr/bin', '/usr/sbin'], # path => ['/bin', '/sbin', '/usr/bin', '/usr/sbin'],
} # }
file { "/var/log/odoo": file { "/var/log/odoo":
owner => 'root', owner => 'root',
@ -115,19 +115,19 @@ class odoo {
} }
file { 'wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb': # file { 'wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb':
name => "/tmp/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb", # name => "/tmp/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb",
owner => root, # owner => root,
group => root, # group => root,
source => "puppet:///modules/odoo/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb" # source => "puppet:///modules/odoo/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb"
} # }
package { 'wkhtmltox': # package { 'wkhtmltox':
provider => dpkg, # provider => dpkg,
ensure => installed, # ensure => installed,
source => "/tmp/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb", # source => "/tmp/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb",
require => [File['wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb'],Package['xfonts-base']], # require => [File['wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb'],Package['xfonts-base']],
} # }
package {['passlib', package {['passlib',
'psycogreen', 'psycogreen',