Permalink
Browse files

update README with contributions from @alno

  • Loading branch information...
1 parent 5357c18 commit 07fae6ffa87a6620704108862f80244ef702bd1b @phlipper committed Sep 30, 2012
Showing with 14 additions and 4 deletions.
  1. +14 −4 README.md
View
@@ -70,14 +70,15 @@ end
# install extensions to database
pg_database_extensions "mydb" do
- languages 'plpgsql' # instal plpgsql language - single value may be passed without array
- extensions [ 'hstore', 'dblink' ] # install hstore and dblink extensions - multiple values in array
- postgis true # install postgis support
+ languages "plpgsql" # install `plpgsql` language - single value may be passed without array
+ extensions ["hstore", "dblink"] # install `hstore` and `dblink` extensions - multiple values in array
+ postgis true # install `postgis` support
end
# drop dblink extension
pg_database_extensions "mydb" do
- extensions 'dblink'
+ action :drop
+ extensions "dblink"
end
# drop a database
@@ -124,6 +125,11 @@ default["postgresql"]["pg_ident"] = []
default["postgresql"]["start"] = "auto" # auto, manual, disabled
#------------------------------------------------------------------------------
+# POSTGIS
+#------------------------------------------------------------------------------
+default["postgis"]["version"] = "1.5"
+
+#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------
default["postgresql"]["data_directory"] = "/var/lib/postgresql/#{node["postgresql"]["version"]}/main"
@@ -503,6 +509,10 @@ Many thanks go to the following who have contributed to making this cookbook eve
* speed up recipe loading and execution
* add support for specifying database locale
* add support for adding users and databases via attributes
+* **[@alno](https://github.com/alno)**
+ * add support to install additional languages/extensions/postgis to existing databases
+ * add `pg_database_extensions` definition
+
## License

0 comments on commit 07fae6f

Please sign in to comment.