All Projects → nbering → Terraform Inventory

nbering / Terraform Inventory

Licence: mit
An Ansible dynamic inventory script to pair with nbering/terraform-provider-ansible.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Terraform Inventory

Infrastructure As Code Tutorial
Infrastructure As Code Tutorial. Covers Packer, Terraform, Ansible, Vagrant, Docker, Docker Compose, Kubernetes
Stars: ✭ 1,954 (+1168.83%)
Mutual labels:  ansible, terraform
Learning Tools
A collection of tools and files for learning new technologies
Stars: ✭ 1,287 (+735.71%)
Mutual labels:  ansible, terraform
Hkube
Kubernetes cluster deployment to Hetzner Cloud
Stars: ✭ 55 (-64.29%)
Mutual labels:  ansible, terraform
Terrible
Transform Terraform state into Ansible inventories
Stars: ✭ 18 (-88.31%)
Mutual labels:  ansible, terraform
Hybrid multicloud overlay
MutiCloud_Overlay demonstrates a use case of overlay over one or more clouds such as AWS, Azure, GCP, OCI, Alibaba and a vSphere private infrastructure in Hub and spoke topology, point to point topology and in a Single cloud. Overlay protocols IPv6 and IPv4 are independent of underlying infrastructure. This solution can be integrated with encryption and additional security features.
Stars: ✭ 127 (-17.53%)
Mutual labels:  ansible, terraform
Ansible Dcos
[DEPRECATED] Please consider using the Ansible Roles for DC/OS maintained by the Mesosphere SRE team
Stars: ✭ 41 (-73.38%)
Mutual labels:  ansible, terraform
Mikado
🤖💨Mikado helps managing your AWS infrastructure for WordPress sites by defining an out-of-box, highly available, easy-to-deploy setup
Stars: ✭ 80 (-48.05%)
Mutual labels:  ansible, terraform
Kubeoperator
KubeOperator 是一个开源的轻量级 Kubernetes 发行版,专注于帮助企业规划、部署和运营生产级别的 K8s 集群。
Stars: ✭ 4,147 (+2592.86%)
Mutual labels:  ansible, terraform
Terraform Inventory
Terraform State → Ansible Dynamic Inventory
Stars: ✭ 1,591 (+933.12%)
Mutual labels:  ansible, terraform
Terraform Null Ansible
Terraform Module to run ansible playbooks
Stars: ✭ 114 (-25.97%)
Mutual labels:  ansible, terraform
Terraform Provisioner Ansible
Ansible with Terraform 0.13.x
Stars: ✭ 520 (+237.66%)
Mutual labels:  ansible, terraform
Tensor
Tensor - Comprehensive web-based automation framework and Centralized infrastructure management platform
Stars: ✭ 136 (-11.69%)
Mutual labels:  ansible, terraform
Tads Boilerplate
Terraform + Ansible + Docker Swarm boilerplate = DevOps on 🔥🔥🔥 | Infrastructure as Code
Stars: ✭ 424 (+175.32%)
Mutual labels:  ansible, terraform
Devops Exercises
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
Stars: ✭ 20,905 (+13474.68%)
Mutual labels:  ansible, terraform
Magic Modules
Automatically generate Google Cloud Platform support for OSS IaaC Projects
Stars: ✭ 358 (+132.47%)
Mutual labels:  ansible, terraform
Cloud Portal
Self service web portal for different Cloud platforms like Azure, AWS and VMWare vSphere.
Stars: ✭ 60 (-61.04%)
Mutual labels:  ansible, terraform
Cloudblock
Cloudblock automates deployment of secure ad-blocking for all of your devices - even when mobile. Step-by-step text and video guides included! Compatible clouds include AWS, Azure, Google Cloud, and Oracle Cloud. Cloudblock deploys Wireguard VPN, Pi-Hole DNS Ad-blocking, and DNS over HTTPS in a cloud provider - or locally - using Terraform and Ansible.
Stars: ✭ 257 (+66.88%)
Mutual labels:  ansible, terraform
Tks
Enable enthusiasts and administrators alike to easily provision highly available and production-ready Kubernetes clusters on Proxmox VE.
Stars: ✭ 319 (+107.14%)
Mutual labels:  ansible, terraform
Polkadot Secure Validator
Polkadot Validator Secure Setup
Stars: ✭ 108 (-29.87%)
Mutual labels:  ansible, terraform
Multi Env Deploy
Complete example of deploying complex web apps to AWS using Terraform, Ansible, and Packer
Stars: ✭ 132 (-14.29%)
Mutual labels:  ansible, terraform

Terraform Inventory

An Ansible dynamic inventory script to process Terraform state and return Ansible host data from Terraform Provider for Ansible host resources. See the Terraform Provider for it's own installation and use.

Usage

Copy the terraform.py script file to a location on your system. Ansible's own documentation suggests the location /etc/ansible/terraform.py, but the particular location does not matter to the script. Ensure it has executable permissions (chmod +x /etc/ansible/terraform.py).

With your Ansible playbook and Terraform configuration in the same directory, run Ansible with the -i flag to set the inventory source.

$ ansible-playbook -i /etc/ansible/terraform.py playbook.yml

Environment Variables

ANSIBLE_TF_BIN

Override the path to the Terraform command executable. This is useful if you have multiple copies or versions installed and need to specify a specific binary. The inventory script runs the terraform state pull command to fetch the Terraform state, so that remote state will be fetched seemlessly regardless of the backend configuration.

ANSIBLE_TF_DIR

Set the working directory for the terraform command when the scripts shells out to it. This is useful if you keep your terraform and ansible configuration in separate directories. Defaults to using the current working directory.

ANSIBLE_TF_WS_NAME

Sets the workspace for the terraform command when the scripts shells out to it, defaults to default workspace - if you don't use workspaces this is the one you'll be using.

License

Licensed for use under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].