RedHat6.5 puppet配置(四)- 默认路径下的文件以及puppet命令解析

Puppet默认目录说明

puppet默认安装下各种文件,使用find命令查找’puppet’,

[root@puppet-master ~]# find / -name puppet
/etc/puppet  #puppet配置文件放置位置,默认配置下需要管理的模块也在该路径下的子目录modules下。
/etc/rc.d/init.d/puppet #服务启动脚本
/etc/logrotate.d/puppet #日志轮转配置文件,可以修改定制
/etc/sysconfig/puppet   #配置puppet服务启动参数,如端口,日志路径等。
/usr/bin/puppet #执行文件路径
/usr/share/puppet #配置模板等文件
/usr/share/puppet/ext/logcheck/puppet
/usr/lib/ruby/site_ruby/1.8/puppet
/usr/lib/ruby/site_ruby/1.8/puppet/util/rdoc/generators/template/puppet
/usr/lib/ruby/site_ruby/1.8/puppetx/puppet
/var/lock/subsys/puppet
/var/log/puppet #日志文件路径
/var/run/puppet #进程文件
/var/lib/puppet #factor收集的信息会放置在这里

Puppet命令解析[待补充]

puppet help查看的到的命令,包含master,Agent端命令,以及一些辅助命令。

[root@puppet-master ~]# puppet help

Usage: puppet <subcommand> [options] <action> [options]

Available subcommands:

  agent             The puppet agent daemon #Agent 守护进程
  apply             Apply Puppet manifests locally #执行本地配置
  ca                Local Puppet Certificate Authority management. #管理本地认证证书
  catalog           Compile, save, view, and convert catalogs.
  cert              Manage certificates and requests #认证签发相关
  certificate       Provide access to the CA for certificate management.
  certificate_request  Manage certificate requests.
  certificate_revocation_list  Manage the list of revoked certificates.
  config            Interact with Puppet^s settings.
  describe          Display help about resource types
  device            Manage remote network devices
  doc               Generate Puppet documentation and references
  facts             Retrieve and store facts.
  file              Retrieve and store files in a filebucket
  filebucket        Store and retrieve files in a filebucket
  help              Display Puppet help.
  inspect           Send an inspection report
  instrumentation_data  Manage instrumentation listener accumulated data. DEPRECATED.
  instrumentation_listener  Manage instrumentation listeners. DEPRECATED.
  instrumentation_probe  Manage instrumentation probes. Deprecated
  key               Create, save, and remove certificate keys.
  kick              Remotely control puppet agent
  man               Display Puppet manual pages.
  master            The puppet master daemon
  module            Creates, installs and searches for modules on the Puppet Forge.
  node              View and manage node definitions.
  parser            Interact directly with the parser.
  plugin            Interact with the Puppet plugin system.
  queue             Deprecated queuing daemon for asynchronous storeconfigs
  report            Create, display, and submit reports.
  resource          The resource abstraction layer shell
  resource_type     View classes, defined resource types, and nodes from all manifests.
  secret_agent      Mimics puppet agent.
  status            View puppet server status.

See ^puppet help <subcommand> <action>^ for help on a specific subcommand action.
See ^puppet help <subcommand>^ for help on a specific subcommand.
Puppet v3.8.4
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值