Skip to content

Instantly share code, notes, and snippets.

View jcpowermac's full-sized avatar

Joseph Callen jcpowermac

View GitHub Profile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1028 100 1028 0 0 1681 0 --:--:-- --:--:-- --:--:-- 1682
Using /etc/ansible/ansible.cfg as config file
PLAYBOOK: main.yml *************************************************************
1 plays in /opt/app-root/src/main.yml
PLAY [testing] *****************************************************************
@jcpowermac
jcpowermac / update.sh
Created January 31, 2017 20:59
virsh net-update example openvswitch (ovs) portgroup
virsh net-update ovsbr0 add --section portgroup --xml "<portgroup name='trunk'><vlan trunk='yes'><tag id='2970'/><tag id='2971'/></vlan></portgroup>" --config --live
virsh net-update ovsbr0 add --section portgroup --xml "<portgroup name='vlan-2979'><vlan><tag id='2979'/></vlan></portgroup>" --config --live
Using /etc/ansible/ansible.cfg as config file
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
PLAYBOOK: main.yml *************************************************************
2 plays in /opt/app-root/src/main.yml
PLAY [localhost testing] *******************************************************
TASK [find files in tmp] *******************************************************
task path: /opt/app-root/src/main.yml:6
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: playbook2image-testing
objects:
#- apiVersion: v1
# kind: BuildConfig
# metadata:
# annotations: null

The example che.yaml file is modified from this repo.

#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
set -x
echo -e "\n${RED}>>> Build ansibleapp-base${NC}\n"
cd /home/jcallen/Development/ansibleapp-library/ansibleapp-base
setw -g mode-keys vi
# set Zsh as your default Tmux shell
set-option -g default-shell /bin/zsh
# UTF is great, let us use that
#set -g utf8
#set-window-option -g utf8 on
# Tmux should be pretty, we need 256 color for that
@jcpowermac
jcpowermac / Dockerfile
Created April 28, 2017 15:00
add ping
FROM jamgocoop/juniper-vpn
RUN apt-get update && apt-get install -y iputils-ping
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/jcallen/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bureau"