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

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
[root@rhosp ~(keystone_admin)]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
cinder-volumes-pool cinder-volumes twi-aotz-- 66.50g 45.11 21.90
volume-9a9aa754-f10b-45ff-8f64-9d84c475a585 cinder-volumes Vwi-aotz-- 10.00g cinder-volumes-pool 100.00
volume-b120be79-5998-4b0b-83e7-a4b8acc4d1db cinder-volumes Vwi-aotz-- 10.00g cinder-volumes-pool 100.00
volume-e9671b57-38f7-4f31-80b5-b98ae3000bbc cinder-volumes Vwi-aotz-- 10.00g cinder-volumes-pool 100.00