cdist-type__zypper_service(7)

Daniel Heule


Table of Contents

1. NAME
2. DESCRIPTION
3. REQUIRED PARAMETERS
4. OPTIONAL PARAMETERS
5. BOOLEAN PARAMETERS
6. EXAMPLES
7. SEE ALSO
8. COPYING

1. NAME

cdist-type__zypper_service - service management with zypper

2. DESCRIPTION

zypper is usually used on SuSE systems to manage services.

3. REQUIRED PARAMETERS

service_uri
Uri of the service

4. OPTIONAL PARAMETERS

service_desc
If supplied, use the service_desc and not the object id as descritpion for the service.
state
Either "present" or "absent", defaults to "present"
type
Defaults to "ris", the standard type of services at SLES11. For other values, see manpage of zypper.

5. BOOLEAN PARAMETERS

remove-all-other-services
Drop all other services found on the target host before adding the new one.
remove-all-repos
If supplied, remove all existing repos prior to setup the new service.

6. 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

# 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"

# 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"

7. SEE ALSO

  • cdist-type(7)

8. COPYING

Copyright (C) 2013 Daniel Heule. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).