forked from ungleich-public/cdist
use default parameter
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
b9dcd01ea1
commit
ed10f4e5b4
2 changed files with 2 additions and 6 deletions
|
@ -21,12 +21,7 @@
|
|||
base_dir=/etc/iptables.d
|
||||
|
||||
name="$__object_id"
|
||||
|
||||
if [ -f "$__object/parameter/state" ]; then
|
||||
state="$(cat "$__object/parameter/state")"
|
||||
else
|
||||
state="present"
|
||||
fi
|
||||
state="$(cat "$__object/parameter/state")"
|
||||
|
||||
################################################################################
|
||||
# Basic setup
|
||||
|
|
1
cdist/conf/type/__iptables_rule/parameter/default/state
Normal file
1
cdist/conf/type/__iptables_rule/parameter/default/state
Normal file
|
@ -0,0 +1 @@
|
|||
present
|
Loading…
Reference in a new issue