Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "Devops"

Developing and writing Ansible Python custom module for VMware pyvmomi example

There may be requirement in RedHat Ansible when you write custom module when you don't fine tasks module for certain objects, that time you will need to write your own custom python module. In this given example I was using community VMware vSphere module with ansible and wanted to list all ESXi ser…

Read more

Terraform count vs for_each for examples with map of objects

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…

Read more

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 …

Read more

Terraform fore_each for loop filter with if condition example

In this HashiCorp Terraform configuration example article, I am using if condition to filter list of variable objects. Here in this configuration I am have multiple list of resource group, Their name and location are different in the variable objects as mentioned below. 

I want to deploy only…

Read more

Terraform foreach module output to show only required results

In my previous articles I was testing my variable information to see output, one thing I observed in the output was showing all the variable content information in the output. 

Terraform testing local variables and output csv file without resource Part 1
Terraform testing variable map object va…

Read more

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                =

Read more

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…

Read more

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 …

Read more

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…

Read more

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…

Read more

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

terraform plan azure a reference to a resource type must be followed by at least one attribute access specifying the resource name.png

PS D:\Projects\Terraform\Module_creat…

Read more

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 …

Read more

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.

terraform hashicorp hcl tree module map and object example microsoft azure cloud resource group storage account.png

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…

Read more

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 …

Read more

Part 3: Using HashiCorp Packer to build a Windows Server VM template for VMware vSphere

HashiCorp Packer.exe is an open source tool for building identical Virtual machine golden images for various platforms from a single source configuration. Packer is lightweight, runs on every major operating system, and is highly efficient, creating Master/Base machine images for several platforms i…

Read more

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

Read more

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.

Git Visual studio clone fatal authentication ansible awx fatal variable pass connection error vscode missing or invalid credentials scm.png

[vjanvi@ansiblwcentos variablepass]$ git clone http://admin@192.168.34.44/Bonobo.Git.Server/ansibleawx.git
Clonin…

Read more

How to install Ansible AWX on Ubuntu using Kubernetes K8S

This is step by step in the detailed installation guide of Ansible AWX operator (Automation controller Tower). On this channel earlier I had written 2 articles on how to install Ansible AWX operator but they are no longer valid as the installation instruction has been changed. For any new changes yo…

Read more

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.

kustomize kustomization.yaml yml kubernetes manifest configuration vmware vsphere ansible awx operator azure ansible platform automation controller tower setup sevalsymlink git.jpg

ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ kustomize build . …

Read more

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…

Read more

20 blog posts

Blog Search

Page Views

11241310

Follow me on Blogarama