All Projects → scarolan → Ansible Terraform

scarolan / Ansible Terraform

Ansible and Terraform: Better Together

Labels

Projects that are alternatives of or similar to Ansible Terraform

vim-hclfmt
Vim plugin for hclfmt
Stars: ✭ 68 (-77.1%)
Mutual labels:  hcl
Haystack
Top level repository for Haystack, containing documentation and deployment scripts
Stars: ✭ 261 (-12.12%)
Mutual labels:  hcl
Kubenow
Deploy Kubernetes. Now!
Stars: ✭ 285 (-4.04%)
Mutual labels:  hcl
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 (-13.47%)
Mutual labels:  hcl
Sadcloud
A tool for standing up (and tearing down!) purposefully insecure cloud infrastructure
Stars: ✭ 259 (-12.79%)
Mutual labels:  hcl
Deploy Ibm Cloud Private
Instructions and Code required to install IBM Cloud Private
Stars: ✭ 264 (-11.11%)
Mutual labels:  hcl
terraform-aws-resource-naming
Terraform module to generate resource name with random_id added as suffix.
Stars: ✭ 18 (-93.94%)
Mutual labels:  hcl
Terraform Ecs Fargate
A Terraform template used for provisioning web application stacks on AWS ECS Fargate
Stars: ✭ 293 (-1.35%)
Mutual labels:  hcl
Pyhcl
HCL is a configuration language. pyhcl is a python parser for it.
Stars: ✭ 260 (-12.46%)
Mutual labels:  hcl
Iam Policy Json To Terraform
Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document
Stars: ✭ 282 (-5.05%)
Mutual labels:  hcl
Terraform Examples
Terraform samples for all the major clouds you can copy and paste. The future, co-created.
Stars: ✭ 256 (-13.8%)
Mutual labels:  hcl
Citrix K8s Ingress Controller
Citrix ADC (NetScaler) Ingress Controller for Kubernetes:
Stars: ✭ 256 (-13.8%)
Mutual labels:  hcl
Provisioning
Kubernetes cluster provisioning using Terraform.
Stars: ✭ 277 (-6.73%)
Mutual labels:  hcl
Terraform Aws Eks Cluster
Terraform module for provisioning an EKS cluster
Stars: ✭ 256 (-13.8%)
Mutual labels:  hcl
Vault On Aws
A secure Vault for secrets, tokens, keys, passwords, and more. Automated deployment with Terraform on AWS. Configurable options for security and scalability. Usable with any applications and services hosted anywhere.
Stars: ✭ 287 (-3.37%)
Mutual labels:  hcl
terraform-linode-k8s
Kubernetes installer for Linode
Stars: ✭ 63 (-78.79%)
Mutual labels:  hcl
Decker
Declarative penetration testing orchestration framework
Stars: ✭ 263 (-11.45%)
Mutual labels:  hcl
Terraform Aws Gitlab Runner
Terraform module for AWS GitLab runners on ec2 (spot) instances
Stars: ✭ 292 (-1.68%)
Mutual labels:  hcl
Terragrunt Infrastructure Live Example
A repo used to show examples file/folder structures you can use with Terragrunt and Terraform
Stars: ✭ 286 (-3.7%)
Mutual labels:  hcl
Vim Terraform Completion
A (Neo)Vim Autocompletion and linter for Terraform, a HashiCorp tool
Stars: ✭ 280 (-5.72%)
Mutual labels:  hcl

Ansible and Terraform - Better Together

This repository contains code examples for running Terraform and Ansible together in different configurations.

Run Ansible from Terraform

With local_exec

Use the code examples in the terraform_gcp or terraform_azure folders to see how this is done. Basically there are two steps. First is a remote exec which forces Terraform to wait until SSH is running to run Ansible. This can be anything, even an echo "Hello World" command. Then we execute an ansible-playbook command from the same machine where we ran terraform apply.

With remote_exec

The code example in the terraform_gcp directory has code for remote exec commented out. You can comment out the local_exec code and run this to have Ansible run on the remote host. With this method we first copy our playbook to the remote host, then we install and run Ansible locally there.

Run Terraform from Ansible

Ansible has a Terraform module that can trigger Terraform deployments and plans. You can also pull resource information back into Ansible: https://docs.ansible.com/ansible/devel/modules/terraform_module.html

Build System Images with Packer and Ansible

HashiCorp's Packer tool allows you to use your existing Ansible playbooks to easily build machine images on the cloud or virtualization platform of your choice. Packer uses a JSON file for configuration, and is run from the command line.

Integrate HashiCorp Vault with Ansible

You can easily fetch secrets from Vault using the Hashi Vault Ansible plugin: https://docs.ansible.com/ansible/devel/plugins/lookup/hashi_vault.html

This plugin is based on the excellent Python HVAC library: https://github.com/hvac/hvac

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].