text
stringlengths
81
112k
Install a .pkg from an URI or an absolute path. :param str source: The path to a package. :param str package_id: The package ID :return: True if successful, otherwise False :rtype: bool CLI Example: .. code-block:: bash salt '*' pkgutil.install source=/vagrant/build_essentials.pkg ...
.. versionadded:: 2016.3.0 Remove the receipt data about the specified package. Does not remove files. .. warning:: DO NOT use this command to fix broken package design :param str package_id: The name of the package to forget :return: True if successful, otherwise False :rtype: bool ...
Return a list of the currently installed app ids. CLI Example: .. code-block:: bash salt marathon-minion-id marathon.apps def apps(): ''' Return a list of the currently installed app ids. CLI Example: .. code-block:: bash salt marathon-minion-id marathon.apps ''' r...
Update the specified app with the given configuration. CLI Example: .. code-block:: bash salt marathon-minion-id marathon.update_app my-app '<config yaml>' def update_app(id, config): ''' Update the specified app with the given configuration. CLI Example: .. code-block:: bash ...
Remove the specified app from the server. CLI Example: .. code-block:: bash salt marathon-minion-id marathon.rm_app my-app def rm_app(id): ''' Remove the specified app from the server. CLI Example: .. code-block:: bash salt marathon-minion-id marathon.rm_app my-app '''...
Return configuration and status information about the marathon instance. CLI Example: .. code-block:: bash salt marathon-minion-id marathon.info def info(): ''' Return configuration and status information about the marathon instance. CLI Example: .. code-block:: bash salt ...
Restart the current server configuration for the specified app. :param restart: Restart the app :param force: Override the current deployment CLI Example: .. code-block:: bash salt marathon-minion-id marathon.restart_app my-app By default, this will only check if the app exists in marat...
Return a list of the configured DNS servers of the specified interface CLI Example: .. code-block:: bash salt '*' win_dns_client.get_dns_servers 'Local Area Connection' def get_dns_servers(interface='Local Area Connection'): ''' Return a list of the configured DNS servers of the specified in...
Remove the DNS server from the network interface CLI Example: .. code-block:: bash salt '*' win_dns_client.rm_dns <ip> <interface> def rm_dns(ip, interface='Local Area Connection'): ''' Remove the DNS server from the network interface CLI Example: .. code-block:: bash salt...
Add the DNS server to the network interface (index starts from 1) Note: if the interface DNS is configured by DHCP, all the DNS servers will be removed from the interface and the requested DNS will be the only one CLI Example: .. code-block:: bash salt '*' win_dns_client.add_dns <ip> <in...
Get the type of DNS configuration (dhcp / static) CLI Example: .. code-block:: bash salt '*' win_dns_client.get_dns_config 'Local Area Connection' def get_dns_config(interface='Local Area Connection'): ''' Get the type of DNS configuration (dhcp / static) CLI Example: .. code-block...
Verify that the given package is installed and is at the correct version (if specified). .. code-block:: yaml underscore: bower.installed: - dir: /path/to/project - user: someuser jquery#2.0: bower.installed: - dir: /path/to/project ...
Bootstraps a frontend distribution. Will execute 'bower install' on the specified directory. user The user to run Bower with def bootstrap(name, user=None): ''' Bootstraps a frontend distribution. Will execute 'bower install' on the specified directory. user The user to run ...
.. versionadded:: 2017.7.0 Cleans up local bower_components directory. Will execute 'bower prune' on the specified directory (param: name) user The user to run Bower with def pruned(name, user=None, env=None): ''' .. versionadded:: 2017.7.0 Cleans up local bower_components directory...
Ensure that the named export is present with the given options name The export path to configure clients A list of hosts and the options applied to them. This option may not be used in combination with the 'hosts' or 'options' shortcuts. .. code-block:: yaml - cli...
Ensure that the named path is not exported name The export path to remove def absent(name, exports='/etc/exports'): ''' Ensure that the named path is not exported name The export path to remove ''' path = name ret = {'name': name, 'changes': {}, 'res...
Slack object method function to construct and execute on the API URL. :param api_key: The Slack api key. :param function: The Slack api function to perform. :param method: The HTTP method, e.g. GET or POST. :param data: The data to be sent for POST method. :return: The...
Validate the beacon configuration def validate(config): ''' Validate the beacon configuration ''' # Configuration for pkg beacon should be a list if not isinstance(config, list): return False, ('Configuration for pkg beacon must be a list.') # Configuration for pkg beacon should contai...
Check if installed packages are the latest versions and fire an event for those that have upgrades. .. code-block:: yaml beacons: pkg: - pkgs: - zsh - apache2 - refresh: True def beacon(config): ''' Check if installed packages ...
Set a new value for a specific configuration line. :param str key: The command or block to configure. :param str value: The command value or command of the block specified by the key parameter. :param str setting: The command value for the command specified by the value parameter. :param str conf_file:...
Unlock a FS file/dir based lock def _unlock_cache(w_lock): ''' Unlock a FS file/dir based lock ''' if not os.path.exists(w_lock): return try: if os.path.isdir(w_lock): os.rmdir(w_lock) elif os.path.isfile(w_lock): os.unlink(w_lock) except (OSError...
If the write lock is there, check to see if the file is actually being written. If there is no change in the file size after a short sleep, remove the lock and move forward. def wait_lock(lk_fn, dest, wait_timeout=0): ''' If the write lock is there, check to see if the file is actually being writte...
Checks the cache file to see if there is a new enough file list cache, and returns the match (if found, along with booleans used by the fileserver backend to determine if the cache needs to be refreshed/written). def check_file_list_cache(opts, form, list_cache, w_lock): ''' Checks the cache file to se...
Checks the cache file to see if there is a new enough file list cache, and returns the match (if found, along with booleans used by the fileserver backend to determine if the cache needs to be refreshed/written). def write_file_list_cache(opts, data, list_cache, w_lock): ''' Checks the cache file to se...
Returns cached env names, if present. Otherwise returns None. def check_env_cache(opts, env_cache): ''' Returns cached env names, if present. Otherwise returns None. ''' if not os.path.isfile(env_cache): return None try: with salt.utils.files.fopen(env_cache, 'rb') as fp_: ...
Generate a dict of filename -> mtime def generate_mtime_map(opts, path_map): ''' Generate a dict of filename -> mtime ''' file_map = {} for saltenv, path_list in six.iteritems(path_map): for path in path_list: for directory, _, filenames in salt.utils.path.os_walk(path): ...
Is there a change to the mtime map? return a boolean def diff_mtime_map(map1, map2): ''' Is there a change to the mtime map? return a boolean ''' # check if the mtimes are the same if sorted(map1) != sorted(map2): return True # map1 and map2 are guaranteed to have same keys, # so c...
Remove unused cache items assuming the cache directory follows a directory convention: cache_base -> saltenv -> relpath def reap_fileserver_cache_dir(cache_base, find_func): ''' Remove unused cache items assuming the cache directory follows a directory convention: cache_base -> saltenv -> rel...
If file_ignore_regex or file_ignore_glob were given in config, compare the given file path against all of them and return True on the first match. def is_file_ignored(opts, fname): ''' If file_ignore_regex or file_ignore_glob were given in config, compare the given file path against all of them and...
Function to allow non-fileserver functions to clear update locks clear_func A function reference. This function will be run (with the ``remote`` param as an argument) to clear the lock, and must return a 2-tuple of lists, one containing messages describing successfully cleared locks, ...
Return the backend list def backends(self, back=None): ''' Return the backend list ''' if not back: back = self.opts['fileserver_backend'] else: if not isinstance(back, list): try: back = back.split(',') ...
Clear the cache of all of the fileserver backends that support the clear_cache function or the named backend(s) only. def clear_cache(self, back=None): ''' Clear the cache of all of the fileserver backends that support the clear_cache function or the named backend(s) only. ''' ...
``remote`` can either be a dictionary containing repo configuration information, or a pattern. If the latter, then remotes for which the URL matches the pattern will be locked. def lock(self, back=None, remote=None): ''' ``remote`` can either be a dictionary containing repo configuratio...
Clear the update lock for the enabled fileserver backends back Only clear the update lock for the specified backend(s). The default is to clear the lock for all enabled backends remote If specified, then any remotes which contain the passed string will h...
Update all of the enabled fileserver backends which support the update function, or def update(self, back=None): ''' Update all of the enabled fileserver backends which support the update function, or ''' back = self.backends(back) for fsb in back: fs...
Return the update intervals for all of the enabled fileserver backends which support variable update intervals. def update_intervals(self, back=None): ''' Return the update intervals for all of the enabled fileserver backends which support variable update intervals. ''' ...
Return the environments for the named backend or all backends def envs(self, back=None, sources=False): ''' Return the environments for the named backend or all backends ''' back = self.backends(back) ret = set() if sources: ret = {} for fsb in back: ...
Return environments for all backends for requests from fileclient def file_envs(self, load=None): ''' Return environments for all backends for requests from fileclient ''' if load is None: load = {} load.pop('cmd', None) return self.envs(**load)
Initialize the backend, only do so if the fs supports an init function def init(self, back=None): ''' Initialize the backend, only do so if the fs supports an init function ''' back = self.backends(back) for fsb in back: fstr = '{0}.init'.format(fsb) if f...
Convenience function for calls made using the RemoteClient def _find_file(self, load): ''' Convenience function for calls made using the RemoteClient ''' path = load.get('path') if not path: return {'path': '', 'rel': ''} tgt_env = load.ge...
Convenience function for calls made using the LocalClient def file_find(self, load): ''' Convenience function for calls made using the LocalClient ''' path = load.get('path') if not path: return {'path': '', 'rel': ''} tgt_env = load.get('...
Find the path and return the fnd structure, this structure is passed to other backend interfaces. def find_file(self, path, saltenv, back=None): ''' Find the path and return the fnd structure, this structure is passed to other backend interfaces. ''' path = salt.utils.st...
Serve up a chunk of a file def serve_file(self, load): ''' Serve up a chunk of a file ''' ret = {'data': '', 'dest': ''} if 'env' in load: # "env" is not supported; Use "saltenv". load.pop('env') if 'path' not in load or 'loc' not...
Common code for hashing and stating files def __file_hash_and_stat(self, load): ''' Common code for hashing and stating files ''' if 'env' in load: # "env" is not supported; Use "saltenv". load.pop('env') if 'path' not in load or 'saltenv' not in load: ...
Deletes the file_lists cache files def clear_file_list_cache(self, load): ''' Deletes the file_lists cache files ''' if 'env' in load: # "env" is not supported; Use "saltenv". load.pop('env') saltenv = load.get('saltenv', []) if saltenv is not No...
Return a list of files from the dominant environment def file_list(self, load): ''' Return a list of files from the dominant environment ''' if 'env' in load: # "env" is not supported; Use "saltenv". load.pop('env') ret = set() if 'saltenv' not i...
Return a list of symlinked files and dirs def symlink_list(self, load): ''' Return a list of symlinked files and dirs ''' if 'env' in load: # "env" is not supported; Use "saltenv". load.pop('env') ret = {} if 'saltenv' not in load: re...
Emulate the channel send method, the tries and timeout are not used def send(self, load, tries=None, timeout=None, raw=False): # pylint: disable=unused-argument ''' Emulate the channel send method, the tries and timeout are not used ''' if 'cmd' not in load: log.error('Malf...
Accepts DSON data as a string or as a file object and runs it through the JSON parser. :rtype: A Python data structure def render(dson_input, saltenv='base', sls='', **kwargs): ''' Accepts DSON data as a string or as a file object and runs it through the JSON parser. :rtype: A Python data str...
Return the targets from the flat yaml file, checks opts for location but defaults to /etc/salt/roster def targets(tgt, tgt_type='glob', **kwargs): ''' Return the targets from the flat yaml file, checks opts for location but defaults to /etc/salt/roster ''' rmatcher = RosterMatcher(tgt, tgt_type...
Return ip addrs based on netmask, sitting in the "glob" spot because it is the default def targets(self): ''' Return ip addrs based on netmask, sitting in the "glob" spot because it is the default ''' addrs = () ret = {} ports = __opts__['ssh_scan_ports']...
Evaluate a jsonnet input string. contents Raw jsonnet string to evaluate. jsonnet_library_paths List of jsonnet library paths. def evaluate(contents, jsonnet_library_paths=None): ''' Evaluate a jsonnet input string. contents Raw jsonnet string to evaluate. jsonnet_li...
Parses fmdump output def _parse_fmdump(output): ''' Parses fmdump output ''' result = [] output = output.split("\n") # extract header header = [field for field in output[0].lower().split(" ") if field] del output[0] # parse entries for entry in output: entry = [item fo...
Parses fmdump verbose output def _parse_fmdump_verbose(output): ''' Parses fmdump verbose output ''' result = [] output = output.split("\n") fault = [] verbose_fault = {} for line in output: if line.startswith('TIME'): fault.append(line) if verbose_fault...
Parsbb fmdump/fmadm output def _parse_fmadm_config(output): ''' Parsbb fmdump/fmadm output ''' result = [] output = output.split("\n") # extract header header = [field for field in output[0].lower().split(" ") if field] del output[0] # parse entries for entry in output: ...
Internal function for fmadm.repqired, fmadm.replaced, fmadm.flush def _fmadm_action_fmri(action, fmri): ''' Internal function for fmadm.repqired, fmadm.replaced, fmadm.flush ''' ret = {} fmadm = _check_fmadm() cmd = '{cmd} {action} {fmri}'.format( cmd=fmadm, action=action, ...
Parse fmadm faulty output def _parse_fmadm_faulty(output): ''' Parse fmadm faulty output ''' def _merge_data(summary, fault): result = {} uuid = summary['event-id'] del summary['event-id'] result[uuid] = OrderedDict() result[uuid]['summary'] = summary re...
Display fault management logs after : string filter events after time, see man fmdump for format before : string filter events before time, see man fmdump for format CLI Example: .. code-block:: bash salt '*' fmadm.list def list_records(after=None, before=None): ''' ...
Display log details uuid: string uuid of fault CLI Example: .. code-block:: bash salt '*' fmadm.show 11b4070f-4358-62fa-9e1e-998f485977e1 def show(uuid): ''' Display log details uuid: string uuid of fault CLI Example: .. code-block:: bash salt '*'...
Display fault manager configuration CLI Example: .. code-block:: bash salt '*' fmadm.config def config(): ''' Display fault manager configuration CLI Example: .. code-block:: bash salt '*' fmadm.config ''' ret = {} fmadm = _check_fmadm() cmd = '{cmd} config...
Load specified fault manager module path: string path of fault manager module CLI Example: .. code-block:: bash salt '*' fmadm.load /module/path def load(path): ''' Load specified fault manager module path: string path of fault manager module CLI Example: ...
Unload specified fault manager module module: string module to unload CLI Example: .. code-block:: bash salt '*' fmadm.unload software-response def unload(module): ''' Unload specified fault manager module module: string module to unload CLI Example: .. co...
Reset module or sub-component module: string module to unload serd : string serd sub module CLI Example: .. code-block:: bash salt '*' fmadm.reset software-response def reset(module, serd=None): ''' Reset module or sub-component module: string module to ...
Display list of faulty resources CLI Example: .. code-block:: bash salt '*' fmadm.faulty def faulty(): ''' Display list of faulty resources CLI Example: .. code-block:: bash salt '*' fmadm.faulty ''' fmadm = _check_fmadm() cmd = '{cmd} faulty'.format( c...
Ensure the device name supplied is valid in a manner similar to the `exists` function, but raise errors on invalid input rather than return False. This function only validates a block device, it does not check if the block device is a drive or a partition or a filesystem, etc. def _validate_device(dev...
Ensure valid partition boundaries are supplied. def _validate_partition_boundary(boundary): ''' Ensure valid partition boundaries are supplied. ''' boundary = six.text_type(boundary) match = re.search(r'^([\d.]+)(\D*)$', boundary) if match: unit = match.group(2) if not unit or u...
Ask the kernel to update its local partition data. When no args are specified all block devices are tried. Caution: Generally only works on devices with no mounted partitions and may take a long time to return if specified devices are in use. CLI Examples: .. code-block:: bash salt '*' p...
Prints partition information of given <device> CLI Examples: .. code-block:: bash salt '*' partition.list /dev/sda salt '*' partition.list /dev/sda unit=s salt '*' partition.list /dev/sda unit=kB def list_(device, unit=None): ''' Prints partition information of given <device>...
Check if partition satisfies the alignment constraint of part_type. Type must be "minimal" or "optimal". CLI Example: .. code-block:: bash salt '*' partition.align_check /dev/sda minimal 1 def align_check(device, part_type, partition): ''' Check if partition satisfies the alignment const...
Copies the file system on the partition <from-minor> to partition <to-minor>, deleting the original contents of the destination partition. CLI Example: .. code-block:: bash salt '*' partition.cp /dev/sda 2 3 def cp(device, from_minor, to_minor): # pylint: disable=C0103 ''' Copies th...
Sets the system ID for the partition. Some typical values are:: b: FAT32 (vfat) 7: HPFS/NTFS 82: Linux Swap 83: Linux 8e: Linux LVM fd: Linux RAID Auto CLI Example: .. code-block:: bash salt '*' partition.set_id /dev/sda 1 83 def set_id(device, mino...
List the system types that are supported by the installed version of sfdisk CLI Example: .. code-block:: bash salt '*' partition.system_types def system_types(): ''' List the system types that are supported by the installed version of sfdisk CLI Example: .. code-block:: bash ...
Makes a file system <fs_type> on partition <device>, destroying all data that resides on that partition. <fs_type> must be one of "ext2", "fat32", "fat16", "linux-swap" or "reiserfs" (if libreiserfs is installed) CLI Example: .. code-block:: bash salt '*' partition.mkfs /dev/sda2 fat32 def m...
Create a new disklabel (partition table) of label_type. Type should be one of "aix", "amiga", "bsd", "dvh", "gpt", "loop", "mac", "msdos", "pc98", or "sun". CLI Example: .. code-block:: bash salt '*' partition.mklabel /dev/sda msdos def mklabel(device, label_type): ''' Create a new ...
Make a part_type partition for filesystem fs_type, beginning at start and ending at end (by default in megabytes). part_type should be one of "primary", "logical", or "extended". CLI Examples: .. code-block:: bash salt '*' partition.mkpart /dev/sda primary fs_type=fat32 start=0 end=639 ...
Make a <part_type> partition with a new filesystem of <fs_type>, beginning at <start> and ending at <end> (by default in megabytes). <part_type> should be one of "primary", "logical", or "extended". <fs_type> must be one of "ext2", "fat32", "fat16", "linux-swap" or "reiserfs" (if libreiserfs is install...
Set the name of partition to name. This option works only on Mac, PC98, and GPT disklabels. The name can be placed in quotes, if necessary. CLI Example: .. code-block:: bash salt '*' partition.name /dev/sda 1 'My Documents' def name(device, partition, name): ''' Set the name of partition...
Rescue a lost partition that was located somewhere between start and end. If a partition is found, parted will ask if you want to create an entry for it in the partition table. CLI Example: .. code-block:: bash salt '*' partition.rescue /dev/sda 0 8056 def rescue(device, start, end): '''...
Resizes the partition with number <minor>. The partition will start <start> from the beginning of the disk, and end <end> from the beginning of the disk. resize never changes the minor number. Extended partitions can be resized, so long as the new extended partition completely contains all logical part...
Removes the partition with number <minor>. CLI Example: .. code-block:: bash salt '*' partition.rm /dev/sda 5 def rm(device, minor): # pylint: disable=C0103 ''' Removes the partition with number <minor>. CLI Example: .. code-block:: bash salt '*' partition.rm /dev/sda 5 ...
Changes a flag on the partition with number <minor>. A flag can be either "on" or "off" (make sure to use proper quoting, see :ref:`YAML Idiosyncrasies <yaml-idiosyncrasies>`). Some or all of these flags will be available, depending on what disk label you are using. Valid flags are: * boot ...
Toggle the state of <flag> on <partition>. Valid flags are the same as the set command. CLI Example: .. code-block:: bash salt '*' partition.toggle /dev/sda 1 boot def toggle(device, partition, flag): ''' Toggle the state of <flag> on <partition>. Valid flags are the same as ...
Changes a flag on selected device. A flag can be either "on" or "off" (make sure to use proper quoting, see :ref:`YAML Idiosyncrasies <yaml-idiosyncrasies>`). Some or all of these flags will be available, depending on what disk label you are using. Valid flags are: * cylinder_alignment ...
Toggle the state of <flag> on <device>. Valid flags are the same as the disk_set command. CLI Example: .. code-block:: bash salt '*' partition.disk_toggle /dev/sda pmbr_boot def disk_toggle(device, flag): ''' Toggle the state of <flag> on <device>. Valid flags are the same as the dis...
Check to see if the partition exists CLI Example: .. code-block:: bash salt '*' partition.exists /dev/sdb1 def exists(device=''): ''' Check to see if the partition exists CLI Example: .. code-block:: bash salt '*' partition.exists /dev/sdb1 ''' if os.path.exists(de...
Return the full path for the packages and repository freezer files. def _paths(name=None): ''' Return the full path for the packages and repository freezer files. ''' name = 'freezer' if not name else name states_path = _states_path() return ( os.path.join(states_path, '{}-pkgs...
Return True if there is already a frozen state. A frozen state is merely a list of packages (including the version) in a specific time. This information can be used to compare with the current list of packages, and revert the installation of some extra packages that are in the system. name ...
Return the list of frozen states. CLI Example: .. code-block:: bash salt '*' freezer.list def list_(): ''' Return the list of frozen states. CLI Example: .. code-block:: bash salt '*' freezer.list ''' ret = [] states_path = _states_path() if not os.path.is...
Save the list of package and repos in a freeze file. As this module is build on top of the pkg module, the user can send extra attributes to the underlying pkg module via kwargs. This function will call ``pkg.list_pkgs`` and ``pkg.list_repos``, and any additional arguments will be passed through to tho...
Make sure that the system contains the packages and repos from a frozen state. Read the list of packages and repositories from the freeze file, and compare it with the current list of packages and repos. If there is any difference, all the missing packages are repos will be installed, and all the e...
Returns the rabbitmq-plugin command path if we're running an OS that doesn't put it in the standard /usr/bin or /usr/local/bin This works by taking the rabbitmq-server version and looking for where it seems to be hidden in /usr/lib. def _get_rabbitmq_plugin(): ''' Returns the rabbitmq-plugin comman...
Looks for rabbitmqctl warning, or general formatting, strings that aren't intended to be parsed as output. Returns a boolean whether the line can be parsed as rabbitmqctl output. def _safe_output(line): ''' Looks for rabbitmqctl warning, or general formatting, strings that aren't intended to be par...
Convert rabbitmqctl output to a dict of data cmdoutput: string output of rabbitmqctl commands values_mapper: function object to process the values part of each line def _output_to_dict(cmdoutput, values_mapper=None): ''' Convert rabbitmqctl output to a dict of data cmdoutput: string output of rabbi...
Convert rabbitmqctl output to a list of strings (assuming whitespace-delimited output). Ignores output lines that shouldn't be parsed, like warnings. cmdoutput: string output of rabbitmqctl commands def _output_to_list(cmdoutput): ''' Convert rabbitmqctl output to a list of strings (assuming whitespace...
Return a list of users based off of rabbitmqctl user_list. CLI Example: .. code-block:: bash salt '*' rabbitmq.list_users def list_users(runas=None): ''' Return a list of users based off of rabbitmqctl user_list. CLI Example: .. code-block:: bash salt '*' rabbitmq.list_use...
Return a list of vhost based on rabbitmqctl list_vhosts. CLI Example: .. code-block:: bash salt '*' rabbitmq.list_vhosts def list_vhosts(runas=None): ''' Return a list of vhost based on rabbitmqctl list_vhosts. CLI Example: .. code-block:: bash salt '*' rabbitmq.list_vhost...
Return whether the user exists based on rabbitmqctl list_users. CLI Example: .. code-block:: bash salt '*' rabbitmq.user_exists rabbit_user def user_exists(name, runas=None): ''' Return whether the user exists based on rabbitmqctl list_users. CLI Example: .. code-block:: bash ...
Return whether the vhost exists based on rabbitmqctl list_vhosts. CLI Example: .. code-block:: bash salt '*' rabbitmq.vhost_exists rabbit_host def vhost_exists(name, runas=None): ''' Return whether the vhost exists based on rabbitmqctl list_vhosts. CLI Example: .. code-block:: bash...
Add a rabbitMQ user via rabbitmqctl user_add <user> <password> CLI Example: .. code-block:: bash salt '*' rabbitmq.add_user rabbit_user password def add_user(name, password=None, runas=None): ''' Add a rabbitMQ user via rabbitmqctl user_add <user> <password> CLI Example: .. code-bl...
Deletes a user via rabbitmqctl delete_user. CLI Example: .. code-block:: bash salt '*' rabbitmq.delete_user rabbit_user def delete_user(name, runas=None): ''' Deletes a user via rabbitmqctl delete_user. CLI Example: .. code-block:: bash salt '*' rabbitmq.delete_user rabbit...