Skip to content

Instantly share code, notes, and snippets.

@AntelopeSalad
Last active January 2, 2016 00:19
Show Gist options
  • Save AntelopeSalad/8222610 to your computer and use it in GitHub Desktop.
Save AntelopeSalad/8222610 to your computer and use it in GitHub Desktop.
+deb http://apt.postgresql.org/pub/repos/apt precise-pgdg main 9.3
Recipe: postgresql::client
* package[postgresql-client-9.1] action install
- install version 9.1.11-1.pgdg12.4+1 of package postgresql-client-9.1
* package[libpq-dev] action install
- install version 9.3.2-1.pgdg12.4+1 of package libpq-dev
Recipe: postgresql::server_debian
* package[postgresql-9.1] action install
---
chef@cheftests:~$ psql --version
psql (PostgreSQL) 9.1.11
# recipes/database.rb
node.override[:postgresql][:version] = '9.3'
puts "------------------- BEFORE INCLUSION: postgres version #{node[:postgresql][:version]}"
# => 9.3
include_recipe 'postgresql::server'
puts "------------------- AFTER INCLUSION: postgres version #{node[:postgresql][:version]}"
# => 9.3
# recipes/default.rb
include_recipe 'foo::database'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment