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
diff --git a/Makefile b/Makefile | |
index 4c1191881..264ae6777 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -65,6 +65,7 @@ DOCKER_SRC_MOUNT="$(DOCKER_SRCDIR):/go/src$(VOLUME_MOUNT)" | |
else | |
DOCKER_SRC_MOUNT="$(PWD):/go/src/github.com/argoproj/argo-cd$(VOLUME_MOUNT)" | |
endif | |
+DOCKER_RUN_OPTIONAL_ARGS?= | |
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: v1 | |
kind: Pod | |
metadata: | |
name: bandini | |
namespace: imperative | |
spec: | |
serviceAccount: imperative-sa | |
containers: | |
- image: quay.io/hybridcloudpatterns/utility-container:latest | |
name: bandini |
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/bin/python3 | |
import os | |
import subprocess | |
import yaml | |
from github import Github | |
baseurl = "https://docs-pr.acksyn.org/pr" |
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 | |
set -e | |
function error_out() { | |
echo "Error wrong arguments. Pick either input or output" | |
exit 1 | |
} | |
if [ $# -ne 1 ]; then | |
error_out |
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
--- | |
# We require the kubernetes collection. Install it first via: | |
# ansible-galaxy collection install community.kubernetes | |
# | |
# This expects four environment variables to be set: | |
# KUBECONFIG -> Pointing to the HUB | |
# REMOTEAPI -> API endpoint of the remote cluster | |
# REMOTECLUSTERNAME -> Name of the cluster you want to import | |
# REMOTETOKEN -> Token of the remote cluster | |
- name: Playbook to import a cluster |
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
export SBDB=$(sudo ovs-vsctl get open . external_ids:ovn-remote | sed -e 's/\"//g') ; export NBDB=$(sudo ovs-vsctl get open . external_ids:ovn-remote | |
| sed -e 's/\"//g' | sed -e 's/6642/6641/g') ; alias ovn-sbctl='sudo podman exec ovn_controller ovn-sbctl --db=$SBDB' ; alias ovn-nbctl='sudo podman | |
exec ovn_controller ovn-nbctl --db=$NBDB' ; alias ovn-trace='sudo podman exec ovn_controller ovn-trace --db=$SBDB' | |
ovn-sbctl list chassis | |
ovs-vsctl get open . external_ids:ovn-bridge-mappings | |
ovn-nbctl --db="ssl:172.17.1.122:6641" -p /etc/pki/tls/private/ovn_controller.key -c /etc/pki/tls/certs/ovn_controller.crt -C /etc/ipa/ca.crt show |
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 | |
set -x | |
source /etc/os-release | |
sudo systemctl stop tripleo_\* | |
sudo systemctl stop ceph\* | |
sudo pcs cluster destroy | |
if [ $VERSION_ID == "7" ]; then | |
sudo docker ps -a -q | xargs docker rm -f | |
else |
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
ospgrep() { | |
echo "$*" | |
grep -E "\s\b(E[rR]{2}:?|alert|Traceback|TRACE|crit|fatal|HANDLER|TASK|PLAY|Unexpected|FAIL|[Ff]ail|denied|non-zero|[Tt]ime[d\s]?out|UNCAUGHT|EXCEPTION|Unknown|[Aa]ssertion|inuse)" $* | |
} |
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
rm /opt/puppetlabs/facter/cache/ -rf | |
rm -fr /var/lib/container-puppet/puppetlabs/ | |
mkdir /var/lib/container-puppet/puppetlabs/ | |
cat > /var/lib/container-puppet/puppetlabs/facter.conf <<EOF | |
facts : { | |
ttls: [ | |
{ "kernel" : 98 hour }, | |
{ "memory" : 98 hour }, | |
{ "networking" : 98 hour }, | |
{ "operating system" : 98 hour }, |
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 | |
set -e | |
cd /home/stack | |
source ./stackrc | |
if [ ! -f inv.yml ]; then | |
tripleo-ansible-inventory --static-yaml-inventory inv.yml | |
fi | |
cat > /tmp/sosreport.yml <<EOF |
NewerOlder