Redis模块路径 /usr/lib/python2.6/site-packages/salt/modules/redismod.py Redis模块会首先检查是否安装有Redis的Python驱动 # -*- coding: utf-8 -*- ''' Module to provide redis functionality to Salt .. versionadded:: 2014.7.0 :configuration: This module requires the redis py
user状态模块用于在sls文件中指定安装包的uid等属性 /usr/lib/python2.6/site-packages/salt/states/user.py ''' Management of user accounts =========================== The user module is used to create and manage user settings, users can be set as either absent or present ..
group状态模块用于创建并管理UNIX组账号设置. /usr/lib/python2.6/site-packages/salt/states/group.py ''' Management of user groups ========================= The group module is used to create and manage unix group settings, groups can be either present or absent: .. cod
pkg状态模块使用各个操作系统自带的包管理工具来安装各种软件包,例如RedHat系列使用YUM安装软件包,Ubuntu使用apt-get安装等 /usr/lib/python2.6/site-packages/salt/states/pkg.py ''' Installation of packages using OS package managers such as yum or apt-get ================================================
/usr/lib/python2.6/site-packages/salt/states/service.py 这个模块用于启动或重启服务和后台进程 starting or restarting of services and daemons ============================================== Services are defined as system daemons typically started with system init or rc s