PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/ssh_pkg.py |
""" Service support for the REST example """ import logging import salt.utils.platform log = logging.getLogger(__name__) # Define the module's virtual name __virtualname__ = "pkg" def __virtual__(): """ Only work on proxy """ try: if ( salt.utils.platform.is_proxy() and __opts__["proxy"]["proxytype"] == "ssh_sample" ): return __virtualname__ except KeyError: return ( False, "The ssh_package execution module failed to load. Check the " "proxy key in pillar.", ) return ( False, "The ssh_package execution module failed to load: only works on an " "ssh_sample proxy minion.", ) def list_pkgs(versions_as_list=False, **kwargs): return __proxy__["ssh_sample.package_list"]() def install(name=None, refresh=False, fromrepo=None, pkgs=None, sources=None, **kwargs): return __proxy__["ssh_sample.package_install"](name, **kwargs) def remove(name=None, pkgs=None, **kwargs): return __proxy__["ssh_sample.package_remove"](name)