Skip to content

Instantly share code, notes, and snippets.

@rca
Last active December 12, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save rca/4756862 to your computer and use it in GitHub Desktop.
Save rca/4756862 to your computer and use it in GitHub Desktop.
Salt state for postgres, but require under service doesn't know postgres-9.2 is installed with pkgs.
postgresql:
service:
- running
packages:
pkg.installed:
- pkgs:
- libpq5
- postgresql-client-9.2
- postgresql-9.2
- require:
- cmd.run: add_postgresql_apt_key
- file: {{ pg_list }}
- file: {{ pg_pref }}
- require_in:
- service: postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment