cookbook 'psql', '= 0.1.0'
psql (2) Versions 0.1.0 Follow3
A set of LWRPs for interacting with postgres using the CLI.
cookbook 'psql', '= 0.1.0', :supermarket
knife supermarket install psql
knife supermarket download psql
Description
A set of LWRPs for interacting with postgres using the CLI.
Usage
The cookbook is simply a set of LWRPs that you can use in your own cookbook. A simple example follows.
psql_user "myuser" do
host node['fqdn']
port node['postgresql']['config']['port']
admin_username 'postgres'
admin_password node['postgresql']['password']['postgres']
password 'secret'
end
psql_database "mydatabase" do
host node['fqdn']
port node['postgresql']['config']['port']
admin_username 'postgres'
admin_password node['postgresql']['password']['postgres']
owner 'myuser'
template 'template_postgis'
encoding 'DEFAULT'
tablespace 'MyTablespace'
collation 'fr_FR'
connection_limit -1
end
psql_permission "myuser@mydatabase => all" do
host node['fqdn']
port node['postgresql']['config']['port']
admin_username 'postgres'
admin_password node['postgresql']['password']['postgres']
username 'myuser'
database 'mydatabase'
permissions ['ALL']
end
Dependent cookbooks
cutlery ~> 0.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.