This file contains hidden or 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: apps/v1alpha1 | |
kind: PetSet | |
metadata: | |
name: consul | |
namespace: evoc | |
spec: | |
serviceName: consul | |
replicas: 3 | |
template: | |
metadata: |
This file contains hidden or 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
/storage/pv1 *(rw,root_squash) | |
/storage/pv2 *(rw,root_squash) | |
/storage/pv3 *(rw,root_squash) | |
/storage/pv4 *(rw,root_squash) | |
/storage/pv5 *(rw,root_squash) | |
/storage/pv6 *(rw,root_squash) | |
/storage/pv7 *(rw,root_squash) | |
/storage/pv8 *(rw,root_squash) | |
/storage/pv9 *(rw,root_squash) | |
/storage/pv10 *(rw,root_squash) |
This file contains hidden or 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 | |
data: | |
broker-config: | | |
registry: | |
name: "dockerhub" | |
url: "docker-registry-default.apps.192.168.20.168.xip.io" | |
user: "mangirdas" | |
pass: "asdasdsadsa" | |
org: "ansibleplaybookbundle" | |
dao: |
This file contains hidden or 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 | |
yum install -y skopeo | |
if [ ! -f /usr/local/bin/oc ]; then | |
wget https://github.com/openshift/origin/releases/download/v1.4.1/openshift-origin-client-tools-v1.4.1-3f9807a-linux-64bit.tar.gz -O /tmp/oc.tar.gz | |
cd /tmp; tar -zxvf /tmp/oc.tar.gz; cp openshift-origin-client-tools-*/oc /usr/local/bin/ | |
fi | |
oc login -u admin -p admin docker-registry-default.apps.192.168.20.168.xip.io:8443 --insecure-skip-tls-verify=true | |
TOKEN=$(oc whoami -t) |
This file contains hidden or 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
sh-4.2$ cat haproxy.config | |
global | |
maxconn 20000 | |
daemon | |
ca-base /etc/ssl |
This file contains hidden or 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
systemctl stop glusterd | |
rm -rf /var/lib/glusterd/* | |
remove fstab records adn reboot server to remove busy mounts (easier than to find them) | |
#get list of vgs | |
vgs | |
vgremove vg_something | |
#wide disk | |
pvremove /dev/sdb --force --force -y |
This file contains hidden or 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 | |
# Download GitKraken | |
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz | |
# copy the downloaded file into /opt directory | |
cp gitkraken-amd64.tar.gz /opt/ | |
cd /opt/ |
This file contains hidden or 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 | |
# Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721 | |
# Example for the Docker Hub V2 API | |
# Returns all images and tags associated with a Docker Hub organization account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username, password, and organization | |
UNAME="" | |
UPASS="" |
This file contains hidden or 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 | |
# Example for the Docker Hub V2 API | |
# Returns all imagas and tags associated with a Docker Hub user account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username and password | |
UNAME="" | |
UPASS="" |
This file contains hidden or 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
- name: Update MOTD Package List | |
blockinfile: | |
insertafter: "RoS Package List" | |
marker: "# {mark} PACKAGES Section #" | |
dest: /etc/motd | |
content: | | |
{{ packages_list | to_nice_yaml }} |