随笔分类 - saltstack
摘要:gem.sources_list List the configured gem sources. :param gem_bin: string : None Full path to binary to use. :param ruby: string : None If RVM or rbenv
阅读全文
摘要:freezer.restore Make sure that the system contains the packages and repos from a frozen state. Read the list of packages and repositories from the fre
阅读全文
摘要:firewalld.remove_interface Remove an interface bound to a zone New in version 2016.3.0 CLI Example: salt ' ' firewalld.remove_interface zone eth0 fire
阅读全文
摘要:file.apply_template_on_contents Return the contents after applying the templating engine contents template string template template format context Ove
阅读全文
摘要:event.fire Fire an event on the local minion event bus. Data must be formed as a dict. CLI Example: salt ' ' event.fire '{"data":"my event data"}' 'ta
阅读全文
摘要:etcd.set New in version 2014.7.0 Set a key in etcd by direct path. Optionally, create a directory or set a TTL on the key. Returns None on failure. CL
阅读全文
摘要:environ.items Return a dict of the entire environment set for the salt process CLI Example: salt ' ' environ.items environ.setenv Set multiple salt pr
阅读全文
摘要:drbd.overview Show status of the DRBD devices, support two nodes only. CLI Example: salt ' ' drbd.overview
阅读全文
摘要:dnsutil.hosts_remove Remove a host from the /etc/hosts file. If doing so will leave a line containing only an IP address, then the line will be delete
阅读全文
摘要:dnsmasq.get_config Dumps all options from the config file. config_file The location of the config file from which to obtain contents. Defaults to . CL
阅读全文
摘要:django.loaddata Load fixture data Fixtures: comma separated list of fixtures to load CLI Example: salt ' ' django.loaddata django.createsuperuser Crea
阅读全文
摘要:disk.tune Set attributes for the specified device CLI Example: salt ' ' disk.tune /dev/sda1 read ahead=1024 read write=True Valid options are: , , , .
阅读全文
摘要:dig.mx Return a list of lists for the MX of . If the argument is True, resolve IPs for the servers. It's limited to one IP, because although in practi
阅读全文
摘要:devmap.multipath_flush Device Mapper Multipath flush CLI Example: salt ' ' devmap.multipath_flush mpath1 devmap.multipath_list Device Mapper Multipath
阅读全文
摘要:defaults.update defaults.update Allows to set defaults for group of data set e.g. group for nodes. This function is a combination of defaults.merge an
阅读全文
摘要:data.items Get items from the minion datastore New in version 2015.8.0 CLI Example: salt ' ' data.items data.dump Replace the entire datastore with a
阅读全文
摘要:cryptdev.active List existing device mapper device details. cryptdev.crypttab List the contents of the crypttab CLI Example: salt ' ' cryptdev.cryptta
阅读全文
摘要:cron.write_cron_file Writes the contents of a file to a user's crontab CLI Example: salt ' ' cron.write_cron_file root /tmp/new_cron Changed in versio
阅读全文
摘要:cp.list_master_dirs List all of the directories stored on the master CLI Example: salt ' ' cp.list_master_dirs cp.recv_chunked This function receives
阅读全文
摘要:container_resource.cache_file Wrapper for cp.cache_file which raises an error if the file was unable to be cached. CLI Example: salt myminion containe
阅读全文