Skip to content

Instantly share code, notes, and snippets.

@fridim
fridim / ee-report.diff
Created February 22, 2023 13:14
ee-report ee-multicloud quay.io/agnosticd/ee-multicloud:v0.0.9 to quay.io/agnosticd/ee-multicloud:v0.0.10
--- /dev/fd/63 2023-02-22 14:14:19.738854281 +0100
+++ /dev/fd/62 2023-02-22 14:14:19.738854281 +0100
@@ -37,6 +37,14 @@
version: 5.2.0
community.general:
version: 6.3.0
+ community.vmware:
+ version: 3.3.0
+ equinix.metal:
+ version: 1.4.1
@fridim
fridim / ee-report.txt
Created February 22, 2023 12:58
ee-multicloud:v0.0.11
2d9e99902bdc3540dffebcefd06db0731b762dfa972c06e8a84058f9c8170fda /usr/local/bin/entrypoint
# Ansible
ansible [core 2.14.2]
config file = None
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
@fridim
fridim / ee-report.diff
Created February 22, 2023 12:57
ee-report ee-multicloud quay.io/agnosticd/ee-multicloud:v0.0.10 to ee-multicloud:v0.0.11
--- /dev/fd/63 2023-02-22 13:57:13.139024288 +0100
+++ /dev/fd/62 2023-02-22 13:57:13.139024288 +0100
@@ -30,6 +30,7 @@
ansible.netcommon 4.1.0
ansible.posix 1.5.1
ansible.utils 2.9.0
+awx.awx 21.12.0
azure.azcollection 1.14.0
community.aws 5.2.0
community.general 6.3.0
@fridim
fridim / issue660.patch
Created July 8, 2021 13:13
Work in progress for 660
1 file changed, 58 insertions(+)
resources/s3-buckets.go | 58 +++++++++++++++++++++++++++++++++++++++++++++++++
modified resources/s3-buckets.go
@@ -9,6 +9,8 @@ import (
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
+ "github.com/aws/aws-sdk-go/service/sts"
+ "github.com/aws/aws-sdk-go/service/s3control"
@fridim
fridim / retry.sh
Last active October 22, 2020 07:58
Retry wrapper in Bash
do_cmd_timeout_retry() {
local RETRIES=0
local MAX_RETRIES=10
local TIMEOUT=60
local DELAY=60
while [[ $RETRIES -le $MAX_RETRIES ]]; do
timeout ${TIMEOUT} "$@"
local ret=$?
- hosts: localhost
gather_facts: false
vars:
bla:
keys:
- 1
- 2
tasks:
- debug:
msg: "{{ bla['keys'][0] }}"
@fridim
fridim / os-release
Created February 7, 2020 14:08
rhel 7
NAME="Red Hat Enterprise Linux Server"
VERSION="7.4 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.4"
PRETTY_NAME=OpenShift
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.4:GA:server"
@fridim
fridim / delete_vpc.sh
Last active September 21, 2019 11:35
#!/bin/sh
#
# Delete a VPC and its dependencies
REGION=eu-central-1
REGION=us-west-2
REGION=ap-southeast-1
export AWS_PROFILE=sandbox37
export AWS_PROFILE=sandbox29
@fridim
fridim / mount_qube_volume.sh
Created June 3, 2019 10:10
Mount a volume inside a qube to /mnt/removable
#!/bin/bash
if [ -z "$1" ] || [ -z "$2" ]; then
echo "${0} QUBE VOLUME"
exit 2
fi
set -xeu -o pipefail
volume=$(qvm-block | awk "/${2}/{print \$1}")
UUID=$(sudo blkid /dev/mapper/${2} -sUUID -ovalue)
PLAY [localhost] ******************************************************************************************************************************************************************************
TASK [set_fact] *******************************************************************************************************************************************************************************
ok: [localhost]
TASK [include_role : /tmp/testrole] ***********************************************************************************************************************************************************
TASK [/tmp/testrole : set_fact] ********************************