saltstack使用指南:常用状态模块

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
阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37814112/article/details/80346167
个人分类: salt
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭