2.85. hammer template-input
管理模板输入
Usage: hammer template-input [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create a template input delete, destroy Delete a template input info, show Show template input details list, index List template inputs update Update a template input Options: -h, --help Print help
2.85.1. hammer template-input create
创建模板输入
Usage: hammer template-input create [OPTIONS] Options: --advanced ADVANCED Input is advanced One of true/false, yes/no, 1/0. --default DEFAULT Default value for user input --description DESCRIPTION Input description --fact-name FACT_NAME Fact name, used when input type is Fact value --hidden-value HIDDEN_VALUE The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords One of true/false, yes/no, 1/0. --input-type INPUT_TYPE Input type Possible value(s): 'user', 'fact', 'variable', 'puppet_parameter' --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 Input name --options OPTIONS Selectable values for user inputs Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --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-class-name PUPPET_CLASS_NAME Puppet class name, used when input type is Puppet parameter --puppet-parameter-name PUPPET_PARAMETER_NAME Puppet parameter name, used when input type is Puppet parameter --required REQUIRED Input is required One of true/false, yes/no, 1/0. --resource-type RESOURCE_TYPE For values of type search, this is the resource the value searches in Possible value(s): 'AnsibleRole', 'AnsibleVariable', 'Architecture', 'Audit', 'AuthSource', 'Bookmark', 'ComputeProfile', 'ComputeResource', 'ConfigGroup', 'ConfigReport', 'DiscoveryRule', 'Domain', 'Environment', 'ExternalUsergroup', 'FactValue', 'Filter', 'ForemanOpenscap::ArfReport', 'ForemanOpenscap::OvalContent', 'ForemanOpenscap::OvalPolicy', 'ForemanOpenscap::Policy', 'ForemanOpenscap::ScapContent', 'ForemanOpenscap::TailoringFile', 'ForemanTasks::RecurringLogic', 'ForemanTasks::Task', 'ForemanVirtWhoConfigure::Config', 'Host', 'HostClass', 'Hostgroup', 'HttpProxy', 'Image', 'InsightsHit', 'JobInvocation', 'JobTemplate', 'Katello::ActivationKey', 'Katello::ContentView', 'Katello::GpgKey', 'Katello::HostCollection', 'Katello::KTEnvironment', 'Katello::Product', 'Katello::Subscription', 'Katello::SyncPlan', 'KeyPair', 'Location', 'MailNotification', 'Medium', 'Model', 'Operatingsystem', 'Organization', 'Parameter', 'PersonalAccessToken', 'ProvisioningTemplate', 'Ptable', 'Puppetclass', 'PuppetclassLookupKey', 'Realm', 'RemoteExecutionFeature', 'Report', 'ReportTemplate', 'Role', 'Setting', 'SmartProxy', 'SshKey', 'Subnet', 'Template', 'TemplateInvocation', 'User', 'Usergroup', 'Webhook', 'WebhookTemplate' --template-id TEMPLATE_ID --value-type VALUE_TYPE Value type, defaults to plain Possible value(s): 'plain', 'search', 'date' --variable-name VARIABLE_NAME Variable name, used when input type is Variable -h, --help Print help
2.85.2. hammer template-input delete
删除模板输入
Usage: hammer template-input <delete|destroy> [OPTIONS] Options: --id ID --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 Name to search by --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 --template-id TEMPLATE_ID -h, --help Print help
2.85.3. hammer template-input info
显示模板输入详情
Usage: hammer template-input <info|show> [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 --id ID --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 Name to search by --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 --template-id TEMPLATE_ID -h, --help Print help Predefined field sets: ----------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ----------------------|-----|---------|----- 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 | ----------------------|-----|---------|-----
2.85.4. hammer template-input list
列出模板输入
Usage: hammer template-input <list|index> [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 --search SEARCH Filter results --template-id TEMPLATE_ID -h, --help Print help Predefined field sets: -----------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------|-----|---------|----- Id | x | x | x Name | x | x | x Input type | x | x | -----------|-----|---------|----- Search / Order fields: input_type string name string
2.85.5. hammer 模板输入更新
更新模板输入
Usage: hammer template-input update [OPTIONS] Options: --advanced ADVANCED Input is advanced One of true/false, yes/no, 1/0. --default DEFAULT Default value for user input --description DESCRIPTION Input description --fact-name FACT_NAME Fact name, used when input type is Fact value --hidden-value HIDDEN_VALUE The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords One of true/false, yes/no, 1/0. --id ID --input-type INPUT_TYPE Input type Possible value(s): 'user', 'fact', 'variable', 'puppet_parameter' --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 Name to search by --new-name NEW_NAME Input name --options OPTIONS Selectable values for user inputs Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --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-class-name PUPPET_CLASS_NAME Puppet class name, used when input type is Puppet parameter --puppet-parameter-name PUPPET_PARAMETER_NAME Puppet parameter name, used when input type is Puppet parameter --required REQUIRED Input is required One of true/false, yes/no, 1/0. --resource-type RESOURCE_TYPE For values of type search, this is the resource the value searches in Possible value(s): 'AnsibleRole', 'AnsibleVariable', 'Architecture', 'Audit', 'AuthSource', 'Bookmark', 'ComputeProfile', 'ComputeResource', 'ConfigGroup', 'ConfigReport', 'DiscoveryRule', 'Domain', 'Environment', 'ExternalUsergroup', 'FactValue', 'Filter', 'ForemanOpenscap::ArfReport', 'ForemanOpenscap::OvalContent', 'ForemanOpenscap::OvalPolicy', 'ForemanOpenscap::Policy', 'ForemanOpenscap::ScapContent', 'ForemanOpenscap::TailoringFile', 'ForemanTasks::RecurringLogic', 'ForemanTasks::Task', 'ForemanVirtWhoConfigure::Config', 'Host', 'HostClass', 'Hostgroup', 'HttpProxy', 'Image', 'InsightsHit', 'JobInvocation', 'JobTemplate', 'Katello::ActivationKey', 'Katello::ContentView', 'Katello::GpgKey', 'Katello::HostCollection', 'Katello::KTEnvironment', 'Katello::Product', 'Katello::Subscription', 'Katello::SyncPlan', 'KeyPair', 'Location', 'MailNotification', 'Medium', 'Model', 'Operatingsystem', 'Organization', 'Parameter', 'PersonalAccessToken', 'ProvisioningTemplate', 'Ptable', 'Puppetclass', 'PuppetclassLookupKey', 'Realm', 'RemoteExecutionFeature', 'Report', 'ReportTemplate', 'Role', 'Setting', 'SmartProxy', 'SshKey', 'Subnet', 'Template', 'TemplateInvocation', 'User', 'Usergroup', 'Webhook', 'WebhookTemplate' --template-id TEMPLATE_ID --value-type VALUE_TYPE Value type, defaults to plain Possible value(s): 'plain', 'search', 'date' --variable-name VARIABLE_NAME Variable name, used when input type is Variable -h, --help Print help