Ask Your Question

postgresql error with the puppetdb puppet module

asked 2015-06-18 04:21:38 -0600

Vincenzo Pii gravatar image

I am trying to install puppetdbusing

The manifest that I am trying to apply looks like this:

node 'ptswift.openstacklocal' {
  # Configure puppetdb and its underlying database
  class { 'puppetdb': }
  # Configure the puppet master to use puppetdb
  class { 'puppetdb::master::config': }

The command sudo puppet agent --test shows no errors.

The problems is that during the application of the manifest I have these errors related to postgresql:

$ sudo puppet apply puppetdb.pp 
Warning: Setting templatedir is deprecated. See
   (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for ptswift.openstacklocal in environment production in 2.20 seconds
Notice: /Stage[main]/Postgresql::Client/Package[postgresql-client]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Postgresql::Server::Install/Package[postgresql-server]/ensure: ensure changed 'purged' to 'present'
Error: Cannot create /var/lib/postgresql/9.3/main; parent directory /var/lib/postgresql/9.3 does not exist
Error: /Stage[main]/Postgresql::Server::Initdb/File[/var/lib/postgresql/9.3/main]/ensure: change from absent to directory failed: Cannot create /var/lib/postgresql/9.3/main; parent directory /var/lib/postgresql/9.3 does not exist
Notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Config_entry[data_directory]/Exec[postgresql_stop_data_directory]: Dependency File[/var/lib/postgresql/9.3/main] has failures: true

The point seems to be

Error: Cannot create /var/lib/postgresql/9.3/main; parent directory /var/lib/postgresql/9.3 does not exist

I am using Ubuntu 14.04 with the latest updates and puppet labs packages repo.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-10 05:31:38 -0600

I'm running into the same problem. Have you found an answer?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-06-18 04:20:29 -0600

Seen: 354 times

Last updated: Jun 18 '15