saltstack:常用状态模块

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31383567/viewspace-2653786/

你可能感兴趣的:(saltstack:常用状态模块)