In this Terraform article I have two examples for loop and count loop. I have one map of object. Where I will use both the loops on map to show how to use them in different way. You can check my earlier articles for different loops examples - Terraform for_each loop on map example and Terraform…
Blog posts : "devops"
Terraform remote-exec provisioner with ssh connection in null_resource
This is a Terraform example of remote-exec provisioner with ssh connection using null_resource. To use remote-exec you need to provide remote server connection information. In my below example I am using and creating connection with ssh protocol to linux servers with terraform configuration. If you …
Terraform deploy create A Private DNS Record in Microsoft Azure from list of objects
This is an example of creating multiple private DNS records in Microsoft Azure from list of objects. Here I am starting with variables.tf, I am using below list of objects as type in variable.
#variables.tf variable "dns_records" { type = list(object({ name =
Terraform testing variable map object values without resource configuration part 2
This is second part of earlier written article Terraform testing local variables and output csv file without resource Part 1. Idea is use same method technique to learn and verify how to assign map of object works. Below is the example of variable map object and its output.
I used this map obje…
Terraform testing local variables and output csv file without resource Part 1
This is article is about how I test and verify my maps, list, object and sets values without any resources and to check provided objects are mentioned correctly. Here in below example I wanted to test csv file content in terraform. To check the same I created local variables from CSV file and watch …
Terraform error retrieving storage account failure responding to request StatusCode 404 StorageAccountNotFound The storage account was not found
While working with Terraform Azure provider and creating storage account with service endpoints (subnets), I was receiving below strange error.
Error: retrieving Storage Account: (name: "storageaccount" / Resource Group "resourcegroup")" storage.AccountsClient#GetProperties: Failure responding t…
Terraform clone virtual machine template in VMware vSphere vCenter from CSV file
While working on cloning virtual machine in vCenter from template I already written two articles Using terraform to clone a virtual machine on VMware vSphere infrastructure and Terraform module clone VMware vSphere Linux and Windows virtual machine. But I wanted to improvise it as I got some modi…
Terraform A reference to a resource type must be followed by at least one attribute access, specifying the resource name
After entering my resources information for Azure in Terraform configuration files and running a plan I was keep on receiving below error.
A reference to a resource type must be followed by at least one attribute access, specifying the resource name
PS D:\Projects\Terraform\Module_creat…
Terraform one module deploy null or multiple resources based on input (nested for loop)
This article is about little bit advanced structure in the terraform module, Here I using terraform functions to create a module where multiple resources will be created from given map or object input. If map or object is null (not mentioned) there shouldn't be error and it should skip making those …
Hashicorp Terraform map and object inside module and variable example
This is example of map and object functions used in variable and Terraform module. Here is my tree view of module folders and tf files.
In the module variable I am using two terraform functions object and map to define data. To use object, provide information in key value pair and dictionar…
DevOps Part 1.2 SCM Git - Create Virtual Network (vNET) in Microsoft Azure
In my earlier part of this DevOps series DevOps Part 1.1 SCM Git - Create Resource Group in Microsoft Azure, I created first Azure resource - an empty Resource Group. In this example I am going to create vNET (Virtual Network) in this resource group.
An essential part of your private network inf…
DevOps Part 1.1 SCM Git - Create Resource Group in Microsoft Azure
This will be multipart article series on DevOps. In this part I am going to configure SCM git (Source control) and push my code to centralized repository on Github.com. For this first I need a system where I will complete all my DevOps Labs configuration and use it as a workstation. I will create a …
Access credential parameters stored in Ansible Tower within a playbook
This article is helpful in below operations.
- How to access credential (secret vault values) parameters stored in Ansible Tower within a playbook? (For example: Secrets, username, password, etc)
- How to use these variables when delegating to another host in the same playbook?
Resolution
…Git clone or push Missing or invalid credentials fatal authentication failed
While working with Git clone I was receiving fatal: Authentication failed and Missing or invalid credentials error. This happens due to missing password or it is not mentioned.
[vjanvi@ansiblwcentos variablepass]$ git clone http://admin@192.168.34.44/Bonobo.Git.Server/ansibleawx.git Clonin…
Ansible Azure An exception occurred during task execution. TypeError deprecated() got an unexpected keyword argument
After upgrading Ansible Azure plugin module, while running my old ansible scripts against Azure resources to change or get information I was receiving error of TypeError: deprecated() got an unexpected keyword argument. (My credentials are stored in the file location of vim ~/.azure/credentials)
…Create multiple Azure vnet (Virtual Network) using ansible
This is a second part of Deploy create Virtual Network vNET in Azure cloud using Ansible, in this part I am creating multiple vNets with single Ansible script. All the info and details related to new vNet added in separate vnet variable yml file in json format as shown below.
Next in below …
Running Your First PowerShell Scripts With Jenkins and Git
Jenkins is the the top and leading open source automation server, It offers hundreds of plugins to help building (develop), deploying and automating any project. It is a great orchestration tool for automation. In this article I will use it to schedule a simple Job for PowerShell script using Git.
Can not execute kustomize build issue installing Ansible AWX Operator
While installing Ansible AWX operator tower (Automation Controller) for the development team, I was receiving the below error. I was following the official installation guide given from https://github.com/ansible/awx-operator.
ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ kustomize build . …
Rancher k3s.yaml permission denied when using kubectl - Kubernetes
While working with Install and Setup your own Kubernetes Cluster with K3s, I installed K3s as a non sudo root user. After complete installation when running any kubectl command I was receiving the below error.
ubuntu@AnsibleAWX:~$ ubuntu@AnsibleAWX:~$ kubectl get nodes WARN[0000] Unable to…
Ansible Deploy a VMware vSphere Virtual Machine from a Template
One of my teammates from another project had a requirement of deploying a clone VMware Virtual Machine from a template using Ansible. In the last hour additional requirements they wanted to process clones of multiple VMs with different types of operating system such as Linux and Microsoft Windows.…
Blog Search
Page Views
10425335
Archive
- September 2023 (6)
- July 2023 (15)
- June 2023 (5)
- May 2023 (9)
- April 2023 (4)
- March 2023 (7)
- February 2023 (1)
- January 2023 (1)
- December 2022 (10)
- November 2022 (15)
Comments
-
Rob LloydSeptember 25, 2023 06:06AM
-
September 21, 2023 03:16AM
-
Shahab HussainSeptember 11, 2023 01:28PM
-
josephAugust 31, 2023 04:25PM
-
SaraAugust 25, 2023 11:59AM