03 2020 档案
摘要:extfs.attributes Return attributes from dumpe2fs for a specified device CLI Example: salt ' ' extfs.attributes /dev/sda1 extfs.tune Set attributes for
阅读全文
摘要:ethtool.show_driver Queries the specified network device for associated driver information CLI Example: salt ' ' ethtool.show_driver ethtool.show_ring
阅读全文
摘要:apache.useradd Add HTTP user using the command. If the file does not exist, it will be created. Valid options that can be passed are: n Don't update f
阅读全文
摘要:ip.get_bond Return the content of a bond script CLI Example: salt ' ' ip.get_bond bond0 ip.get_routes Return the contents of the interface routes scri
阅读全文
摘要:iosconfig.diff_text Return the diff, as text, between the candidate and the running config. candidate_config The candidate configuration sent as text.
阅读全文
摘要:introspect.service_highstate Return running and enabled services in a highstate structure. By default also returns package dependencies for those serv
阅读全文
摘要:inspector.query Query the node for specific information. Parameters: scope : Specify scope of the query. System : Return system data. Software : Retur
阅读全文
摘要:ini.remove_option Remove a key/value pair from a section in an ini file. Returns the value of the removed key, or if nothing was removed. API Example:
阅读全文
摘要:incron.rm_job Remove a incron job for a specified user. If any of the day/time params are specified, the job will only be removed if the specified par
阅读全文
摘要:http.query New in version 2015.5.0 Query a resource, and decode the return data Passes through all the parameters described in the :py:func: : .. auto
阅读全文
摘要:hosts.has_pair Return true if the alias is set CLI Example: salt ' ' hosts.has_pair hosts.get_ip Return the ip associated with the named host CLI Exam
阅读全文
摘要:highstate_doc.read_file output the contents of a file: this is a workaround if the cp.push module does not work. https://github.com/saltstack/salt/iss
阅读全文
摘要:hashutil.base64_b64encode Encode a string as base64 using the "modern" Python interface. Among other possible differences, the "modern" encoder does n
阅读全文
摘要:group.delete Remove the named group name Name group to delete root Directory to chroot into CLI Example: salt ' ' group.delete foo group.members Repla
阅读全文
摘要:grains.equals Used to make sure the minion's grain key/value matches. Returns if matches otherwise . New in version 2017.7.0 CLI Example: salt ' ' gra
阅读全文
摘要:grafana4.get_org Show a single organization. name Name of the organization. profile Configuration profile used to connect to the Grafana instance. Def
阅读全文
摘要:google_chat.send_message Send a message to the google chat room specified in the webhook url. salt ' ' google_chat.send_message "https://chat.googleap
阅读全文
摘要:gnome.setIdleActivation Set whether the idle activation is enabled CLI Example: salt ' ' gnome.setIdleActivation user= gnome.getIdleActivation Get whe
阅读全文
摘要:glassfish.update_connector_c_pool Update a connection pool glassfish.update_jdbc_resource Update a JDBC resource glassfish.enum_connector_resource Enu
阅读全文
摘要:genesis.mksls Convert an installation file/script to an SLS file. Currently supports , , and . CLI Examples: salt genesis.mksls kickstart /path/to/kic
阅读全文
摘要: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
阅读全文
摘要:consul.session_create Used to create a session. :param consul_url: The Consul server URL. :param lockdelay: Duration string using a "s" suffix for sec
阅读全文
摘要:config.items Return the complete config from the currently running minion process. This includes defaults for values not set in the config file. CLI E
阅读全文
摘要:composer.update Update composer dependencies for a directory. If has not yet been run, this runs instead. If composer has not been installed globally
阅读全文
摘要:cmd.powershell Execute the passed PowerShell command and return the output as a dictionary. Other functions (besides ) return the raw text output of t
阅读全文
摘要:cloud.create Create an instance using Salt Cloud CLI Example: salt minionname cloud.create my ec2 config myinstance image=ami 1624987f size='t1.micro'
阅读全文
摘要:chroot.highstate Retrieve the state data from the salt master for this minion and execute it inside the chroot. root Path to the chroot environment Fo
阅读全文
摘要:buildout.run_buildout Run a buildout in a directory. directory directory to execute in config alternative buildout configuration file to use offline a
阅读全文
摘要:btrfs.usage Show in which disk the chunks are allocated. CLI Example: salt ' ' btrfs.usage /your/mountpoint btrfs.subvolume_exists Check if a subvolum
阅读全文
摘要:beacons.reset Resest beacon configuration on the minion CLI Example: salt ' ' beacons.reset beacons.disable Disable all beacons jobs on the minion :re
阅读全文
摘要:bigip.commit_transaction A function to connect to a bigip device and commit an existing transaction. hostname The host/address of the bigip device use
阅读全文
摘要:artifactory.get_latest_snapshot Gets latest snapshot of the given artifact artifactory_url URL of artifactory instance repository Snapshot repository
阅读全文
摘要:archive.zip Uses the Python module to create zip files Changed in version 2015.5.0 This function was rewritten to use Python's native zip file support
阅读全文
摘要:ansible.list Lists available modules. :return: ansible.playbooks Run Ansible Playbooks :param playbook: Which playbook to run. :param rundir: Director
阅读全文
摘要:aliases.get_target Return the target associated with an alias CLI Example: salt ' ' aliases.get_target alias aliases.rm_alias Remove an entry from the
阅读全文
摘要:alternatives.display Display alternatives settings for defined command name CLI Example: salt ' ' alternatives.display editor alternatives.auto Trigge
阅读全文
摘要:acl.delfacl Remove specific FACL from the specified file(s) CLI Examples: salt ' ' acl.delfacl user myuser /tmp/house/kitchen salt ' ' acl.delfacl def
阅读全文
摘要:获取master配置 实例化 通过grain过滤主机并且返回jid 批量执行 导出所有模块的doc
阅读全文
摘要:如果网页打开较慢 可以下载后查看https://files.cnblogs.com/files/randomlee/salt_modules_doc.md.zip acl.delfacl: Remove specific FACL from the specified file(s) CLI Exa
阅读全文
摘要:安装, "官方文档" 1. 配置阿里云的saltstack镜像仓库 2. 主安装salt master salt minion salt api 3. 从安装salt minion 4. 关闭防火墙 或者打开端口 firewall or iptables 5. 启动服务 配置, "官方文档" mas
阅读全文

浙公网安备 33010602011771号