Documentation ¶
Overview ¶
Use this data source to query Credential by ID.
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
Use this data source to query Credential Type by ID.
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl
data "awx_inventory" "default" { name = "private_services" organization_id = data.awx_organization.default.id }
```
*TBD*
Example Usage ¶
```hcl
data "awx_inventory_group" "default" { name = "k3sPrimary" inventory_id = data.awx_inventory.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_inventory" "myinv" { name = "My Inventory" ... }
data "awx_inventory_role" "inv_admin_role" { name = "Admin" inventory_id = data.awx_inventory.myinv.id }
```
*TBD*
Example Usage ¶
```hcl
data "awx_job_template" "default" { name = "Default" }
```
*TBD*
Example Usage ¶
```hcl
data "awx_notification_template" "default" { name = "private_services" }
```
*TBD*
Example Usage ¶
```hcl
data "awx_organization" "default" { name = "Default" }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_organization" "myorg" { name = "My AWX Org" ... }
data "awx_organization_role" "org_admins" { name = "Admin" organization_id = resource.awx_organization.myorg.id }
```
Use this data source to query Organizations.
Example Usage ¶
```hcl data "awx_organizations" "all_orgs" {} ```
*TBD*
Example Usage ¶
```hcl
data "awx_project" "default" { name = "Default" }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_project" "myproj" { name = "My AWX Project" ... }
data "awx_project_role" "proj_admins" { name = "Admin" project_id = resource.awx_project.myproj.id }
```
*TBD*
Example Usage ¶
```hcl
data "awx_schedule" "default" { name = "private_services" }
```
*TBD*
Example Usage ¶
```hcl
data "awx_team" "default" { name = "Default" }
```
*TBD*
Example Usage ¶
```hcl
data "awx_workflow_job_template" "default" { name = "Default" }
```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl
resource "awx_credential_gitlab" "credential" { organization_id = awx_organization.default.id name = "awx-scm-credential" description = "test" token = "My_TOKEN" }
```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl
resource "awx_execution_environment" "default" { name = "acc-test" }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_host" "k3snode1" { name = "k3snode1" description = "pi node 1" inventory_id = data.awx_inventory.default.id group_ids = [ data.awx_inventory_group.default.id, data.awx_inventory_group.pinodes.id, ] enabled = true variables = <<YAML
--- ansible_host: 192.168.178.29 YAML } ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl
data "awx_organization" "default" { name = "Default" }
resource "awx_inventory" "default" { name = "acc-test" organization_id = data.awx_organization.default.id variables = <<YAML
--- system_supporters:
- pi
YAML } ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl *TBD* ```
*TBD*
Example Usage ¶
```hcl
data "awx_inventory" "default" { name = "private_services" organisation_id = data.awx_organization.default.id } resource "awx_job_template" "baseconfig" { name = "baseconfig" job_type = "run" inventory_id = data.awx_inventory.default.id project_id = awx_project.base_service_config.id playbook = "master-configure-system.yml" become_enabled = true }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_job_template_credential" "baseconfig" { job_template_id = awx_job_template.baseconfig.id credential_id = awx_credential_machine.pi_connection.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_job_template_notification_template_error" "baseconfig" { job_template_id = awx_job_template.baseconfig.id notification_template_id = awx_notification_template.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_job_template_notification_template_started" "baseconfig" { job_template_id = awx_job_template.baseconfig.id notification_template_id = awx_notification_template.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_job_template_notification_template_success" "baseconfig" { job_template_id = awx_job_template.baseconfig.id notification_template_id = awx_notification_template.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_notification_template" "default" { name = "notification_template-test" }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_organization" "default" { name = "acc-test" }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_organization_galaxy_credential" "baseconfig" { organization_id = awx_organization.baseconfig.id credential_id = awx_credential_machine.pi_connection.id }
```
*TBD*
Example Usage ¶
```hcl
data "awx_organization" "default" { name = "Default" } resource "awx_project" "base_service_config" { name = "base-service-configuration" scm_type = "git" scm_url = "https://github.com/nolte/ansible_playbook-baseline-online-server" scm_branch = "feature/centos8-v2" scm_update_on_launch = true organization_id = data.awx_organization.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_schedule" "default" { name = "schedule-test" rrule = "DTSTART;TZID=Europe/Paris:20211214T120000 RRULE:INTERVAL=1;FREQ=DAILY" unified_job_template_id = awx_job_template.baseconfig.id extra_data = <<EOL
organization_name: testorg EOL } ```
This resource configure generic AWX settings. Please note that resource deletion only delete object from terraform state and do not reset setting to his initial value.
See available settings list here: https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html#/Settings/Settings_settings_update
Example Usage ¶
```hcl
resource "awx_setting" "social_auth_saml_technical_contact" { name = "SOCIAL_AUTH_SAML_TECHNICAL_CONTACT" value = <<EOF { "givenName": "Myorg", "emailAddress": "test@foo.com" } EOF }
resource "awx_setting" "social_auth_saml_sp_entity_id" { name = "SOCIAL_AUTH_SAML_SP_ENTITY_ID" value = "test" }
resource "awx_setting" "schedule_max_jobs" { name = "SCHEDULE_MAX_JOBS" value = 15 }
resource "awx_setting" "remote_host_headers" { name = "REMOTE_HOST_HEADERS" value = <<EOF [ "HTTP_X_FORWARDED_FOR", "REMOTE_ADDR", "REMOTE_HOST" ] EOF }
```
*TBD*
Example Usage ¶
```hcl
data "awx_organization" "default" { name = "Default" }
resource "awx_team" "admin_team" { name = "Admins" organization_id = data.awx_organization.default.id }
resource "awx_settings_ldap_team_map" "admin_team_map" { name = resource.awx_team.admin_team.name users = ["CN=MyTeam,OU=Groups,DC=example,DC=com"] organization = data.awx_organization.default.name remove = true }
```
*TBD*
Example Usage ¶
```hcl
data "awx_organization" "default" { name = "Default" }
data "awx_inventory" "myinv" { name = "My Inventory" }
data "awx_inventory_role" "myinv_admins" { name = "Admin" inventory_id = data.awx_inventory.myinv.id }
data "awx_project" "myproj" { name = "My Project" }
data "awx_project_role" "myproj_admins" { name = "Admin" project_id = data.awx_project.myproj.id }
resource "awx_team" "admins_team" { name = "admins-team" organization_id = data.awx_organization.default.id role_entitlement { role_id = data.awx_inventory_role.myinv_admins.id } role_entitlement { role_id = data.awx_project_role.myproj_admins.id } }
```
*TBD*
Example Usage ¶
```hcl
data "awx_organization" "default" { name = "Default" }
data "awx_organization_role" "orga_read" { name = "Read" organization_id = awx_organization.default.id }
resource "awx_user" "my_user" { username = "my_user" password = "my_password" role_entitlement { role_id = data.awx_organization_role.orga_read.id } }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_workflow_job_template" "default" { name = "workflow-job" organization_id = var.organization_id inventory_id = awx_inventory.default.id }
```
*TBD*
Example Usage ¶
```hcl resource "random_uuid" "workflow_node_base_uuid" {}
resource "awx_workflow_job_template_node" "default" { workflow_job_template_id = awx_workflow_job_template.default.id unified_job_template_id = awx_job_template.baseconfig.id inventory_id = awx_inventory.default.id identifier = random_uuid.workflow_node_base_uuid.result }
```
*TBD*
Example Usage ¶
```hcl resource "random_uuid" "workflow_node_k3s_uuid" {}
resource "awx_workflow_job_template_node_always" "k3s" { workflow_job_template_id = awx_workflow_job_template.default.id workflow_job_template_node_id = awx_workflow_job_template_node.default.id unified_job_template_id = awx_job_template.k3s.id inventory_id = awx_inventory.default.id identifier = random_uuid.workflow_node_k3s_uuid.result }
```
*TBD*
Example Usage ¶
```hcl resource "random_uuid" "workflow_node_k3s_uuid" {}
resource "awx_workflow_job_template_node_failure" "k3s" { workflow_job_template_id = awx_workflow_job_template.default.id workflow_job_template_node_id = awx_workflow_job_template_node.default.id unified_job_template_id = awx_job_template.k3s.id inventory_id = awx_inventory.default.id identifier = random_uuid.workflow_node_k3s_uuid.result }
```
*TBD*
Example Usage ¶
```hcl resource "random_uuid" "workflow_node_k3s_uuid" {}
resource "awx_workflow_job_template_node_success" "k3s" { workflow_job_template_id = awx_workflow_job_template.default.id workflow_job_template_node_id = awx_workflow_job_template_node.default.id unified_job_template_id = awx_job_template.k3s.id inventory_id = awx_inventory.default.id identifier = random_uuid.workflow_node_k3s_uuid.result }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_workflow_job_template_notification_template_error" "baseconfig" { workflow_job_template_id = awx_workflow_job_template.baseconfig.id notification_template_id = awx_notification_template.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_workflow_job_template_notification_template_started" "baseconfig" { workflow_job_template_id = awx_workflow_job_template.baseconfig.id notification_template_id = awx_notification_template.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_workflow_job_template_notification_template_success" "baseconfig" { workflow_job_template_id = awx_workflow_job_template.baseconfig.id notification_template_id = awx_notification_template.default.id }
```
*TBD*
Example Usage ¶
```hcl
resource "awx_workflow_job_template_schedule" "default" { workflow_job_template_id = awx_workflow_job_template.default.id name = "schedule-test" rrule = "DTSTART;TZID=Europe/Paris:20211214T120000 RRULE:INTERVAL=1;FREQ=DAILY" extra_data = <<EOL
organization_name: testorg EOL } ```
Index ¶
- func AtoipOr(s string, defaultValue *int) *int
- func CredentialTypeServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func CredentialsServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func Provider() *schema.Provider
- type JobTemplateLaunchData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtoipOr ¶
AtoipOr takes a string and a defaultValue. If the string cannot be converted, defaultValue is returned
func CredentialTypeServiceDeleteByID ¶
func CredentialTypeServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func CredentialsServiceDeleteByID ¶
func CredentialsServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
Types ¶
type JobTemplateLaunchData ¶
type JobTemplateLaunchData struct { Limit string `json:"limit,omitempty"` Inventory int `json:"inventory,omitempty"` ExtraVars map[string]interface{} `json:"extra_vars,omitempty"` }
JobTemplateLaunchData provides payload data used by the JobTemplateLaunch method
Source Files ¶
- convert_type.go
- data_source_credential.go
- data_source_credential_azure_key_vault.go
- data_source_credential_type.go
- data_source_execution_environment.go
- data_source_inventory.go
- data_source_inventory_group.go
- data_source_inventory_role.go
- data_source_job_template.go
- data_source_notification_template.go
- data_source_organization.go
- data_source_organization_role.go
- data_source_organizations.go
- data_source_project.go
- data_source_project_role.go
- data_source_schedule.go
- data_source_team.go
- data_source_workflow_job_template.go
- helpers.go
- provider.go
- resource_credential.go
- resource_credential_azure_key_vault.go
- resource_credential_galaxy.go
- resource_credential_gitlab.go
- resource_credential_google_compute_engine.go
- resource_credential_input_source.go
- resource_credential_machine.go
- resource_credential_scm.go
- resource_credential_type.go
- resource_execution_environment.go
- resource_host.go
- resource_instance_group.go
- resource_inventory.go
- resource_inventory_group.go
- resource_inventory_source.go
- resource_job_template.go
- resource_job_template_credential.go
- resource_job_template_launch.go
- resource_job_template_notification_template_error.go
- resource_job_template_notification_template_shared.go
- resource_job_template_notification_template_started.go
- resource_job_template_notification_template_success.go
- resource_notification_template.go
- resource_organization.go
- resource_organization_galaxy_credential.go
- resource_project.go
- resource_schedule.go
- resource_setting.go
- resource_settings_ldap_team_map.go
- resource_team.go
- resource_user.go
- resource_workflow_job_template.go
- resource_workflow_job_template_node.go
- resource_workflow_job_template_node_always.go
- resource_workflow_job_template_node_failure.go
- resource_workflow_job_template_node_shared.go
- resource_workflow_job_template_node_success.go
- resource_workflow_job_template_notification_template_error.go
- resource_workflow_job_template_notification_template_shared.go
- resource_workflow_job_template_notification_template_started.go
- resource_workflow_job_template_notification_template_success.go
- resource_workflow_job_template_schedule.go