I am trying to install `puppetdb` using https://forge.puppetlabs.com/puppetlabs/puppetdb.
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 http://links.puppetlabs.com/env-settings-deprecations
(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](https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#open-source-repositories).
↧