为什么我有两个选项安装/调用木偶

时间:2018-03-25 17:45:24

标签: puppet centos7

大家好,我想知道为什么我的Centos 7上安装了木偶,我无法正常使用它。

puppet --help
-bash: puppet: command not found

但使用时:

/opt/puppetlabs/bin/puppet --help

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

  agent             The puppet agent daemon
  apply             Apply Puppet manifests locally
  ca                Local Puppet Certificate Authority management. (Deprecated)
  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. (Deprecated)
  certificate_revocation_list  Manage the list of revoked certificates. (Deprecated)
  config            Interact with Puppet's settings.
  describe          Display help about resource types
  device            Manage remote network devices
  doc               Generate Puppet references
  epp               Interact directly with the EPP template parser/renderer.
  facts             Retrieve and store facts.
  filebucket        Store and retrieve files in a filebucket
  generate          Generates Puppet code from Ruby definitions.
  help              Display Puppet help.
  key               Create, save, and remove certificate keys. (Deprecated)
  lookup            Interactive Hiera lookup
  man               Display Puppet manual pages. (Deprecated)
  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.
  report            Create, display, and submit reports.
  resource          The resource abstraction layer shell
  script            Run a puppet manifests as a script without compiling a catalog
  status            View puppet server status. (Deprecated)
See 'puppet help <subcommand> <action>' for help on a specific subcommand action.
See 'puppet help <subcommand>' for help on a specific subcommand.
Puppet v5.5.0

为什么两种不同的方式与木偶合作?

1 个答案:

答案 0 :(得分:4)

puppet不在PATH变量中

对于个人用户,请将其添加到.bashrc文件中,如此

export PATH=/opt/puppetlabs/bin/:$PATH