Comments (4)
Reasonable request, my guess is it would take some work in https://github.com/ansible/awx/blob/devel/awx_collection/plugins/modules/inventory_source.py. If someone has time, feel free to take a crack, might be a bit before we can get to it though @vvarga007 but very doable/in scope I think.
from awx.
@thedoubl3j I took a quick look at this. To create a terraform state inventory source, the only thing that we have to do is to add 'terraform' as a valid choice.( https://github.com/ansible/awx/blob/devel/awx_collection/plugins/modules/inventory_source.py)
I changed it to this:
source=dict(choices=["scm", "ec2", "gce", "azure_rm", "vmware", "satellite6", "openstack", "rhv", "controller", "insights", "terraform"]),
After this change, I was able to create an inventory source with the following task:
- name: Add an inventory source 'TF_source'
awx.awx.inventory_source:
inventory: Inventory_TEST_TF_SOURCE
name: TF_source
source: terraform
source_vars:
backend_type: s3
credential: TF_TEST
organization: Default
state: present
from awx.
I checked the TF backend credential, too. It seems that works out of the box.
This combo works like a charm after that minor change in my previous comment.
- name: Add TF backend configuration
awx.awx.credential:
name: TF_TEST
credential_type: Terraform backend configuration
organization: Default
inputs:
configuration: |
bucket = "example-tfstates"
key = "aws-test-instance/tf_state.tfstate"
region = "us-east-1"
access_key = "CHANGEME"
secret_key = "CHANGEME"
- name: Add an inventory source 'TF_source'
awx.awx.inventory_source:
inventory: Inventory_TEST_TF_SOURCE
name: TF_soruce
source: terraform
source_vars:
backend_type: s3
credential: TF_TEST
organization: Default
overwrite: true
overwrite_vars: true
update_on_launch: true
verbosity: 1
state: present
from awx.
Related Issues (20)
- Unable to configure new AWX operator version 2.16.1 HOT 3
- `make VERSION` fails outside the virtual environment
- Feature to define Job template webhook key manually
- Suggested fix for SAML authentication
- invalid permissions on postgres pod HOT 5
- AWX 24.3.1 api/v2/workflow_job_templates/<id>/access_list/ API returns 500 HOT 1
- unable to add any collection HOT 1
- Improve User Feedback and Terminology Consistency in Ansible AWX UI
- jobs are failing on awx.main.commands.run_callback_receiver Database Error HOT 3
- HTTP code 404 when using named url HOT 1
- Duplicate metrics causing issue with prometheus >= 2.52.0 HOT 1
- AWX Community Meeting - June 2024 HOT 1
- Restore is not working as expected | need restore docs
- Tech Preview UI displaying "password" survey type value in extra vars "Review" page HOT 1
- job api is not support POST but can find βCreate a job β in api doc HOT 1
- The running ansible process received a shutdown signal. HOT 4
- AWX not able to delete the worker pods after finished running HOT 6
- Add Kube credentials in the inventory source picker
- Tech Preview UI displaying "Create question" survey button greyed out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx.