Skip to content

Instantly share code, notes, and snippets.

@actionjack
Created October 11, 2013 09:19
Show Gist options
  • Select an option

  • Save actionjack/6931942 to your computer and use it in GitHub Desktop.

Select an option

Save actionjack/6931942 to your computer and use it in GitHub Desktop.
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type with puppetlabs / puppetlabs-postgresql module
test.pp:
$db = 'postgresql_test_db'
class { 'postgresql::server': }
postgresql::server::db { $db:
user => $db,
password => postgresql_password($db, $db),}
When executed:
$puppet apply --modulepath=modules:static-modules /tmp/test.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type postgresql::server::db at /tmp/test.pp:6 on node tools-poc.local
Wrapped exception:
Invalid resource type postgresql::server::db
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type postgresql::server::db at /tmp/test.pp:6 on node tools-poc.local
@actionjack
Copy link
Copy Markdown
Author

operatingsystem => Ubuntu
operatingsystemrelease => 12.04
osfamily => Debian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment