Skip to content

Instantly share code, notes, and snippets.

@Slimmons
Last active June 23, 2016 21:28
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/f06c90c2019c923baa9962e1ee0be44d to your computer and use it in GitHub Desktop.
Save Slimmons/f06c90c2019c923baa9962e1ee0be44d to your computer and use it in GitHub Desktop.
postgresql:
pkgrepo.managed:
- name: deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
- dist: trusty-pgdg
- file: /etc/apt/sources.list.d/psql.list
- key_url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
- require_in:
- pkg: postgresql
pkg.installed:
- name: postgresql-9.5
- refresh: True
service:
- running
testuser:
postgres_user.present:
- password: testuser
- createdb: True
- require:
- pkg: postgresql
newDB:
postgres_database.present:
- name: testDB
- owner: testuser
@Slimmons
Copy link
Author


      ID: newDB
Function: postgres_database.present
    Name: testDB
  Result: False
 Comment: Failed to create database rage
 Started: 16:17:43.162786
Duration: 5107.41 ms
 Changes:   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment