Browse Source

Salt: move postgresql-redis bridge to own state

merge-requests/110/head
Deimos 5 years ago
parent
commit
384c5c985f
  1. 14
      salt/salt/postgresql-redis-bridge.sls
  2. 0
      salt/salt/postgresql_redis_bridge.service.jinja2
  3. 12
      salt/salt/redis/init.sls
  4. 1
      salt/salt/top.sls

14
salt/salt/postgresql-redis-bridge.sls

@ -0,0 +1,14 @@
/etc/systemd/system/postgresql_redis_bridge.service:
file.managed:
- source: salt://postgresql_redis_bridge.service.jinja2
- template: jinja
- user: root
- group: root
- mode: 644
- require:
- service: redis.service
- service: postgresql
postgresql_redis_bridge.service:
service.running:
- enable: True

0
salt/salt/redis/postgresql_redis_bridge.service.jinja2 → salt/salt/postgresql_redis_bridge.service.jinja2

12
salt/salt/redis/init.sls

@ -116,15 +116,3 @@ redis.service:
- require:
- user: redis-user
- cmd: install-redis
/etc/systemd/system/postgresql_redis_bridge.service:
file.managed:
- source: salt://redis/postgresql_redis_bridge.service.jinja2
- template: jinja
- user: root
- group: root
- mode: 644
postgresql_redis_bridge.service:
service.running:
- enable: True

1
salt/salt/top.sls

@ -12,6 +12,7 @@ base:
- redis.breached-passwords
- redis.modules.rebloom
- redis.modules.redis-cell
- postgresql-redis-bridge
- scripts
- cmark-gfm
- prometheus.exporters.node_exporter

Loading…
Cancel
Save