|
Puppet提供大量的命令来帮助我们进行有效的管理,Puppet中所有命令都可以使用puppet help命令查看。以下信息提供了所有命令的中文解释,方便大家查看。
[iyunv@linuxmaster1poc ~]# puppet help
Usage: puppet <subcommand> [options] <action> [options]
Available subcommands, from Puppet Faces:
ca Local Puppet Certificate Authority management. #管理本地证书
catalog Compile, save, view, and convert catalogs. #编译、保存、查看puppet代码,或转换成Catalogs
certificate Provide access to the CA for certificate management. #提供访问CA证书的管理
certificate_request Manage certificate requests. #管理证书的请求
certificate_revocation_list Manage the list of revoked certificates. #管理撤销证书的列表
config Interact with Puppet's configuration options. #配置现象
facts Retrieve and store facts. #系统信息检查
file Retrieve and store files in a filebucket #在filebucket中检索和存储文件
help Display Puppet help. #查看帮助
instrumentation_data Manage instrumentation listener accumulated data. #管理监听的数据
instrumentation_listener Manage instrumentation listeners. #管理监听的状态
instrumentation_probe Manage instrumentation probes. #管理监听探测
key Create, save, and remove certificate keys. #创建、保存、删除证书密钥
man Display Puppet manual pages. #查看手册
module Creates, installs and searches for modules on the Puppet Forge. #从Puppet Forge创建、安装、查询模块
node View and manage node definitions. #管理节点
parser Interact directly with the parser. #解析器管理,检查pp文件语法
plugin Interact with the Puppet plugin system. #插件管理
report Create, display, and submit reports. #创建、查看报告
resource API only: interact directly with resources via the RAL. #查看资源帮助
resource_type View classes, defined resource types, and nodes from all manifests. #查看类、默认资源类型与节点信息
secret_agent Mimics puppet agent. #模拟Agent
status View puppet server status. #查看puppet状态
Available applications, soon to be ported to Faces:
agent The puppet agent daemon #客户端进程,负责从Master端获取信息
apply Apply Puppet manifests locally #运行本地manifests
cert Manage certificates and requests #证书颁发,用于签署证书
describe Display help about resource types #资源帮助
device Manage remote network devices #管理远程网络设备
doc Generate Puppet documentation and references #生成puppet文档
filebucket Store and retrieve files in a filebucket #在filebucket中检索和存储文件
inspect Send an inspection report #发送report报告
kick Remotely control puppet agent #远程控制agent,远程触发puppet agent命令
master The puppet master daemon #编译配置文件、模板、节点的自定义插件
queue Queuing daemon for asynchronous storeconfigs #队列进程
See 'puppet help <subcommand> <action>' for help on a specific subcommand action.
See 'puppet help <subcommand>' for help on a specific subcommand.
Puppet v2.7.23
一、常用命令:
puppet master #编译配置文件、模板、节点的自定义插件
-D|--daemonize #发送到后台守护进程,默认选项
--no-daemonize #不发送到后台守护进程
-d|--debug #启用完整的调试模式
-h|--help #查看帮助
-l|--logdest <file>|console|syslog #日志发送方式,默认采用syslog配置
-v|--verbose #显示详细信息
-V|--version #打印puppet版本
--compile <node-name> #以JSON的方式输出编译的catalog
--genconfig #输入默认配置文件
puppet agent #客户端进程,负责从Master获取数据
--certname <name> #指定客户端certname(唯一ID),通常以FQDN命名
--daemonize #发送到后台守护进程,默认选项
--no-daemonize #不发送到后台守护进程
-d|--debug #启用完整的调试模式
--detailed-exitcodes #提供详细的退出代码
--digest <digest> #指定证书指纹算法,默认为MD5算法
--disable #禁用,禁止puppet agent在此节点运行
--enable #启用,重新运行执行puppet agent
--fingerprint #显示当前证书的指纹
-h|--help #查看帮助
-l|--logdest syslog|<file>|console #日志发送方式,默认采用syslog配置
--no-client #不创建客户端配置文件,当listen=true时才有意义
--noop #puppet运行Catalog,但不执行配置
-o|--onetime #运行一次,配合--no-daemonize使用
--serve <handler> #启动另一类的服务
-t|--test #测试用,包含了('onetime','verbose', 'ignorecache', 'no-daemonize', 'no-usecacheonfailure','detailed-exit-codes', 'no-splay', and 'show_diff')
-v|--verbose #显示详细信息
-V|--version #打印puppet版本
-w|--waitforcert <seconds> #当Master未签署此节点证书时,puppet agent将等待签署,并默认每2分钟重新连接Master以确定是否完成签署
puppet cert #证书颁发,用于签署证书
常用的操作如下:
clean #清除,用于清除证书
fingerprint #打印证书指纹
generate #生成客户端证书
list #查看认证客户列表
print #打印主机证书的全文信息
revoke #废除已认证的主机
sign #签署认证
verify #验证本地指定的认证
命令参数如下:
--all #执行所有操作,包括'sign','clean','list','fingerprint',
--digest #设置证书指纹加密的方式,取决于openssl版本
--debug #启用完整的调试模式
--help #查看帮助
--verbose #显示详细信息
--version #显示版本
puppet kick #远程控制agent,远程触发puppet agent命令
puppet apply #运行本地manifests
-h|--help #查看帮助
-V|--version #显示版本信息
-d|--debug #启用完整的调试模式
-v|--verbose #显示详细信息
-e|--execute #执行命令中指定的puppet代码
--detailed-exitcodes #提供详细的退出代码
-l|--logdest <file> #日志发送方式,默认采用syslog配置
--catalog <catalog> #运行puppet master采用--compile输出JSON代码
二、帮助:
puppet doc #生成puppet文档
puppet help #显示puppet帮助信息
puppet resource #查看资源帮助
puppet describe #资源帮助
puppet status #查看puppet状态
三、模块和不常用命令:
puppet module #从puppet forge创建、安装、查询模块
puppet device #远程管理网络设备
puppet inspect #发送report报告
puppet filebucket #在filebucket中检索和存储文件
puppet queue #队列进程
接下来的章节,我会对以上三类命令进行详细的讲解,敬请期待!
注:以上大部分参考了《Pro puppet》、《Puppet实战》、《puppetcookbook27》等书籍,后期不在进行说明。
|
|