Skip to content

Instantly share code, notes, and snippets.

View detiber's full-sized avatar
🐢
Cuddling all the Koobs

Jason DeTiberus detiber

🐢
Cuddling all the Koobs
View GitHub Profile
# This is an example of a bring your own (byo) host inventory
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
etcd
lb
# Set variables common for all OSEv3 hosts
# This is an example of a bring your own (byo) host inventory
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
etcd
lb
# Set variables common for all OSEv3 hosts
# config file for ansible -- http://ansible.com/
# ==============================================
[defaults]
callback_plugins = ansible-profile/callback_plugins
forks = 10
host_key_checking = False
roles_path = roles/
hostfile = inventory/byo/hosts
gathering = smart
fact_caching = jsonfile
@detiber
detiber / atomic-openshift-installer-config.yml
Last active August 30, 2018 17:17
openshift-ansible-installer config example
---
version: v3
variant: openshift-enterprise
variant_version: '3.1'
# The deployment key specifies the hosts and roles fo rthe deployment
# and configuration values that apply to the deployment as a whole
deployment:
ansible_config: /usr/share/atomic-openshift-utils/ansible.cfg
ansible_log_path: /tmp/ansible.log

Keybase proof

I hereby claim:

  • I am detiber on github.
  • I am detiber (https://keybase.io/detiber) on keybase.
  • I have a public key whose fingerprint is 74EA E11D EE41 401E D004 EF20 5BF6 4717 B6CB FECC

To claim this, I am signing this object:

@detiber
detiber / hosts
Created November 3, 2016 15:15
example dynamic inventory static mapping
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
...
[masters:children]
tag_my_masters_tag
#cloud-config
mounts:
- [ xvdb ]
write_files:
- path: /etc/sysconfig/docker-storage-setup
owner: root:root
permissions: '0644'
content: |
mkdir ~/tmp/reproducer
cd ~/tmp/reproducer
pyvenv venv
source venv/bin/activate
git clone git@github.com:ansible/ansible.git
git clone git@github.com:openshift/openshift-restclient-python.git
cd openshift-restclient-python
pip install -r requirements.txt
python setup.py develop
source ../ansible/hacking/env-setup
---
- hosts: localhost
gather_facts: no
become: no
tasks:
- k8s_v1_service:
name: test-service
namespace: myproject
selector:
app: django
@detiber
detiber / thinpool.md
Created April 5, 2017 18:42
thinpool output

lvs w/o thinpool:

[root@rhosp ~(keystone_user1)]$ lvs
  LV                                          VG             Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  volume-4d80739c-e8d3-4130-ad6f-ec9f27b72bd2 cinder-volumes -wi-a----- 10.00g   

lvs w/ thinpool:

14:37:48 [jdetiber:~/git/gitlab/summit-2017-ocp-operator] discards_start 6s 1 ± sudo lvs