forked from ungleich-public/cdist
Merge branch 'bugfix__zypper' of https://github.com/dheule/cdist
This commit is contained in:
commit
ae53b8e381
3 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
|||
#exec >&2
|
||||
#set -x
|
||||
|
||||
zypper_def_opts=" -q "
|
||||
zypper_def_opts=" -q --non-interactive --gpg-auto-import-keys "
|
||||
|
||||
if [ -f "$__object/parameter/repo_desc" ]; then
|
||||
desc="$(cat "$__object/parameter/repo_desc")"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#exec >&2
|
||||
#set -x
|
||||
|
||||
zypper_def_opts=" -q "
|
||||
zypper_def_opts=" -q --non-interactive --gpg-auto-import-keys "
|
||||
|
||||
if [ -f "$__object/parameter/service_desc" ]; then
|
||||
desc="$(cat "$__object/parameter/service_desc")"
|
||||
|
@ -73,10 +73,12 @@ case "$state_should" in
|
|||
present)
|
||||
echo zypper $zypper_def_opts addservice -t "$stype" "$uri" \"$desc\"
|
||||
echo zypper $zypper_def_opts refs
|
||||
echo zypper $zypper_def_opts ref
|
||||
;;
|
||||
absent)
|
||||
echo zypper $zypper_def_opts removeservice "$service_id"
|
||||
echo zypper $zypper_def_opts refs
|
||||
echo zypper $zypper_def_opts ref
|
||||
;;
|
||||
*)
|
||||
echo "Unknown state: $state_should" >&2
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#exec >&2
|
||||
#set -x
|
||||
|
||||
zypper_def_opts=" -q "
|
||||
|
||||
if [ -f "$__object/parameter/uri" ]; then
|
||||
uri="$(cat "$__object/parameter/uri")"
|
||||
|
|
Loading…
Reference in a new issue