Skip to content

Instantly share code, notes, and snippets.

@defyjoy
defyjoy / tasks.yml
Created February 15, 2025 16:17 — forked from jkkor/tasks.yml
Proxmox: Create VM from cloud-init image using Ansible
---
- name: Download cloud-init image
register: image
ansible.builtin.get_url:
url: "{{ image_url }}"
dest: /tmp
mode: '0644'
force: true
- name: Install pip
@defyjoy
defyjoy / Jenkinsfile
Created January 16, 2025 04:05 — forked from johann8384/Jenkinsfile
Puppet Jenkins
stages{
stage('Linting') {
parallel {
stage('Chekov') {
steps {
script {
dir("${env.WORKSPACE}/terraform"){
sh "checkov --directory terraform/modules -o junitxml > $WORKSPACE/checkov.xml || true"
}
}
@defyjoy
defyjoy / Dockerfile
Created April 26, 2024 03:12 — forked from soof-golan/Dockerfile
Python + Poetry + Docker Example
FROM python:3.10 as python-base
# https://python-poetry.org/docs#ci-recommendations
ENV POETRY_VERSION=1.2.0
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache
@defyjoy
defyjoy / rancher-delete-script.sh
Last active February 26, 2022 12:41 — forked from davidcorbin/script.sh
Remove Rancher from Cluster - Force Delete CRDs
# Manually remove finalizers
kubectl edit -n cattle-system secret tls-rancher
kubectl patch secret tls-rancher -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system
kubectl patch namespace cattle-system -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system
kubectl delete namespace cattle-system --grace-period=0 --force
kubectl patch namespace cattle-global-data -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system
kubectl delete namespace cattle-global-data --grace-period=0 --force
@defyjoy
defyjoy / install-kubernetes-archlinux.md
Created November 8, 2019 07:15 — forked from StephenSorriaux/install-kubernetes-archlinux.md
Install Kubernetes on bare-metal ArchLinux host

Installing Kubernetes on ArchLinux

Packages

pacman -S curl docker ebtables ethtool wget unzip

Also cfssl is needed but available on AUR, using pacaur

pacaur -S cfssl