이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 91. template-input


Manage template inputs

Usage

# hammer template-input [OPTIONS] SUBCOMMAND [ARG] ...
Copy to Clipboard Toggle word wrap

Options

  • -h, --help – Print help

91.1. template-input create

Create a template input

Usage

# hammer template-input create [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --advanced BOOLEAN – Input is advanced
  • --default VALUE – Default value for user input
  • --description VALUE – Input description
  • --fact-name VALUE – Fact name, used when input type is Fact value
  • --hidden-value BOOLEAN – The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords
  • --input-type ENUM – Input type Possible value(s): puppet_parameter, user, fact, variable
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Input name
  • --options LIST – Selectable values for user inputs
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --puppet-class-name VALUE – Puppet class name, used when input type is Puppet parameter
  • --puppet-parameter-name VALUE Puppet parameter name, used when input type is Puppet parameter
  • --required BOOLEAN – Input is required
  • --resource-type ENUM – For values of type search, this is the resource the value searches in Possible value(s): AnsibleRole, AnsibleVariable, Architecture, Audit, AuthSource, Bookmark, ComputeProfile, ComputeResource, ConfigReport, DiscoveryRule, Domain, ExternalUsergroup, FactValue, Filter, ForemanOpenscap::ArfReport, ForemanOpenscap::Policy, ForemanOpenscap::ScapContent, ForemanOpenscap::TailoringFile, ForemanPuppet::ConfigGroup, ForemanPuppet::Environment, ForemanPuppet::HostClass, ForemanPuppet::Puppetclass, ForemanPuppet::PuppetclassLookupKey, ForemanTasks::RecurringLogic, ForemanTasks::Task, ForemanVirtWhoConfigure::Config, Host, Hostgroup, HttpProxy, Image, InsightsHit, JobInvocation, JobTemplate, Katello::ActivationKey, Katello::AlternateContentSource, Katello::ContentCredential, Katello::ContentView, Katello::FlatpakRemote, Katello::HostCollection, Katello::KTEnvironment, Katello::Product, Katello::Subscription, Katello::SyncPlan, KeyPair, Location, LookupValue, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Realm, RemoteExecutionFeature, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, Template, TemplateInvocation, User, Usergroup, Webhook, WebhookTemplate
  • --template-id VALUE
  • --value-type ENUM – Value type, defaults to plain Possible value(s): plain, search, date, resource
  • --variable-name VALUE – Variable name, used when input type is Variable
  • -h, --help – Print help

91.2. template-input delete

Delete a template input

Usage

# hammer template-input <delete|destroy> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Name to search by
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --template-id VALUE
  • -h, --help – Print help

91.3. template-input info

Show template input details

Usage

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

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --id VALUE
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Name to search by
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --template-id VALUE
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULTTHIN

Id

x

x

x

Name

x

x

x

Input type

x

x

 

Fact name

x

x

 

Variable name

x

x

 

Puppet parameter name

x

x

 

Options

x

x

 

Default value

x

x

 

91.4. template-input list

List template inputs

Usage

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

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --order VALUE – Sort and order by a searchable field, e.g. <field> DESC
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --page NUMBER – Page number, starting at 1
  • --per-page VALUE – Number of results per page to return, all to return all results
  • --search VALUE – Filter results
  • --template-id VALUE
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULTTHIN

Id

x

x

x

Name

x

x

x

Input type

x

x

 

Search and order fields

  • id – integer
  • input_type – string
  • name – string

91.5. template-input update

Update a template input

Usage

# hammer template-input update [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --advanced BOOLEAN – Input is advanced
  • --default VALUE – Default value for user input
  • --description VALUE – Input description
  • --fact-name VALUE – Fact name, used when input type is Fact value
  • --hidden-value BOOLEAN – The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords
  • --id VALUE
  • --input-type ENUM – Input type Possible value(s): puppet_parameter, user, fact, variable
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Input name
  • --new-name VALUE – Input name
  • --options LIST – Selectable values for user inputs
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --puppet-class-name VALUE – Puppet class name, used when input type is Puppet parameter
  • --puppet-parameter-name VALUE Puppet parameter name, used when input type is Puppet parameter
  • --required BOOLEAN – Input is required
  • --resource-type ENUM – For values of type search, this is the resource the value searches in Possible value(s): AnsibleRole, AnsibleVariable, Architecture, Audit, AuthSource, Bookmark, ComputeProfile, ComputeResource, ConfigReport, DiscoveryRule, Domain, ExternalUsergroup, FactValue, Filter, ForemanOpenscap::ArfReport, ForemanOpenscap::Policy, ForemanOpenscap::ScapContent, ForemanOpenscap::TailoringFile, ForemanPuppet::ConfigGroup, ForemanPuppet::Environment, ForemanPuppet::HostClass, ForemanPuppet::Puppetclass, ForemanPuppet::PuppetclassLookupKey, ForemanTasks::RecurringLogic, ForemanTasks::Task, ForemanVirtWhoConfigure::Config, Host, Hostgroup, HttpProxy, Image, InsightsHit, JobInvocation, JobTemplate, Katello::ActivationKey, Katello::AlternateContentSource, Katello::ContentCredential, Katello::ContentView, Katello::FlatpakRemote, Katello::HostCollection, Katello::KTEnvironment, Katello::Product, Katello::Subscription, Katello::SyncPlan, KeyPair, Location, LookupValue, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Realm, RemoteExecutionFeature, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, Template, TemplateInvocation, User, Usergroup, Webhook, WebhookTemplate
  • --template-id VALUE
  • --value-type ENUM – Value type, defaults to plain Possible value(s): plain, search, date, resource
  • --variable-name VALUE – Variable name, used when input type is Variable
  • -h, --help – Print help
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat