moved dev packages to seperate state

This commit is contained in:
Dominic Ferrantelli 2015-05-05 15:40:49 -07:00
parent 4656452825
commit 1b97d540ca
2 changed files with 13 additions and 12 deletions

13
postgres/dev.sls Normal file
View file

@ -0,0 +1,13 @@
{% from "postgres/map.jinja" import postgres with context %}
{% if postgres.pkg_dev != False %}
install-postgres-dev-package:
pkg.installed:
- name: {{ postgres.pkg_dev }}
{% endif %}
{% if postgres.pkg_libpq_dev != False %}
install-postgres-libpq-dev:
pkg.installed:
- name: {{ postgres.pkg_libpq_dev }}
{% endif %}

View file

@ -39,18 +39,6 @@ run-postgresql:
- require:
- pkg: {{ postgres.pkg }}
{% if postgres.pkg_dev != False %}
install-postgres-dev-package:
pkg.installed:
- name: {{ postgres.pkg_dev }}
{% endif %}
{% if postgres.pkg_libpq_dev != False %}
install-postgres-libpq-dev:
pkg.installed:
- name: {{ postgres.pkg_libpq_dev }}
{% endif %}
{% if postgres.pkg_contrib != False %}
install-postgres-contrib:
pkg.installed: