rename parameter service_uri to uri as requested
This commit is contained in:
parent
831acd16c6
commit
c5152b75f2
6 changed files with 13 additions and 13 deletions
|
@ -20,8 +20,8 @@
|
|||
#
|
||||
# Manage services with Zypper (mostly suse)
|
||||
#
|
||||
if [ -f "$__object/parameter/service_uri" ]; then
|
||||
uri="$(cat "$__object/parameter/service_uri")"
|
||||
if [ -f "$__object/parameter/uri" ]; then
|
||||
uri="$(cat "$__object/parameter/uri")"
|
||||
else
|
||||
uri="/$__object_id"
|
||||
fi
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#
|
||||
# Manage services with Zypper (mostly suse)
|
||||
#
|
||||
if [ -f "$__object/parameter/service_uri" ]; then
|
||||
uri="$(cat "$__object/parameter/service_uri")"
|
||||
if [ -f "$__object/parameter/uri" ]; then
|
||||
uri="$(cat "$__object/parameter/uri")"
|
||||
else
|
||||
uri="/$__object_id"
|
||||
fi
|
||||
|
|
|
@ -33,8 +33,8 @@ else
|
|||
desc="$__object_id"
|
||||
fi
|
||||
|
||||
if [ -f "$__object/parameter/service_uri" ]; then
|
||||
uri="$(cat "$__object/parameter/service_uri")"
|
||||
if [ -f "$__object/parameter/uri" ]; then
|
||||
uri="$(cat "$__object/parameter/uri")"
|
||||
else
|
||||
uri="$__object_id"
|
||||
fi
|
||||
|
|
|
@ -15,7 +15,7 @@ zypper is usually used on SuSE systems to manage services.
|
|||
|
||||
REQUIRED PARAMETERS
|
||||
-------------------
|
||||
service_uri::
|
||||
uri::
|
||||
Uri of the service
|
||||
|
||||
|
||||
|
@ -45,13 +45,13 @@ EXAMPLES
|
|||
|
||||
--------------------------------------------------------------------------------
|
||||
# Ensure that internal SLES11 SP3 RIS is in installed and all other services and repos are discarded
|
||||
__zypper_service INTERNAL_SLES11_SP3 --service_desc "Internal SLES11 SP3 RIS" --service_uri "http://path/to/your/ris/dir" --remove-all-other-services --remove-all-repos
|
||||
__zypper_service INTERNAL_SLES11_SP3 --service_desc "Internal SLES11 SP3 RIS" --uri "http://path/to/your/ris/dir" --remove-all-other-services --remove-all-repos
|
||||
|
||||
# Ensure that internal SLES11 SP3 RIS is in installed, no changes to ohter services or repos
|
||||
__zypper_service INTERNAL_SLES11_SP3 --service_desc "Internal SLES11 SP3 RIS" --service_uri "http://path/to/your/ris/dir"
|
||||
__zypper_service INTERNAL_SLES11_SP3 --service_desc "Internal SLES11 SP3 RIS" --uri "http://path/to/your/ris/dir"
|
||||
|
||||
# Drop service by uri, no changes to ohter services or repos
|
||||
__zypper_service INTERNAL_SLES11_SP3 --state absent --service_uri "http://path/to/your/ris/dir"
|
||||
__zypper_service INTERNAL_SLES11_SP3 --state absent --uri "http://path/to/your/ris/dir"
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
zypper_def_opts=" -q "
|
||||
|
||||
if [ -f "$__object/parameter/service_uri" ]; then
|
||||
uri="$(cat "$__object/parameter/service_uri")"
|
||||
if [ -f "$__object/parameter/uri" ]; then
|
||||
uri="$(cat "$__object/parameter/uri")"
|
||||
else
|
||||
uri="$__object_id"
|
||||
fi
|
||||
|
|
|
@ -1 +1 @@
|
|||
service_uri
|
||||
uri
|
||||
|
|
Loading…
Reference in a new issue