scarolan / Ansible Terraform
Ansible and Terraform: Better Together
Projects that are alternatives of or similar to Ansible Terraform
vim-hclfmtVim plugin for hclfmt
Stars: ✭ 68 (-77.1%)
Mutual labels: hcl
HaystackTop level repository for Haystack, containing documentation and deployment scripts
Stars: ✭ 261 (-12.12%)
Mutual labels: hcl
KubenowDeploy Kubernetes. Now!
Stars: ✭ 285 (-4.04%)
Mutual labels: hcl
CloudblockCloudblock 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
SadcloudA tool for standing up (and tearing down!) purposefully insecure cloud infrastructure
Stars: ✭ 259 (-12.79%)
Mutual labels: hcl
Deploy Ibm Cloud PrivateInstructions and Code required to install IBM Cloud Private
Stars: ✭ 264 (-11.11%)
Mutual labels: hcl
Terraform Ecs FargateA Terraform template used for provisioning web application stacks on AWS ECS Fargate
Stars: ✭ 293 (-1.35%)
Mutual labels: hcl
PyhclHCL is a configuration language. pyhcl is a python parser for it.
Stars: ✭ 260 (-12.46%)
Mutual labels: hcl
Iam Policy Json To TerraformSmall tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document
Stars: ✭ 282 (-5.05%)
Mutual labels: hcl
Terraform ExamplesTerraform samples for all the major clouds you can copy and paste. The future, co-created.
Stars: ✭ 256 (-13.8%)
Mutual labels: hcl
ProvisioningKubernetes cluster provisioning using Terraform.
Stars: ✭ 277 (-6.73%)
Mutual labels: hcl
Vault On AwsA 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
DeckerDeclarative penetration testing orchestration framework
Stars: ✭ 263 (-11.45%)
Mutual labels: hcl
Vim Terraform CompletionA (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].