CDIST-TYPE__ZYPPER_SERVICE(7)
π cdist-type__zypper_service π
okay bestie, so this is a page from the cdist manual set β cdist-type__zypper_service, section 7 π β and it's literally all about managing services with zypper. come sit with me, it's short and it's cute.
β¨ NAME β¨
cdist-type__zypper_service β service management with zypper, no cap π¦
πΈ DESCRIPTION πΈ
so, zypper is what people usually use on SuSE systems to manage services. that's it, that's the vibe. π
π₯ REQUIRED PARAMETERS π₯
these are non-negotiable bestie, you literally cannot skip them:
uriβ the uri of the service. it's giving "mandatory main character energy" β¨
π OPTIONAL PARAMETERS π
the little extras, the accessories to the outfit:
service_descβ if you supply this, it gets used as the description for the service instead of the object id. like, a nickname for your service π«Άstateβ either"present"or"absent", and it defaults to"present". so if you say nothing, it's showing up πtypeβ defaults to"ris", which is the standard type of services at SLES11. for other values, go check the manpage ofzypper. i'm not making those up for you, go read it π
π BOOLEAN PARAMETERS π
just flip them on, they're flags, they're switches, they're yes/no girlies:
remove-all-other-servicesβ drops all other services found on the target host before adding the new one. like clearing your camera roll before a photoshoot πΈremove-all-reposβ if supplied, removes all existing repos prior to setting up the new service. yes, ALL of them. proceed with intention π§
not me warning you: these two are the dramatic ones.remove-all-other-servicesandremove-all-reposdo exactly what their names say. read them twice before you ship them. π
π EXAMPLES π
here's the group chat screenshot, literally the exact lines:
# 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" --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 other services or repos
__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 other services or repos
__zypper_service INTERNAL_SLES11_SP3 --state absent --uri "http://path/to/your/ris/dir"
so like: first one goes feral and wipes everything else, second one is chill and touches nothing else, third one just drops the service by uri and leaves the rest of the world alone. pick your fighter π
π AUTHORS π
Daniel Heule <hda--@--sfs.biz> β iconic, we thank him π«Ά
π COPYING π
Copyright (C) 2013 Daniel Heule. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
periodt. π
β COPYRIGHT β
ungleich GmbH 2021
and that's the whole page bestie, we ate and left no crumbs π this was version 7.0.0, dated Jul 31, 2022 β cdist type cdist-type__zypper_service, section 7. mwah, go manage those services π
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms