Skip to content

Commit

Permalink
feat(deprecation): include ng promotion warning to all state files
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Nov 26, 2019
1 parent 4c702bc commit 4348b59
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions fail2ban/config.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% from "fail2ban/map.jinja" import fail2ban with context %}
include:
- fail2ban.deprecated
- fail2ban
{{ fail2ban.prefix }}/etc/fail2ban/fail2ban.local:
Expand Down
3 changes: 3 additions & 0 deletions fail2ban/init.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% from "fail2ban/map.jinja" import fail2ban with context %}
include:
- fail2ban.deprecated
fail2ban:
pkg.installed:
- name: {{ fail2ban.package }}
Expand Down
3 changes: 3 additions & 0 deletions fail2ban/ng/config.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
# vim: ft=sls

include:
- fail2ban.deprecated

{% from "fail2ban/ng/map.jinja" import fail2ban with context %}
fail2ban.ng.config.fail2ban:
Expand Down
1 change: 1 addition & 0 deletions fail2ban/ng/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# vim: ft=sls

include:
- fail2ban.deprecated
- fail2ban.ng.install
- fail2ban.ng.config
- fail2ban.ng.service
3 changes: 3 additions & 0 deletions fail2ban/ng/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

{% from "fail2ban/ng/map.jinja" import fail2ban with context %}
include:
- fail2ban.deprecated
fail2ban.ng.install:
pkg.installed:
- name: {{ fail2ban.package }}
3 changes: 3 additions & 0 deletions fail2ban/ng/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

{% from "fail2ban/ng/map.jinja" import fail2ban with context %}
include:
- fail2ban.deprecated
fail2ban.ng.service:
{% if ( 'enabled' in fail2ban and fail2ban.enabled ) or ('enabled' not in fail2ban ) %}
service.running:
Expand Down

0 comments on commit 4348b59

Please sign in to comment.