Skip to content

Instantly share code, notes, and snippets.

View ironwolphern's full-sized avatar
👾
Knowledge is Power

Fernando Hernández San Felipe ironwolphern

👾
Knowledge is Power
View GitHub Profile
@ironwolphern
ironwolphern / play_demo_vault_modules.yml
Created November 10, 2024 16:55
Ansible Playbook to learn how to use Hashicorp Vault modules with community.hashi_vault collection
---
- name: "Manage HashiCorp Vault with modules"
hosts: localhost
gather_facts: false
vars:
vault_address: "http://vault.example.local:8200"
vars_prompt:
- name: "hv_user"
@ironwolphern
ironwolphern / play_demo_lookup_vault.yml
Created November 10, 2024 16:48
Ansible Playbook to learn how to use Hashicorp Vault lookups with community.hashi_vault collection.
---
- name: "Manage HashiCorp Vault with lookups"
hosts: localhost
gather_facts: false
vars:
vault_address: "http://vault.example.local:8200"
vars_prompt:
- name: "hv_user"
#cloud-config
hostname: podman
fqdn: podman.example.com
manage_etc_hosts: true
# Users and Groups
users:
- name: usuario
sudo: ALL=(ALL) NOPASSWD:ALL
groups: adm, sudo
@ironwolphern
ironwolphern / 01-user-data-docker
Last active November 10, 2024 16:37
This config is for vm Ubuntu with cloud-init in Proxmox
#cloud-config
hostname: docker
fqdn: docker.example.com
manage_etc_hosts: true
# Users and Groups
users:
- name: usuario
sudo: ALL=(ALL) NOPASSWD:ALL
groups: adm, sudo
@ironwolphern
ironwolphern / 01-user-data
Last active October 17, 2024 18:40
This config is for Ubuntu with Cloud-init in Proxmox
#cloud-config
hostname: example
fqdn: example.contoso.com
manage_etc_hosts: true
# Users and Groups
users:
- name: usuario
sudo: ALL=(ALL) NOPASSWD:ALL
groups: adm, sudo
@ironwolphern
ironwolphern / 01-custom-logo.sh
Last active October 8, 2024 17:12
This script print a banner with logo and system information.
#!/bin/bash
# This script print a banner with logo and system information.
# Need two packages: figlet and lolcat
# Fix: for lolcat to work properly, you have to move the binary from /usr/games/lolcat to /usr/bin/lolcat
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NC='\033[0m'
@ironwolphern
ironwolphern / deploy-linux-template-proxmox.sh
Last active December 26, 2024 22:17
This script will download a cloud image and deploy it as a template in Proxmox VE
#!/bin/bash
# This script will download a cloud image and deploy it as a template in Proxmox VE
# Tested on Proxmox VE 8.2.4
clear
# Default values for cloud template
MEMORY="512"
DISK_SIZE="10G"
STORAGE="local-lvm"