blovekyo 发表于 2018-8-1 13:39:36

Puppet module命令参数介绍(六)

# puppet help module  
USAGE: puppet module <action> [--environment production ]
  
[--modulepath $basemodulepath ]
  
This subcommand can find, install, and manage modules from the Puppet Forge,
  
a repository of user-contributed Puppet code. It can also generate empty
  
modules, and prepare locally developed modules for release on the Forge.
  
OPTIONS:
  
--render-as FORMAT             - The rendering format to use.
  
--verbose                      - Whether to log verbosely.
  
--debug                        - Whether to log debug information.
  
--environment production       - The environment Puppet is running in. For
  
                                 clients (e.g., `puppet agent`) this
  
                                 determines the environment itself, which is
  
                                 used to find modules and much more. For
  
                                 servers (i.e., `puppet master`) this provides
  
                                 the default environment for nodes we know
  
                                 nothing about.
  
--modulepath $basemodulepath   - The search path for modules, as a list of
  
                                 directories separated by the system path
  
                                 separator character. (The POSIX path
  
                                 separator is ':', and the Windows path
  
                                 separator is ';'.) Setting a global value for
  
                                 `modulepath` in puppet.conf is deprecated.
  
                                 Please use directory environments instead. If
  
                                 you need to use something other than the
  
                                 default modulepath of `<ACTIVE ENVIRONMENT'S
  
                                 MODULES DIR>:$basemodulepath`, you can set
  
                                 `modulepath` in environment.conf. For more
  
                                 info, see
  
                                 http://docs.puppetlabs.com/puppet/latest/reference/environments.html
  
ACTIONS:
  
build      Build a module release package.
  
changes      Show modified files of an installed module.
  
generate   Generate boilerplate for a new module.
  
install      Install a module from the Puppet Forge or a release archive.
  
list         List installed modules
  
search       Search the Puppet Forge for a module.
  
uninstall    Uninstall a puppet module.
  
upgrade      Upgrade a puppet module.
  
See 'puppet man module' or 'man puppet-module' for full help.
页: [1]
查看完整版本: Puppet module命令参数介绍(六)