saltstack学习-5:模块介绍

Posted snailshadow

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了saltstack学习-5:模块介绍相关的知识,希望对你有一定的参考价值。

1,模块介绍

2,salt查看帮助文档:

[[email protected] ~]# salt ‘vas01‘ sys.doc

3,salt查看有哪些模块

[[email protected] ~]# salt ‘vas01‘ sys.list_modules
vas01:
    - acl
    - aliases
    - alternatives
    - archive
    - artifactory
    - at
    - beacons
    - bigip
    - blockdev
    - btrfs
    - buildout
    - cloud
    - cmd
    - composer
    - config
    - consul
    - container_resource
    - cp
    - cpan
    - cron
    - data
    - defaults
    - devmap
    - dig
    - disk
    - django
    - dnsmasq
    - dnsutil
    - drbd
    - elasticsearch
    - environ
    - etcd
    - ethtool
    - event
    - extfs
    - file
    - gem
    - grains
    - group
    - grub
    - hashutil
    - hipchat
    - hosts
    - http
    - img
    - incron
    - infoblox
    - ini
    - inspector
    - introspect
    - ip
    - iptables
    - iwtools
    - jboss7
    - jboss7_cli
    - k8s
    - key
    - keyboard
    - kmod
    - locale
    - locate
    - logrotate
    - lowpkg
    - lvm
    - match
    - mine
    - minion
    - modjk
    - mount
    - nagios_rpc
    - network
    - nfs3
    - openstack_config
    - pagerduty
    - pagerduty_util
    - pam
    - pillar
    - pip
    - pkg
    - pkg_resource
    - publish
    - pushover
    - pyenv
    - quota
    - raid
    - random
    - random_org
    - rbenv
    - rest_sample_utils
    - ret
    - rsync
    - rvm
    - s3
    - s6
    - salt_proxy
    - saltutil
    - schedule
    - scsi
    - sdb
    - seed
    - selinux
    - serverdensity_device
    - service
    - shadow
    - slack
    - slsutil
    - smbios
    - smtp
    - sqlite3
    - ssh
    - state
    - status
    - supervisord
    - sys
    - sysctl
    - sysfs
    - syslog_ng
    - system
    - telemetry
    - temp
    - test
    - timezone
    - uptime
    - user
    - vbox_guest
    - virtualenv
    - xfs
    - zenoss

4,salt查看有哪些模块

注:由于模块太多了,命令执行结果不再这里粘贴了,关于salt的模块可以参考官网:

https://docs.saltstack.com/en/latest/ref/modules/all/

或者参考这位兄弟总结的博客:

http://blog.csdn.net/chengxuyuanyonghu/article/details/64519496

以上是关于saltstack学习-5:模块介绍的主要内容,如果未能解决你的问题,请参考以下文章

SaltStack常用的模块

Saltstack学习笔记

SaltStack 常用模块介绍 - timezone

SaltStack 常用模块介绍 - sysctl

SaltStack 常用模块介绍 - service - pkg - file

SaltStack 常用模块介绍 - cmd