Code
stringlengths
103
85.9k
Summary
listlengths
0
94
Please provide a description of the function:def user_create(alias, passwd, usrgrps, **kwargs): ''' .. versionadded:: 2016.3.0 Create new zabbix user .. note:: This function accepts all standard user properties: keyword argument names differ depending on your zabbix version, see here__...
[]
Please provide a description of the function:def user_delete(users, **kwargs): ''' Delete zabbix users. .. versionadded:: 2016.3.0 :param users: array of users (userids) to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param...
[]
Please provide a description of the function:def user_exists(alias, **kwargs): ''' Checks if user with given alias exists. .. versionadded:: 2016.3.0 :param alias: user alias :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _con...
[]
Please provide a description of the function:def user_get(alias=None, userids=None, **kwargs): ''' Retrieve users according to the given parameters. .. versionadded:: 2016.3.0 :param alias: user alias :param userids: return only users with the given IDs :param _connection_user: Optional - zabb...
[]
Please provide a description of the function:def user_update(userid, **kwargs): ''' .. versionadded:: 2016.3.0 Update existing users .. note:: This function accepts all standard user properties: keyword argument names differ depending on your zabbix version, see here__. .. __:...
[]
Please provide a description of the function:def user_getmedia(userids=None, **kwargs): ''' .. versionadded:: 2016.3.0 Retrieve media according to the given parameters .. note:: This function accepts all standard usermedia.get properties: keyword argument names differ depending on your...
[]
Please provide a description of the function:def user_addmedia(userids, active, mediatypeid, period, sendto, severity, **kwargs): ''' Add new media to multiple users. .. versionadded:: 2016.3.0 :param userids: ID of the user that uses the media :param active: Whether the media is enabled (0 enable...
[]
Please provide a description of the function:def user_deletemedia(mediaids, **kwargs): ''' Delete media by id. .. versionadded:: 2016.3.0 :param mediaids: IDs of the media to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :par...
[]
Please provide a description of the function:def usergroup_delete(usergroupids, **kwargs): ''' .. versionadded:: 2016.3.0 :param usergroupids: IDs of the user groups to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connec...
[]
Please provide a description of the function:def usergroup_exists(name=None, node=None, nodeids=None, **kwargs): ''' Checks if at least one user group that matches the given filter criteria exists .. versionadded:: 2016.3.0 :param name: names of the user groups :param node: name of the node the us...
[]
Please provide a description of the function:def usergroup_get(name=None, usrgrpids=None, userids=None, **kwargs): ''' .. versionadded:: 2016.3.0 Retrieve user groups according to the given parameters .. note:: This function accepts all usergroup_get properties: keyword argument names ...
[]
Please provide a description of the function:def usergroup_update(usrgrpid, **kwargs): ''' .. versionadded:: 2016.3.0 Update existing user group .. note:: This function accepts all standard user group properties: keyword argument names differ depending on your zabbix version, see here_...
[]
Please provide a description of the function:def usergroup_list(**kwargs): ''' Retrieve all enabled user groups. .. versionadded:: 2016.3.0 :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connection_password: Optional - zabbix pas...
[]
Please provide a description of the function:def host_create(host, groups, interfaces, **kwargs): ''' .. versionadded:: 2016.3.0 Create new host .. note:: This function accepts all standard host properties: keyword argument names differ depending on your zabbix version, see here__. ...
[]
Please provide a description of the function:def host_delete(hostids, **kwargs): ''' Delete hosts. .. versionadded:: 2016.3.0 :param hostids: Hosts (hostids) to delete. :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connectio...
[]
Please provide a description of the function:def host_exists(host=None, hostid=None, name=None, node=None, nodeids=None, **kwargs): ''' Checks if at least one host that matches the given filter criteria exists. .. versionadded:: 2016.3.0 :param host: technical name of the host :param hostids: Host...
[]
Please provide a description of the function:def host_get(host=None, name=None, hostids=None, **kwargs): ''' .. versionadded:: 2016.3.0 Retrieve hosts according to the given parameters .. note:: This function accepts all optional host.get parameters: keyword argument names differ depen...
[]
Please provide a description of the function:def host_update(hostid, **kwargs): ''' .. versionadded:: 2016.3.0 Update existing hosts .. note:: This function accepts all standard host and host.update properties: keyword argument names differ depending on your zabbix version, see the ...
[]
Please provide a description of the function:def host_inventory_get(hostids, **kwargs): ''' Retrieve host inventory according to the given parameters. See: https://www.zabbix.com/documentation/2.4/manual/api/reference/host/object#host_inventory .. versionadded:: 2019.2.0 :param hostids: Return onl...
[]
Please provide a description of the function:def host_inventory_set(hostid, **kwargs): ''' Update host inventory items NOTE: This function accepts all standard host: keyword argument names for inventory see: https://www.zabbix.com/documentation/2.4/manual/api/reference/host/object#host_inventory .....
[]
Please provide a description of the function:def hostgroup_create(name, **kwargs): ''' .. versionadded:: 2016.3.0 Create a host group .. note:: This function accepts all standard host group properties: keyword argument names differ depending on your zabbix version, see here__. ...
[]
Please provide a description of the function:def hostgroup_delete(hostgroupids, **kwargs): ''' Delete the host group. .. versionadded:: 2016.3.0 :param hostgroupids: IDs of the host groups to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's do...
[]
Please provide a description of the function:def hostgroup_exists(name=None, groupid=None, node=None, nodeids=None, **kwargs): ''' Checks if at least one host group that matches the given filter criteria exists. .. versionadded:: 2016.3.0 :param name: names of the host groups :param groupid: host ...
[]
Please provide a description of the function:def hostgroup_get(name=None, groupids=None, hostids=None, **kwargs): ''' .. versionadded:: 2016.3.0 Retrieve host groups according to the given parameters .. note:: This function accepts all standard hostgroup.get properities: keyword argume...
[]
Please provide a description of the function:def hostgroup_update(groupid, name=None, **kwargs): ''' .. versionadded:: 2016.3.0 Update existing hosts group .. note:: This function accepts all standard host group properties: keyword argument names differ depending on your zabbix version...
[]
Please provide a description of the function:def hostinterface_create(hostid, ip_, dns='', main=1, if_type=1, useip=1, port=None, **kwargs): ''' .. versionadded:: 2016.3.0 Create new host interface .. note:: This function accepts all standard host group interface: keyword argument name...
[]
Please provide a description of the function:def hostinterface_delete(interfaceids, **kwargs): ''' Delete host interface .. versionadded:: 2016.3.0 :param interfaceids: IDs of the host interfaces to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see modu...
[]
Please provide a description of the function:def hostinterface_update(interfaceid, **kwargs): ''' .. versionadded:: 2016.3.0 Update host interface .. note:: This function accepts all standard hostinterface: keyword argument names differ depending on your zabbix version, see here__. ...
[]
Please provide a description of the function:def usermacro_get(macro=None, hostids=None, templateids=None, hostmacroids=None, globalmacroids=None, globalmacro=False, **kwargs): ''' Retrieve user macros according to the given parameters. Args: macro: name of the usermacro ...
[]
Please provide a description of the function:def usermacro_create(macro, value, hostid, **kwargs): ''' Create new host usermacro. :param macro: name of the host usermacro :param value: value of the host usermacro :param hostid: hostid or templateid :param _connection_user: Optional - zabbix use...
[]
Please provide a description of the function:def usermacro_delete(macroids, **kwargs): ''' Delete host usermacros. :param macroids: macroids of the host usermacros :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connection_passwor...
[]
Please provide a description of the function:def usermacro_update(hostmacroid, value, **kwargs): ''' Update existing host usermacro. :param hostmacroid: id of the host usermacro :param value: new value of the host usermacro :param _connection_user: Optional - zabbix user (can also be set in opts or...
[]
Please provide a description of the function:def usermacro_updateglobal(globalmacroid, value, **kwargs): ''' Update existing global usermacro. :param globalmacroid: id of the host usermacro :param value: new value of the host usermacro :param _connection_user: Optional - zabbix user (can also be se...
[]
Please provide a description of the function:def mediatype_get(name=None, mediatypeids=None, **kwargs): ''' Retrieve mediatypes according to the given parameters. Args: name: Name or description of the mediatype mediatypeids: ids of the mediatypes optional kwargs: ...
[]
Please provide a description of the function:def mediatype_create(name, mediatype, **kwargs): ''' Create new mediatype .. note:: This function accepts all standard mediatype properties: keyword argument names differ depending on your zabbix version, see here__. .. __: https://www.z...
[]
Please provide a description of the function:def mediatype_delete(mediatypeids, **kwargs): ''' Delete mediatype :param interfaceids: IDs of the mediatypes to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connection_passwo...
[]
Please provide a description of the function:def mediatype_update(mediatypeid, name=False, mediatype=False, **kwargs): ''' Update existing mediatype .. note:: This function accepts all standard mediatype properties: keyword argument names differ depending on your zabbix version, see here__....
[]
Please provide a description of the function:def template_get(name=None, host=None, templateids=None, **kwargs): ''' Retrieve templates according to the given parameters. Args: host: technical name of the template name: visible name of the template hostids: ids of the templates ...
[]
Please provide a description of the function:def run_query(method, params, **kwargs): ''' Send Zabbix API call Args: method: actual operation to perform via the API params: parameters required for specific method optional kwargs: _connection_user: zabbix user (can a...
[]
Please provide a description of the function:def configuration_import(config_file, rules=None, file_format='xml', **kwargs): ''' .. versionadded:: 2017.7 Imports Zabbix configuration specified in file to Zabbix server. :param config_file: File with Zabbix config (local or remote) :param rules: Opt...
[]
Please provide a description of the function:def triggerid_get(hostid=None, trigger_desc=None, priority=4, **kwargs): ''' .. versionadded:: Fluorine Retrieve trigger ID and description based in host ID and trigger description. .. note:: https://www.zabbix.com/documentation/3.4/manual/api/refer...
[]
Please provide a description of the function:def service_add(service_rootid=None, service_name=None, triggerid=None, **kwargs): ''' .. versionadded:: Fluorine Create service under service with id specified as parameter. .. note:: https://www.zabbix.com/documentation/3.4/manual/api/reference/se...
[]
Please provide a description of the function:def service_get(service_name=None, service_rootid=None, **kwargs): ''' .. versionadded:: Fluorine Get service according to name and parent service ID. .. note:: https://www.zabbix.com/documentation/3.4/manual/api/reference/service/get :param se...
[]
Please provide a description of the function:def service_delete(service_id=None, **kwargs): ''' .. versionadded:: Fluorine Delete service specified by id. .. note:: https://www.zabbix.com/documentation/3.4/manual/api/reference/service/delete :param service_id: ID of service which should b...
[]
Please provide a description of the function:def present(name, running=None, source=None, profiles=None, config=None, devices=None, architecture='x86_64', ephemeral=False, restart_on_change=False, remote_addr=Non...
[]
Please provide a description of the function:def absent(name, stop=False, remote_addr=None, cert=None, key=None, verify_cert=True): ''' Ensure a LXD container is not present, destroying it if present name : The name of the container to destroy ...
[]
Please provide a description of the function:def running(name, restart=False, remote_addr=None, cert=None, key=None, verify_cert=True): ''' Ensure a LXD container is running and restart it if restart is True name : The name of the containe...
[]
Please provide a description of the function:def stopped(name, kill=False, remote_addr=None, cert=None, key=None, verify_cert=True): ''' Ensure a LXD container is stopped, kill it if kill is true else stop it name : The name of the contain...
[]
Please provide a description of the function:def migrated(name, remote_addr, cert, key, verify_cert, src_remote_addr, stop_and_start=False, src_cert=None, src_key=None, src_verify_cert=None): ''' Ens...
[]
Please provide a description of the function:def uuid(dev=None): ''' Return the bcache UUID of a block device. If no device is given, the Cache UUID is returned. CLI example: .. code-block:: bash salt '*' bcache.uuid salt '*' bcache.uuid /dev/sda salt '*' bcache.uuid bcach...
[]
Please provide a description of the function:def attach_(dev=None): ''' Attach a backing devices to a cache set If no dev is given, all backing devices will be attached. CLI example: .. code-block:: bash salt '*' bcache.attach sdc salt '*' bcache.attach /dev/bcache1 :return:...
[]
Please provide a description of the function:def detach(dev=None): ''' Detach a backing device(s) from a cache set If no dev is given, all backing devices will be attached. Detaching a backing device will flush it's write cache. This should leave the underlying device in a consistent state, but mig...
[]
Please provide a description of the function:def stop(dev=None): ''' Stop a bcache device If no device is given, all backing devices will be detached from the cache, which will subsequently be stopped. .. warning:: 'Stop' on an individual backing device means hard-stop; no attempt at fl...
[]
Please provide a description of the function:def back_make(dev, cache_mode='writeback', force=False, attach=True, bucket_size=None): ''' Create a backing device for attachment to a set. Because the block size must be the same, a cache set already needs to exist. CLI example: .. code-block:: bash ...
[]
Please provide a description of the function:def cache_make(dev, reserved=None, force=False, block_size=None, bucket_size=None, attach=True): ''' Create BCache cache on a block device. If blkdiscard is available the entire device will be properly cleared in advance. CLI example: .. code-block:: ba...
[]
Please provide a description of the function:def config_(dev=None, **kwargs): ''' Show or update config of a bcache device. If no device is given, operate on the cache set itself. CLI example: .. code-block:: bash salt '*' bcache.config salt '*' bcache.config bcache1 salt...
[]
Please provide a description of the function:def status(stats=False, config=False, internals=False, superblock=False, alldevs=False): ''' Show the full status of the BCache system and optionally all it's involved devices CLI example: .. code-block:: bash salt '*' bcache.status salt '*...
[]
Please provide a description of the function:def device(dev, stats=False, config=False, internals=False, superblock=False): ''' Check the state of a single bcache device CLI example: .. code-block:: bash salt '*' bcache.device bcache0 salt '*' bcache.device /dev/sdc stats=True :p...
[]
Please provide a description of the function:def super_(dev): ''' Read out BCache SuperBlock CLI example: .. code-block:: bash salt '*' bcache.device bcache0 salt '*' bcache.device /dev/sdc ''' dev = _devpath(dev) ret = {} res = _run_all('bcache-super-show {0}'.forma...
[]
Please provide a description of the function:def _devbase(dev): ''' Basename of just about any dev ''' dev = os.path.realpath(os.path.expandvars(dev)) dev = os.path.basename(dev) return dev
[]
Please provide a description of the function:def _syspath(dev): ''' Full SysFS path of a device ''' dev = _devbase(dev) dev = re.sub(r'^([vhs][a-z]+)([0-9]+)', r'\1/\1\2', dev) # name = re.sub(r'^([a-z]+)(?<!(bcache|md|dm))([0-9]+)', r'\1/\1\2', name) return os.path.join('/sys/block/', dev)
[]
Please provide a description of the function:def _bdev(dev=None): ''' Resolve a bcacheX or cache to a real dev :return: basename of bcache dev ''' if dev is None: dev = _fssys('cache0') else: dev = _bcpath(dev) if not dev: return False else: return _devba...
[]
Please provide a description of the function:def _fssys(name, value=None, log_lvl=None, log_msg=None): ''' Simple wrapper to interface with bcache SysFS ''' fspath = _fspath() if not fspath: return False else: return _sysfs_attr([fspath, name], value, log_lvl, log_msg)
[]
Please provide a description of the function:def _bcsys(dev, name, value=None, log_lvl=None, log_msg=None): ''' Simple wrapper to interface with backing devs SysFS ''' return _sysfs_attr([_bcpath(dev), name], value, log_lvl, log_msg)
[]
Please provide a description of the function:def _sysfs_attr(name, value=None, log_lvl=None, log_msg=None): ''' Simple wrapper with logging around sysfs.attr ''' if isinstance(name, six.string_types): name = [name] res = __salt__['sysfs.attr'](os.path.join(*name), value) if not res and l...
[]
Please provide a description of the function:def _sysfs_parse(path, base_attr=None, stats=False, config=False, internals=False, options=False): ''' Helper function for parsing BCache's SysFS interface ''' result = {} # ---------------- Parse through the interfaces list ---------------- intfs = ...
[]
Please provide a description of the function:def _size_map(size): ''' Map Bcache's size strings to real bytes ''' try: # I know, I know, EAFP. # But everything else is reason for None if not isinstance(size, int): if re.search(r'[Kk]', size): size = 10...
[]
Please provide a description of the function:def _sizes(dev): ''' Return neigh useless sizing info about a blockdev :return: (total size in blocks, blocksize, maximum discard size in bytes) ''' dev = _devbase(dev) # standarization yay block_sizes = ('hw_sector_size', 'minimum_io_size', 'phy...
[]
Please provide a description of the function:def _wipe(dev): ''' REALLY DESTRUCTIVE STUFF RIGHT AHEAD ''' endres = 0 dev = _devbase(dev) size, block, discard = _sizes(dev) if discard is None: log.error('Unable to read SysFS props for %s', dev) return None elif not disca...
[]
Please provide a description of the function:def _wait(lfunc, log_lvl=None, log_msg=None, tries=10): ''' Wait for lfunc to be True :return: True if lfunc succeeded within tries, False if it didn't ''' i = 0 while i < tries: time.sleep(1) if lfunc(): return True ...
[]
Please provide a description of the function:def _run_all(cmd, log_lvl=None, log_msg=None, exitcode=0): ''' Simple wrapper around cmd.run_all log_msg can contain {0} for stderr :return: True or stdout, False if retcode wasn't exitcode ''' res = __salt__['cmd.run_all'](cmd) if res['retcode'] ...
[]
Please provide a description of the function:def get_release_number(name): ''' Returns the release number of a given release code name in a ``<year>.<month>`` context. If the release name has not been given an assigned release number, the function returns a string. If the release cannot be found, i...
[]
Please provide a description of the function:def _check_release_cmp(name): ''' Helper function to compare release codename versions to the minion's current Salt version. If release codename isn't found, the function returns None. Otherwise, it returns the results of the version comparison as docume...
[]
Please provide a description of the function:def install(runas=None, path=None): ''' Install rbenv systemwide CLI Example: .. code-block:: bash salt '*' rbenv.install ''' path = path or _rbenv_path(runas) path = os.path.expanduser(path) return _install_rbenv(path, runas) and _...
[]
Please provide a description of the function:def update(runas=None, path=None): ''' Updates the current versions of rbenv and ruby-build runas The user under which to run rbenv. If not specified, then rbenv will be run as the user under which Salt is running. CLI Example: .. code-...
[]
Please provide a description of the function:def install_ruby(ruby, runas=None): ''' Install a ruby implementation. ruby The version of Ruby to install, should match one of the versions listed by :py:func:`rbenv.list <salt.modules.rbenv.list>` runas The user under which to run ...
[]
Please provide a description of the function:def uninstall_ruby(ruby, runas=None): ''' Uninstall a ruby implementation. ruby The version of ruby to uninstall. Should match one of the versions listed by :py:func:`rbenv.versions <salt.modules.rbenv.versions>`. runas The user unde...
[]
Please provide a description of the function:def versions(runas=None): ''' List the installed versions of ruby CLI Example: .. code-block:: bash salt '*' rbenv.versions ''' ret = _rbenv_exec(['versions', '--bare'], runas=runas) return [] if ret is False else ret.splitlines()
[]
Please provide a description of the function:def default(ruby=None, runas=None): ''' Returns or sets the currently defined default ruby ruby The version to set as the default. Should match one of the versions listed by :py:func:`rbenv.versions <salt.modules.rbenv.versions>`. Leave b...
[]
Please provide a description of the function:def list_(runas=None): ''' List the installable versions of ruby runas The user under which to run rbenv. If not specified, then rbenv will be run as the user under which Salt is running. CLI Example: .. code-block:: bash salt ...
[]
Please provide a description of the function:def do(cmdline, runas=None, env=None): ''' Execute a ruby command with rbenv's shims from the user or the system CLI Example: .. code-block:: bash salt '*' rbenv.do 'gem list bundler' salt '*' rbenv.do 'gem list bundler' deploy ''' ...
[]
Please provide a description of the function:def do_with_ruby(ruby, cmdline, runas=None): ''' Execute a ruby command with rbenv's shims using a specific ruby version CLI Example: .. code-block:: bash salt '*' rbenv.do_with_ruby 2.0.0-p0 'gem list bundler' salt '*' rbenv.do_with_ruby 2...
[]
Please provide a description of the function:def installed(name, enabled=True): ''' Make sure that we have the given bundle ID or path to command installed in the assistive access panel. name The bundle ID or path to command enable Should assistive access be enabled on this applica...
[]
Please provide a description of the function:def _enable(name, started, result=True, skip_verify=False, **kwargs): ''' Enable the service ''' ret = {} if not skip_verify: # is service available? try: if not _available(name, ret): return ret except...
[]
Please provide a description of the function:def _disable(name, started, result=True, skip_verify=False, **kwargs): ''' Disable the service ''' ret = {} if not skip_verify: # is service available? try: if not _available(name, ret): ret['result'] = True ...
[]
Please provide a description of the function:def _available(name, ret): ''' Check if the service is available ''' avail = False if 'service.available' in __salt__: avail = __salt__['service.available'](name) elif 'service.get_all' in __salt__: avail = name in __salt__['service.ge...
[]
Please provide a description of the function:def running(name, enable=None, sig=None, init_delay=None, no_block=False, unmask=False, unmask_runtime=False, **kwargs): ''' Ensure that the service is running name The n...
[]
Please provide a description of the function:def dead(name, enable=None, sig=None, init_delay=None, **kwargs): ''' Ensure that the named service is dead by stopping the service if it is running name The name of the init or rc script used to manage the service ...
[]
Please provide a description of the function:def enabled(name, skip_verify=False, **kwargs): ''' Ensure that the service is enabled on boot, only use this state if you don't want to manage the running process, remember that if you want to enable a running service to use the enabl...
[]
Please provide a description of the function:def disabled(name, skip_verify=False, **kwargs): ''' Ensure that the service is disabled on boot, only use this state if you don't want to manage the running process, remember that if you want to disable a service to use the enable: F...
[]
Please provide a description of the function:def masked(name, runtime=False): ''' .. versionadded:: 2017.7.0 .. note:: This state is only available on minions which use systemd_. Ensures that the named service is masked (i.e. prevented from being started). name Name of the ser...
[]
Please provide a description of the function:def mod_watch(name, sfun=None, sig=None, full_restart=False, init_delay=None, force=False, **kwargs): ''' The service watcher, called to invoke the watch command. When called, it ...
[]
Please provide a description of the function:def recv(files, dest): ''' Used with salt-cp, pass the files dict, and the destination. This function receives small fast copy files from the master via salt-cp. It does not work via the CLI. ''' ret = {} for path, data in six.iteritems(files): ...
[]
Please provide a description of the function:def recv_chunked(dest, chunk, append=False, compressed=True, mode=None): ''' This function receives files copied to the minion using ``salt-cp`` and is not intended to be used directly on the CLI. ''' if 'retcode' not in __context__: __context__['...
[]
Please provide a description of the function:def _mk_client(): ''' Create a file client and add it to the context. Each file client needs to correspond to a unique copy of the opts dictionary, therefore it's hashed by the id of the __opts__ dict ''' if 'cp.fileclient_{0}'.format(id(__opts__...
[]
Please provide a description of the function:def get_file(path, dest, saltenv='base', makedirs=False, template=None, gzip=None, **kwargs): ''' .. versionchanged:: 2018.3.0 ``dest`` can now be a directory Used to get a sin...
[]
Please provide a description of the function:def get_template(path, dest, template='jinja', saltenv='base', makedirs=False, **kwargs): ''' Render a file as a template before setting it down. Warning, order is not the same a...
[]
Please provide a description of the function:def get_dir(path, dest, saltenv='base', template=None, gzip=None, **kwargs): ''' Used to recursively copy a directory from the salt master CLI Example: .. code-block:: bash salt '*' cp.get_dir salt://path/to/dir/ /minion/dest get_dir supports ...
[]
Please provide a description of the function:def get_url(path, dest='', saltenv='base', makedirs=False, source_hash=None): ''' .. versionchanged:: 2018.3.0 ``dest`` can now be a directory Used to get a single file from a URL. path A URL to download a file from. Supported URL schemes ar...
[]
Please provide a description of the function:def get_file_str(path, saltenv='base'): ''' Download a file from a URL to the Minion cache directory and return the contents of that file Returns ``False`` if Salt was unable to cache a file from a URL. CLI Example: .. code-block:: bash sa...
[]