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
#!/bin/bash
source group_vars_all
# Run environment-specific commands
source prep-host-env-config.sh
# Set up sshpass for non-interactive deployment
if ! rpm -q sshpass
then
# Add dnsmasq config for admin network
cat > /etc/NetworkManager/dnsmasq.d/${LAB_NAME}.conf <<EOF
no-negcache
strict-order
server=/admin.example.com/192.168.144.1
server=/osp.example.com/172.20.17.100
address=/master.osp.example.com/172.20.17.5
address=/.apps.example.com/172.20.17.5
EOF
[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
@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
---
- hosts: localhost
gather_facts: no
become: no
tasks:
- k8s_v1_service:
name: test-service
namespace: myproject
selector:
app: django
mkdir ~/tmp/reproducer
cd ~/tmp/reproducer
pyvenv venv
source venv/bin/activate
git clone [email protected]:ansible/ansible.git
git clone [email protected]:openshift/openshift-restclient-python.git
cd openshift-restclient-python
pip install -r requirements.txt
python setup.py develop
source ../ansible/hacking/env-setup
#cloud-config
mounts:
- [ xvdb ]
write_files:
- path: /etc/sysconfig/docker-storage-setup
owner: root:root
permissions: '0644'
content: |
@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

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 / 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