This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: cert-manager | |
namespace: argocd | |
spec: | |
destination: | |
namespace: cert-manager | |
server: https://kubernetes.default.svc | |
project: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: argoproj.io/v1alpha1 | |
kind: AppProject | |
metadata: | |
name: default | |
namespace: argocd | |
spec: | |
clusterResourceWhitelist: | |
- group: '*' | |
kind: '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configs: | |
secret: | |
# admin password | |
# generate the hash with | |
# htpasswd -nbBC 10 "" "myargoadminpassword" | tr -d ':\n' | sed 's/$2y/$2a/' | |
argocdServerAdminPassword: "$2a$10$cTY/AaB7mr88tWDuBGyRYuZJcdslVb32ikIOmg6.eY/wPoG5IvAa2" | |
cm: | |
url: "https://$ARGO_FQDN/" # CHANGE eg argocd.customer.domain.com | |
exec.enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
import random | |
from colorama import Fore | |
from datetime import datetime | |
import mysql.connector | |
mydb = mysql.connector.connect( | |
host="192.168.0.181", | |
user="multi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Public SSH key | |
mkdir -p /root/.ssh | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYcUG2E2jBG7+xFUNd8UUdXOU+VGMmSniiRR7w9qD4smnaFdmCBI/ckNmgbW0iOkW24Sl5ZQPirtrZf6U//PLBZe3XsutDk39xsQouJ7+UWIWjJnhBrOY3iBT7Z3jqcvh8/K6ETlmjBCObv2lfARXyVlbLp0u4iMwVgVEbNevcn9Nblhpo8kYIwXJDBA2zhOBmrRp0RZABY2fEIWuKLG3t2/yHz7nh6kyt6/KmIFpGKiivG8l5Zh+6+nr1k0xwBbn7tecNNqg5OTEDY09q1ykW2AKOyFjE8CXzL+BF6P4yUdHBn8tRD5AftQKXCHd5h42Xa6RLZS9yNadKa0O4F0zv alex@Alexs-MacBook-Pro.local" > /root/.ssh/authorized_keys | |
## DNF Update | |
dnf update -y | |
## Check if a restart is required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Define variables | |
VM_NAME=$1 ### THIS Needs to be changed to "test-vm2" for the second VM | |
SUBNET_NAME=$2 ### THIS Needs to be changed to "Subnet 1" for the second VM | |
rand_mac1=$(shuf -i 10-99 -n 1) | |
rand_mac2=$(shuf -i 10-99 -n 1) | |
ENT_NAME="my_enterprise" | |
DOMAIN_NAME="my_domain" | |
ZONE_NAME="Zone 0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<metadata> | |
<nuage xmlns="http://www.nuagenetworks.net/2013/Vm/Metadata"> | |
<user name="my_user"/> | |
<enterprise name="my_enterprise_name"/> | |
<nuage_network domain="my_domain_name" type="ipv4" name="my_subnet_name" zone="my_zone_name"> | |
<interface mac="mac_address_of_vm_interface"/> | |
</nuage_network> | |
</nuage> | |
</metadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SUPPORTED_OS=( centos rhel ) | |
VM_CONFIG_PATH="/tmp/" | |
VM_IMAGE_PATH="/var/lib/libvirt/images/" | |
VM_IMAGE_REMOTEPATH="http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img" | |
. /etc/init.d/functions | |
# Check Operating System |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am alexnastas on github. | |
* I am alexnastas (https://keybase.io/alexnastas) on keybase. | |
* I have a public key ASClx3SezI_Cqh7UcqSHRB3PXGVvzbeI17FF2xgalraqSwo | |
To claim this, I am signing this object: |