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
/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 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 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 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
mangirdas@unknown docker-minimal-nginx]$ oc cluster up | |
-- Checking OpenShift client ... OK | |
-- Checking Docker client ... OK | |
-- Checking Docker version ... OK | |
-- Checking for existing OpenShift container ... OK | |
-- Checking for openshift/origin:v1.5.0-alpha.1 image ... OK | |
-- Checking Docker daemon configuration ... OK | |
-- Checking for available ports ... OK | |
-- Checking type of volume mount ... | |
Using nsenter mounter for OpenShift volumes |
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
sh-4.2$ cat haproxy.config | |
global | |
maxconn 20000 | |
daemon | |
ca-base /etc/ssl |
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 | |
# 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 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 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 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 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 }} |