Last active
January 2, 2016 00:19
-
-
Save AntelopeSalad/8222610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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