このコンテンツは選択した言語では利用できません。

Chapter 78. sc-param


Manage Foreman Puppet smart class parameters

Usage

# hammer sc-param [OPTIONS] SUBCOMMAND [ARG] ...
Copy to Clipboard Toggle word wrap

Options

  • -h, --help – Print help

78.1. sc-param add-matcher

Create an override value for a specific smart class parameter

Usage

# hammer sc-param add-matcher [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --match VALUE – Override match
  • --omit BOOLEAN – Satellite will not send this parameter in classification output
  • --puppet-class VALUE – Puppet class name
  • --puppet-class-id NUMBER – ID of Puppet class
  • --smart-class-parameter VALUE – Smart class parameter name
  • --smart-class-parameter-id VALUE
  • --value VALUE – Override value, required if omit is false
  • -h, --help – Print help

78.2. sc-param info

Show a smart class parameter

Usage

# hammer sc-param <info|show> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --id VALUE
  • --name VALUE – Smart class parameter name
  • --puppet-class VALUE – Puppet class name
  • --puppet-class-id NUMBER – ID of Puppet class
  • --show-hidden BOOLEAN – Display hidden values
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULT

Id

x

x

Parameter

x

x

Default value

x

x

Override

x

x

Puppet class

x

x

Class id

x

x

Description

x

x

Type

x

x

Hidden value?

x

x

Omit

x

x

Required

x

x

Validator/type

x

x

Validator/rule

x

x

Override values/merge overrides

x

x

Override values/merge default value

x

x

Override values/avoid duplicates

x

x

Override values/order

x

x

Override values/values/id

x

x

Override values/values/match

x

x

Override values/values/value

x

x

Override values/values/omit

x

x

Environments/

x

x

Created at

x

x

Updated at

x

x

78.3. sc-param list

List all smart class parameters

Usage

# hammer sc-param <list|index> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --host VALUE – Host name
  • --host-id VALUE
  • --hostgroup VALUE – Hostgroup name
  • --hostgroup-id VALUE
  • --hostgroup-title VALUE – Hostgroup title
  • --order VALUE – Sort and order by a searchable field, e.g. <field> DESC
  • --page NUMBER – Page number, starting at 1
  • --per-page VALUE – Number of results per page to return, all to return all results
  • --puppet-class VALUE – Puppet class name
  • --puppet-class-id VALUE
  • --puppet-environment VALUE – Puppet environment name
  • --puppet-environment-id VALUE
  • --search VALUE – Filter results
  • --show-hidden BOOLEAN – Display hidden values
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULT

Id

x

x

Parameter

x

x

Default value

x

x

Override

x

x

Puppet class

x

x

Class id

x

x

Search and 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

78.4. sc-param remove-matcher

Delete an override value for a specific smart class parameter

Usage

# hammer sc-param remove-matcher [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --puppet-class VALUE – Puppet class name
  • --puppet-class-id NUMBER – ID of Puppet class
  • --smart-class-parameter VALUE – Smart class parameter name
  • --smart-class-parameter-id VALUE
  • -h, --help – Print help

78.5. sc-param update

Update a smart class parameter

Usage

# hammer sc-param update [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --avoid-duplicates BOOLEAN – Remove duplicate values (only array type)
  • --default-value VALUE – Value to use when there is no match
  • --description VALUE – Description of smart class
  • --hidden-value BOOLEAN – When enabled the parameter is hidden in the UI
  • --id VALUE
  • --merge-default BOOLEAN – Include default value when merging all matching values
  • --merge-overrides BOOLEAN – Merge all matching values (only array/hash type)
  • --name VALUE – Smart class parameter name
  • --omit BOOLEAN – Satellite will not send this parameter in classification output.Puppet will use the value defined in the Puppet manifest for this parameter
  • --override BOOLEAN – Override this parameter
  • --override-value-order LIST – The order in which values are resolved
  • --parameter-type ENUM – Type of the parameter Possible value(s): string, boolean, integer, real, array, hash, yaml, json
  • --path VALUE – The order in which values are resolved
  • --puppet-class VALUE – Puppet class name
  • --puppet-class-id NUMBER – ID of Puppet class
  • --required BOOLEAN – This parameter is required
  • --validator-rule VALUE – Used to enforce certain values for the parameter values
  • --validator-type ENUM – Type of the validator Possible value(s): regexp, list, ``
  • -h, --help – Print help
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat