Ansible and Terraform Together

  Рет қаралды 7,128

Alex Dworjan

Alex Dworjan

Күн бұрын

Пікірлер: 15
@SamuelCaroll
@SamuelCaroll 10 ай бұрын
i'd like to know where you store values for variables {{pah_pass}}, {{cert_key_file}}, ... and how do you inject them ?
@alexdworjan
@alexdworjan 10 ай бұрын
I've created custom credentials within automation controller and assigned them to the Job Template. They are being passed as extra variables via that custom credential
@SamuelCaroll
@SamuelCaroll 10 ай бұрын
​@@alexdworjan Okay thank you ! but I also wanted to know if the "cert_key_file" is the private key for your Execution Environment or the execution node ( so that you can push and pull to git ) ? or what else it should be ?
@alexdworjan
@alexdworjan 10 ай бұрын
@@SamuelCaroll It is the private key for my specific user in github that has been added into my account: docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account. The private key is injected into the Execution Environment at runtime to provide the authentication.
@SamuelCaroll
@SamuelCaroll 10 ай бұрын
@@alexdworjan Okay perfect ! thanks for explanation
@bx1803
@bx1803 Жыл бұрын
YEEEESSSS
@maciejk7689
@maciejk7689 7 ай бұрын
hmmm it's not good idea to orchestrate terraform via ansible. What about plan and validations of changes ? ...
@alexdworjan
@alexdworjan 7 ай бұрын
Build that into your Pull Request review process. If you need those steps reviewed by teams, don't use the Ansible survey, only use the gitops approach where teams make changes to the main.tf. Then the code review can include plan to verify any changes prior to approval. There are many different approaches, find the one that fits into your process.
@maciejk7689
@maciejk7689 7 ай бұрын
@@alexdworjan ansible is a good tool for config management... But not for infrastructure. Better and safer is use ansible Provider on terraform code.
@alexdworjan
@alexdworjan 7 ай бұрын
It's all about using what's best for your team and organization. Since Ansible is being used for config management of all kinds of infrastructure and networking gear plus orchestration (ServiceNow, etc) some customers prefer to use the workflow capabilities of Ansible. In this case, I'm still using Terraform to provision and maintain the state of the infrastructure.
@maciejk7689
@maciejk7689 7 ай бұрын
​@@alexdworjan hmm, magic tools don't exist... Ansible was written as configuration management, nothing more.. Terraform was created as an infrastructure management... Forcing Anisble to be a tool... It wasn't designed, it's not a good idea. I've been using Terraform and Ansible for many years. Develops roles and modules. Ansible is not a good idea for managing terraforms, there are much better technologies for this.
@alexdworjan
@alexdworjan 7 ай бұрын
That's why most just use Ansible to call Terraform, not to manage Terraform. Similar to how you use the Ansible provider to have Terraform call Ansible, you can use the Terraform modules to have Ansible call Terraform. It's really about using the process that's best for you. In your case, it seems best to use Terraform.
@bx1803
@bx1803 Жыл бұрын
itd be really nice to have an easy how to on ansible vault.
@alexdworjan
@alexdworjan Жыл бұрын
Great idea! I did a short walkthrough this morning that hopefully will help: kzbin.info/www/bejne/g5-lh2uwgdZglbs
Ansible Vault
6:51
Alex Dworjan
Рет қаралды 6 М.
Что такое Terraform?
6:43
Merion Academy
Рет қаралды 46 М.
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Orico O7000 SSD Review, Testing the Limits of Budget NVMe
11:22
ElectronicsWizardry
Рет қаралды 1,6 М.
Ansible vs Terraform: Which is Really Better for Infrastructure?
18:01
Percy Grunwald from TopTechSkills
Рет қаралды 1,2 М.
It's now a UI for Ansible, Terraform and more! // Semaphore
23:27
Christian Lempa
Рет қаралды 41 М.
Ansible vs. Terraform: What's the difference?
9:32
IBM Technology
Рет қаралды 207 М.
Using Ansible with Terraform on Azure
30:14
Autodotes
Рет қаралды 187
Terraform Ansible Integration | Terraform Ansible AWS Example
8:36
Ansible Automation Platform Containerized Installer
15:04
Alex Dworjan
Рет қаралды 2,3 М.
Ansible Automation Platform (AAP) Walk-through Demo
15:00
Keith Tenzer
Рет қаралды 8 М.
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН