saltstack:常用狀態模組

張衝andy發表於2019-08-15

1. 列出所有狀態模組
[root@iZwz9bhan5nqzh979qokrkZ ~]# salt '*' sys.list_state_modules
iZbp150ikdomqe3b32qaubZ:
- acl
- alias
- alternatives
- archive
- artifactory
- at
- blockdev
- buildout
- cloud
- cmd
- composer
- cron
- disk
- environ
- event
- file
- gem
- gnomedesktop
- grafana
- grains
- group
- host
- http
- incron
- ini
- ipset
- iptables
- jboss7
- keyboard
- kmod
- libvirt
- locale
- lxc
- modjk
- modjk_worker
- module
- mongodb_database
- mount
- network
- openstack_config
- pagerduty
- pip
- pkg
- pkgng
- pkgrepo
- powerpath
- pyenv
- rbenv
- rvm
- salt
- schedule
- serverdensity_device
- service
- smtp
- ssh_auth
- ssh_known_hosts
- stateconf
- status
- supervisord
- sysctl
- syslog_ng
- test
- timezone
- user
- vbox_guest
- virtualenv
- winrepo

2.列出某一狀態模組的所有函式
[root@iZwz9bhan5nqzh979qokrkZ ~]# salt '*' sys.list_state_functions cmd
izwz9f8xrvty50quc2gq50z:
- cmd.call
- cmd.mod_run_check
- cmd.mod_watch
- cmd.run
- cmd.script
- cmd.wait
- cmd.wait_call
- cmd.wait_script
- cmd.watch

3.常用模組:cron,cmd,file,mount,ntp,pkg,service,user,group


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31383567/viewspace-2653786/,如需轉載,請註明出處,否則將追究法律責任。

相關文章