Skip to content

Instantly share code, notes, and snippets.

@Slimmons
Created June 23, 2016 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Slimmons/8d3a59d18b0ba65a40fc7921380ef9f0 to your computer and use it in GitHub Desktop.
Save Slimmons/8d3a59d18b0ba65a40fc7921380ef9f0 to your computer and use it in GitHub Desktop.
Instructions from installing postgres5 came from here https://www.postgresql.org/download/linux/ubuntu/
#This is awful, and can't possibly be a good way to be doing this.
/etc/apt/sources.list.d/pgdg.list:
file.managed:
- source: salt://postgres/pgdg.list
importRepositoryKey:
cmd.run:
- name: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
update:
cmd.run:
- name: sudo apt-get update
installPostgres:
cmd.run:
- name: sudo apt-get install postgresql-9.5
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment