mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
fix(contributing): postgresql-repo state ID requires python3-apt package
This commit is contained in:
parent
68a791ef09
commit
69b57e3b69
6 changed files with 9 additions and 14 deletions
|
@ -9,6 +9,7 @@ postgres:
|
|||
version: '10'
|
||||
pkg: postgresql
|
||||
pkgs_extra: []
|
||||
pkgs_deps: []
|
||||
pkg_client: postgresql-client
|
||||
pkg_dev: postgresql-devel
|
||||
pkg_dev_deps: []
|
||||
|
@ -76,7 +77,7 @@ postgres:
|
|||
sysrc: false
|
||||
|
||||
bake_image: false
|
||||
bake_image_run_cmd: echo "do nothing by default"
|
||||
bake_image_run_cmd: pg_ctl start
|
||||
|
||||
fromrepo: ''
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ include:
|
|||
- postgres.macos
|
||||
{% else %}
|
||||
- postgres.server
|
||||
- postgres.server.image
|
||||
- postgres.client
|
||||
- postgres.manage
|
||||
{% endif %}
|
||||
|
|
|
@ -12,6 +12,7 @@ Arch:
|
|||
pkg_dev: postgresql
|
||||
|
||||
Debian:
|
||||
pkgs_deps: ['python3-apt']
|
||||
pkg_repo:
|
||||
humanname: PostgreSQL Official Repository
|
||||
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
|
||||
{%- if postgres.bake_image %}
|
||||
|
||||
include:
|
||||
- postgres.server
|
||||
|
||||
# An attempt to start PostgreSQL with `pg_ctl`
|
||||
|
||||
postgresql-running:
|
||||
cmd.run:
|
||||
- name: {{ postgres.bake_image_run_cmd }}
|
||||
|
@ -40,10 +36,4 @@ postgresql-enable:
|
|||
- require:
|
||||
- cmd: postgresql-running
|
||||
|
||||
{%- else %}
|
||||
|
||||
postgresql-running:
|
||||
test.show_notification:
|
||||
- text: The 'postgres:bake_image' Pillar is disabled (set to 'False').
|
||||
|
||||
{%- endif %}
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres with context -%}
|
||||
|
||||
{%- set includes = [] %}
|
||||
{%- if postgres.bake_image %}
|
||||
{%- do includes.append('postgres.server.image') %}
|
||||
{%- endif %}
|
||||
{%- if postgres.use_upstream_repo == true -%}
|
||||
{%- do includes.append('postgres.upstream') %}
|
||||
{%- endif %}
|
||||
|
|
|
@ -17,6 +17,11 @@ postgresql-profile:
|
|||
- defaults:
|
||||
bin_dir: {{ postgres.bin_dir }}
|
||||
{%- endif %}
|
||||
|
||||
postgresql-pkg-deps:
|
||||
pkg.installed:
|
||||
- pkgs: {{ postgres.pkgs_deps }}
|
||||
|
||||
# Add upstream repository for your distro
|
||||
postgresql-repo:
|
||||
pkgrepo.managed:
|
||||
|
|
Loading…
Add table
Reference in a new issue