Terraform – Interaction with Python
Hello, in this post, I will show something very useful for me in the next steps of the project, which is the iteration of Terraform, calling Python scripts, sending parameters…
Hello, in this post, I will show something very useful for me in the next steps of the project, which is the iteration of Terraform, calling Python scripts, sending parameters…
I’ll leave here some code snippets to show how to do authentication in Python in Vault using the methods described in https://devops-db.com/vault-authentication-methods/. https://github.com/faustobranco/devops-db/tree/master/knowledge-base/python/vault-authentication Token. https://github.com/faustobranco/devops-db/blob/master/knowledge-base/python/vault-authentication/auth_token.py LDAP. TLS. For this method,…
Hello, in this post, I want to show another small code example, which I will use a lot in this project. One problem that Ansible has, in my opinion, is…
In this post, I will show another way to call scripts or shell commands via Groovy. This time using Java’s ProcessBuilder, using the InputStreamReader to collect returns, but using the…
In this post, I want to show, in a similar way to the previous one, how to generate logs in pipelines, but this time from a Python script. https://devops-db.com/jenkins-class-for-logs-in-pipelines/ To…
Hello, another post of code snippets, in this one, I want to leave basically 2 methods that I use whenever I need to do some operation with IPs or a…
On the same theme as the previous post, I want to show another snippet of code in Python, this time, to “lint” the Yaml file, this should also be very…
In this post, I want to show another piece of Python code, now, to validate a YAML file against a JSON Schema. There are very good Schema JSON generators, I…
Following the line of the previous post () in this one I will show another piece of code, which will also be very useful in the next posts. How to…
In this post I will leave here a piece of code in Python, which will be useful soon, like copying any file to a container that is running. The Docker…