2.61. hammer puppet-class


搜索 puppet 模块

Usage:
    hammer puppet-class [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 info, show                    Show a Puppet class
 list, index                   List all Puppet classes
 sc-params                     List all smart class parameters

Options:
 -h, --help                    Print help

2.61.1. hammer puppet-class info

显示 Puppet 类

Usage:
    hammer puppet-class <info|show> [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field sets only. (See below)
                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                               JSON is acceptable and preferred way for complex parameters
 --host HOST_NAME                              Host name
 --host-id HOST_ID                             ID of host
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID                   ID of host group
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --id ID                                       ID of Puppet class
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Puppet class name
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                    Print help

Predefined field sets:
  ------------------------|-----|---------|-----
  FIELDS                  | ALL | DEFAULT | THIN
  ------------------------|-----|---------|-----
  Id                      | x   | x       | x
  Name                    | x   | x       | x
  Smart class parameters/ | x   | x       |
  Hostgroups/             | x   | x       |
  Environments/           | x   | x       |
  Parameters/             | x   | x       |
  ------------------------|-----|---------|-----

2.61.2. hammer puppet-class list

列出所有 Puppet 类

Usage:
    hammer puppet-class <list|index> [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field sets only. (See below)
                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                               JSON is acceptable and preferred way for complex parameters
 --host HOST_NAME                              Host name
 --host-id HOST_ID                             ID of host
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID                   ID of host group
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --search SEARCH                               Filter results
 -h, --help                                    Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Id     | x   | x       | x
  Name   | x   | x       | x
  -------|-----|---------|-----

Search / Order fields:
  config_group        string
  environment         string
  host                string
  hostgroup           string
  key                 string
  location            string
  name                string
  organization        string

2.61.3. hammer puppet-class sc-params

列出所有智能类参数

Usage:
    hammer puppet-class sc-params [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field sets only. (See below)
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --puppet-class PUPPET_CLASS_NAME        Puppet class name
 --puppet-class-id PUPPET_CLASS_ID
 --search SEARCH                         Filter results
 --show-hidden SHOW_HIDDEN               Display hidden values
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.