Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ develop/.env
develop/terraform-provider-*

test.go

local/
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ build: ## Build the provider for local development
@echo "🏁 Complete! Binary is located in develop/terraform-provider-awx."
.PHONY: build

local-build: ## Build the provider and install for local testing (local/terraform)
@echo "🛠️ Building the provider for local testing..."
@mkdir -p local/bin
@go build -o local/bin/terraform-provider-awx
@echo "🏁 Complete! Use 'make local-plan' or 'make local-import' to test."
.PHONY: local-build

local-plan: local-build ## Run terraform plan against local AWX instance
@cd local/terraform && TF_CLI_CONFIG_FILE=.terraformrc terraform plan
.PHONY: local-plan

local-import: local-build ## Run terraform import - usage: make local-import RESOURCE=awx_credential_machine.test ID=1
@cd local/terraform && TF_CLI_CONFIG_FILE=.terraformrc terraform import $(RESOURCE) $(ID)
.PHONY: local-import

terraform-plan: ## Run terraform plan to test the provider
@cd develop && terraform plan
.PHONY: terraform-plan
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.7.7
v1.8.0
45 changes: 45 additions & 0 deletions docs/data-sources/credential_machine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awx_credential_machine Data Source - terraform-provider-awx"
subcategory: ""
description: |-
Data source for Machine credentials in AWX.
---

# awx_credential_machine (Data Source)

Data source for Machine credentials in AWX.

## Example Usage

```terraform
data "awx_credential_machine" "example" {
credential_id = 10
}

output "credential_name" {
value = data.awx_credential_machine.example.name
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `credential_id` (Number) The ID of the credential.

### Read-Only

- `become_method` (String) The become method for the credential.
- `become_password` (String, Sensitive) The become password for the credential.
- `become_username` (String) The become username for the credential.
- `description` (String) The description of the credential.
- `id` (String) The ID of this resource.
- `name` (String) The name of the credential.
- `organization_id` (Number) The organization ID of the credential.
- `password` (String, Sensitive) The password for the credential.
- `ssh_key_data` (String, Sensitive) The SSH key data for the credential.
- `ssh_key_unlock` (String, Sensitive) The SSH key unlock passphrase for the credential.
- `ssh_public_key_data` (String) The SSH public key data for the credential.
- `username` (String) The username for the credential.
41 changes: 41 additions & 0 deletions docs/data-sources/credential_scm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awx_credential_scm Data Source - terraform-provider-awx"
subcategory: ""
description: |-
Data source for Source Control credentials in AWX.
---

# awx_credential_scm (Data Source)

Data source for Source Control credentials in AWX.

## Example Usage

```terraform
data "awx_credential_scm" "example" {
credential_id = 10
}

output "credential_name" {
value = data.awx_credential_scm.example.name
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `credential_id` (Number) The ID of the credential.

### Read-Only

- `description` (String) The description of the credential.
- `id` (String) The ID of this resource.
- `name` (String) The name of the credential.
- `organization_id` (Number) The organization ID of the credential.
- `password` (String, Sensitive) The password for the credential.
- `ssh_key_data` (String, Sensitive) The SSH key data for the credential.
- `ssh_key_unlock` (String, Sensitive) The SSH key unlock passphrase for the credential.
- `username` (String) The username for the credential.
39 changes: 39 additions & 0 deletions docs/data-sources/credential_vault.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awx_credential_vault Data Source - terraform-provider-awx"
subcategory: ""
description: |-
Data source for Vault credentials in AWX.
---

# awx_credential_vault (Data Source)

Data source for Vault credentials in AWX.

## Example Usage

```terraform
data "awx_credential_vault" "example" {
credential_id = 10
}

output "credential_name" {
value = data.awx_credential_vault.example.name
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `credential_id` (Number) The ID of the credential.

### Read-Only

- `description` (String) The description of the credential.
- `id` (String) The ID of this resource.
- `name` (String) The name of the credential.
- `organization_id` (Number) The organization ID of the credential.
- `vault_id` (String) The vault identity to use.
- `vault_password` (String, Sensitive) Vault Password.
32 changes: 32 additions & 0 deletions docs/data-sources/instance_group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awx_instance_group Data Source - terraform-provider-awx"
subcategory: ""
description: |-
Use this data source to get the instance group ID by name, which can be used in resources such as awxjobtemplateinstancegroups.
---

# awx_instance_group (Data Source)

Use this data source to get the instance group ID by name, which can be used in resources such as awx_job_template_instance_groups.

## Example Usage

```terraform
data "awx_instance_group" "example" {
name = "default"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the instance group to look up.

### Read-Only

- `capacity` (Number) The capacity of the instance group.
- `id` (String) The ID of this resource.
- `is_container_group` (Boolean) Whether the instance group is a container group.
51 changes: 51 additions & 0 deletions docs/data-sources/inventory_source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awx_inventory_source Data Source - terraform-provider-awx"
subcategory: ""
description: |-
Data source for Inventory Sources in AWX.
---

# awx_inventory_source (Data Source)

Data source for Inventory Sources in AWX.

## Example Usage

```terraform
data "awx_inventory_source" "example" {
inventory_source_id = 10
}

output "inventory_source_name" {
value = data.awx_inventory_source.example.name
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `inventory_source_id` (Number) The ID of the inventory source.

### Read-Only

- `credential_id` (Number) The credential used for the inventory source.
- `description` (String) The description of the inventory source.
- `enabled_value` (String) The value of the variable that determines if the inventory source is enabled.
- `enabled_var` (String) The variable that determines if the inventory source is enabled.
- `execution_environment` (Number) The execution environment for the inventory source.
- `host_filter` (String) The host filter for the inventory source.
- `id` (String) The ID of this resource.
- `inventory_id` (Number) The inventory the inventory source belongs to.
- `name` (String) The name of the inventory source.
- `overwrite` (Boolean) Whether to overwrite the inventory source.
- `overwrite_vars` (Boolean) Whether to overwrite the inventory source variables.
- `source` (String) The source of the inventory source.
- `source_path` (String) The source path for the inventory source.
- `source_project_id` (Number) The source project for the inventory source.
- `source_vars` (String) The variables for the inventory source.
- `update_cache_timeout` (Number) The update cache timeout for the inventory source.
- `update_on_launch` (Boolean) Whether to update the inventory source on launch.
- `verbosity` (Number) The verbosity for the inventory source.
41 changes: 41 additions & 0 deletions docs/data-sources/team_role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awx_team_role Data Source - terraform-provider-awx"
subcategory: ""
description: |-
Use this data source to get the details of a team role in AWX.
---

# awx_team_role (Data Source)

Use this data source to get the details of a team role in AWX.

## Example Usage

```terraform
data "awx_organization" "example" {
name = "example"
}

data "awx_team" "example" {
name = "example"
organization_id = data.awx_organization.example.id
}

data "awx_team_role" "example" {
name = "Member"
team_id = awx_team.example.id
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `team_id` (Number) The unique identifier of the team.

### Optional

- `id` (Number) The unique identifier of the team role.
- `name` (String) The name of the team role.
7 changes: 7 additions & 0 deletions examples/data-sources/awx_credential_machine/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "awx_credential_machine" "example" {
credential_id = 10
}

output "credential_name" {
value = data.awx_credential_machine.example.name
}
2 changes: 2 additions & 0 deletions examples/data-sources/awx_credential_machine/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Order can be imported by specifying the numeric identifier.
terraform import awx_credential_machine.example 10
7 changes: 7 additions & 0 deletions examples/data-sources/awx_credential_scm/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "awx_credential_scm" "example" {
credential_id = 10
}

output "credential_name" {
value = data.awx_credential_scm.example.name
}
7 changes: 7 additions & 0 deletions examples/data-sources/awx_credential_vault/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "awx_credential_vault" "example" {
credential_id = 10
}

output "credential_name" {
value = data.awx_credential_vault.example.name
}
7 changes: 7 additions & 0 deletions examples/data-sources/awx_inventory_source/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "awx_inventory_source" "example" {
inventory_source_id = 10
}

output "inventory_source_name" {
value = data.awx_inventory_source.example.name
}
Loading
Loading