Skip to content

Instantly share code, notes, and snippets.

View mjudeikis's full-sized avatar
👽
Brewing something new...

Mangirdas Judeikis mjudeikis

👽
Brewing something new...
View GitHub Profile
/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)
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:
#/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)
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
sh-4.2$ cat haproxy.config
global
maxconn 20000
daemon
ca-base /etc/ssl
@mjudeikis
mjudeikis / [FEDORA] gitkraken
Last active September 8, 2017 08:52 — forked from aelkz/[FEDORA] gitkraken
How to install gitkraken on Fedora 25 + launcher icon
#!/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/
@mjudeikis
mjudeikis / delete-dockerhub-images.sh
Created September 9, 2017 10:33 — forked from jriguera/delete-dockerhub-images.sh
Delete Docker images on DockerHub
#!/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=""
@mjudeikis
mjudeikis / dockerhub-v2-api-user.sh
Last active September 9, 2017 17:49 — forked from kizbitz/dockerhub-v2-api-user.sh
Get the list of images and tags for a Docker Hub user account.
#!/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=""
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
- name: Update MOTD Package List
blockinfile:
insertafter: "RoS Package List"
marker: "# {mark} PACKAGES Section #"
dest: /etc/motd
content: |
{{ packages_list | to_nice_yaml }}