velaluqa / puppet-redmine

UNMAINTAINED - Setup Redmine via puppet
GNU General Public License v3.0
0 stars 7 forks source link

Failed postgresql instalation #2

Closed mariomarin closed 1 year ago

mariomarin commented 10 years ago

When I ran

puppet apply redmine.pp

I get

Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type postgresql::database at /etc/puppet/modules/puma/manifests/app.pp:112 on node

These are the parameters:

 class {
   'redmine':
   app_root             => '/var/www/redmine',
   #redmine_source       => 'https://github.com/redmine/redmine.git',
   #redmine_revision     => 'origin/2.3-stable',
   redmine_user         => 'deployment',
   db_adapter           => 'pgsql',
   db_name              => 'redmine',
   db_user              => 'redmine',
   db_password          => 'password,
   db_host              => 'host',
   db_port              => '5432',
   rvm_ruby             => '1.9.3@redmine',
 }
leoc commented 10 years ago

For the postgresql database configuration the puppetlabs-postgresql module (~ 2.5.0) is needed. We are currently refactoring all our puppet modules and plan to release proper modules with correct dependencies in their Modulefiles.

mariomarin commented 10 years ago

puppetlabs-postgresql is installed

root@host:/etc/puppet/manifests# dpkg -l puppet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                           Version              Architecture         Description
+++-==============================-====================-====================-==================================================================
ii  puppet                         2.7.23-1~deb7u3      all                  Centralized configuration management - agent startup and compatibi
root@host:~# puppet module list
/etc/puppet/modules
├── puppet-puma (v0.0.1)
├── puppet-redmine (v0.0.1)
├── puppetlabs-apt (v1.4.2)
├── puppetlabs-concat (v1.1.0)
├── puppetlabs-firewall (v1.1.1)
├── puppetlabs-mysql (v2.2.3)
├── puppetlabs-postgresql (v3.3.3)
├── puppetlabs-stdlib (v4.2.1)
└── puppetlabs-vcsrepo (v0.2.0)
root@host:/etc/puppet/manifests# puppet apply redmine.pp 
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type postgresql::database at /etc/puppet/modules/puma/manifests/app.pp:112 on node host
leoc commented 10 years ago

Make sure you use version ~ 2.5.0 of that module. With 3.0.0 most resource types has been renamed. Hopefully I find some time in the near future to update our modules. Currently we still depend on postgres module 2.5.0.