We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
/db/postgreql/entensions.json
{ "<dbname>": ["hstore"] }
Desired output:
\dx
Current behavior:
================================================================================ Error executing action `run` on resource 'ruby_block[process extensions.json]' ================================================================================ NameError --------- uninitialized constant Chef::Resource::PostgresqlPgExtension Cookbook Trace: (most recent call first) ---------------------------------------- /etc/chef/recipes/cookbooks/ey-postgresql/recipes/server_configure.rb:280:in `block (3 levels) in from_file' /etc/chef/recipes/cookbooks/ey-postgresql/recipes/server_configure.rb:279:in `each' /etc/chef/recipes/cookbooks/ey-postgresql/recipes/server_configure.rb:279:in `block (2 levels) in from_file' Resource Declaration: --------------------- # In /etc/chef/recipes/cookbooks/ey-postgresql/recipes/server_configure.rb 275: ruby_block "process extensions.json" do 276: block do 277: # run_context = Chef::RunContext.new(node, {}) 278: exts = JSON.parse(::File.read(node["pg_extensions_file"])) 279: exts.each do |db_name, exts| 280: run_context.resource_collection << r = Chef::Resource::PostgresqlPgExtension.new("install #{exts.join(',')} in database #{db_name}", run_context) 281: r.db_name = db_name 282: r.ext_name = exts 283: end 284: end 285: only_if { ::File.exist?(node["pg_extensions_file"]) } 286: end 287:
The text was updated successfully, but these errors were encountered:
Workaround: add the extensions by:
CREATE EXTENSION <extension_name>;
Sorry, something went wrong.
anuajay1988
No branches or pull requests
Steps to reproduce:
/db/postgreql/entensions.json
with the following structure:Desired output:
\dx
.Current behavior:
The text was updated successfully, but these errors were encountered: