This script will convert all the helm repositories in your local helm environemnt into HelmRepository sources for fluxcd.
Dependencies:
for a in $(docker ps -a | tail +2 | cut -d' ' -f1); { docker rm $a; } | |
docker image prune -a |
from ansible.plugins.inventory import BaseInventoryPlugin | |
import yaml | |
class CustomInventoryPlugin(BaseInventoryPlugin): | |
NAME = 'custom_inventory' | |
def parse(self, inventory, loader, path, cache=True): | |
super(CustomInventoryPlugin, self).parse(inventory, loader, path) |
import yaml | |
def process_yaml_file(input_file): | |
with open(input_file, 'r') as file: | |
data = yaml.safe_load(file) | |
group_entries = {} | |
for entry_name, entry_data in data.items(): | |
hostgroups = entry_data.get('hostgroups', []) |
#!/usr/bin/env bash | |
PROJECT='eugeny/tabby' | |
API_LATEST=https://api.github.com/repos/$PROJECT/releases/latest | |
TARGET=$(curl -s $API_LATEST | jq ' .assets[].browser_download_url' | grep 'linux-x64.rpm' | tr -d '"') | |
PACKAGE=$(basename $TARGET) | |
echo $TARGET | |
echo $PACKAGE | |
curl -s -o $PACKAGE --max-redirs 5 -L $TARGET |
#!/usr/bin/env bash | |
PROJECT='eugeny/tabby' | |
API_LATEST=https://api.github.com/repos/$PROJECT/releases/latest | |
TARGET=$(curl -s $API_LATEST | jq ' .assets[].browser_download_url' | grep \.linux-x64\.deb | tr -d '"') | |
PACKAGE=$(basename $TARGET) | |
curl -s -o $PACKAGE --max-redirs 5 -L $TARGET |
#!/bin/bash | |
# | |
# Run this on your Zentyal server from an ssh session as root. | |
# | |
# Inject your AWS credentials here | |
export AWS_ACCESS_KEY_ID="" | |
export AWS_SECRET_ACCESS_KEY="" | |
export HOST_FQDN="my.domain.com" | |
export ACCOUNT_EMAIL="your@email.co" |
#!/usr/bin/env bash | |
docker volume create jenkins | |
docker run -d \ | |
-v jenkins:/var/jenkins_home \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v $(which docker):$(which docker) \ | |
-p 8080:8080 -p 50000:50000 \ | |
--name jenkins \ | |
--restart unless-stopped \ | |
jenkins/jenkins:lts |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
docker buildx rm builder | |
docker buildx create --name builder --driver docker-container --use | |
docker buildx inspect --bootstrap |
#!/usr/bin/env bash | |
var1='value of var1' | |
var2='value of var2' | |
read -r -d '' block <<-END | |
{ | |
"var1": "${var1}", | |
"var2": "${var2}" |