Skip to content

Instantly share code, notes, and snippets.

View sony-level's full-sized avatar
🏠
Working from home

ディレーン sony-level

🏠
Working from home
View GitHub Profile
@sony-level
sony-level / jenkins_user_agent.sh
Created April 24, 2026 16:42
Creation of a user dedicated to the ci/cd task via jenkins
#!/usr/bin/env bash
set -euo pipefail
# ============================================================
# Script Name: setup_jenkins_agent.sh
# Purpose:
# Create and configure a dedicated Jenkins SSH agent user
# on a host, prepare its SSH authorized_keys file, install
# Java if needed, and optionally add the user to the Docker
# group. The controller public key is mandatory, and up to
@sony-level
sony-level / setup_jenkins_agent.sh
Created April 3, 2026 16:02
Create and configure a dedicated Jenkins SSH agent user
#!/usr/bin/env bash
set -euo pipefail
# ============================================================
# Script Name: setup_jenkins_agent.sh
# Purpose:
# Create and configure a dedicated Jenkins SSH agent user
# on a host, prepare its SSH authorized_keys file, install
# Java if needed, and optionally add the user to the Docker
# group. The controller public key is mandatory, and up to
@sony-level
sony-level / install-terraform-docker.sh
Last active March 26, 2026 22:02
install-terraform-docker.sh
#!/bin/bash
set -euo pipefail
# =============================================================================
# Install Terraform in a Docker container (no sudo required)
#
# Usage:
# curl -fsSL "<gist_raw_url>" | bash
# # or with a specific version:
# curl -fsSL "<gist_raw_url>" | TF_VERSION=1.12.0 bash
@sony-level
sony-level / install-ansible.sh
Last active March 30, 2026 16:06
Automated install ansible
#!/usr/bin/env bash
set -Eeuo pipefail
# ============================================================
# _ _ _ ____ ___ ____ _ _____
# / \ | \ | / ___|_ _| __ )| | | ____|
# / _ \ | \| \___ \| || _ \| | | _|
# / ___ \| |\ |___) | || |_) | |___| |___
# /_/ \_\_| \_|____/___|____/|_____|_____|
#
@sony-level
sony-level / install-terraform.sh
Last active March 17, 2026 13:48
Automated Terraform installer with OS detection, GPG verification, and timestamped logs
#!/usr/bin/env bash
set -Eeuo pipefail
# ============================================================
# _______ __
# /_ __/___ _____________ _/ /___ _________ ___
# / / / _ \/ ___/ ___/ __ `/ / __ \/ ___/ __ `__ \
# / / / __/ / / / / /_/ / / /_/ / / / / / / / /
# /_/ \___/_/ /_/ \__,_/_/\____/_/ /_/ /_/ /_/
#