foreman_katello_lifecycle_environment

Lifecycle environments group hosts into logical stages, example dev/test/prod.

Example Usage

# Autogenerated example with required keys
resource "foreman_katello_lifecycle_environment" "example" {
  name = "My new env"
  organization_id = 1
  prior_id = data.foreman_katello_lifecycle_environment.library.id
}

Argument Reference

The following arguments are supported:

  • description - (Optional) Description for the lifecycle environment
  • label - (Optional, Force New) Label for the lifecycle environment. Cannot be changed after creation. By default set to the name, with underscores as spaces replacement.
  • name - (Required) Name of the lifecycle environment.
  • organization_id - (Required)
  • prior_id - (Required) ID of the prior lifecycle environment. Use '1' to refer to the built-in 'Library' root environment.

Attributes Reference

The following attributes are exported:

  • description - Description for the lifecycle environment
  • label - Label for the lifecycle environment. Cannot be changed after creation. By default set to the name, with underscores as spaces replacement.
  • library - Specifies if this environment is the special 'Library' root environment.
  • name - Name of the lifecycle environment.
  • organization_id -
  • prior_id - ID of the prior lifecycle environment. Use '1' to refer to the built-in 'Library' root environment.
  • successor_id -