Skip to content

Instantly share code, notes, and snippets.

View dav1x's full-sized avatar

Davis Phillips dav1x

  • Red Hat
  • Austin, TX
View GitHub Profile
#!/usr/bin/env python
# vim: sw=4 ts=4 et
import argparse, atexit, click, datetime, getpass, iptools, jinja2, os, six, ssl, sys, uuid
from collections import defaultdict
from six.moves import configparser
from time import time
try:
{
"ociVersion": "1.0.0",
"platform": {
"os": "linux",
"arch": "amd64"
},
"process": {
"terminal": false,
"user": {},
"args": [
--- ks 2017-05-05 14:26:38.000000000 -0500
+++ fixed_ks 2017-05-05 14:40:56.000000000 -0500
@@ -118,5 +118,8 @@
echo "Removing /root/anaconda-ks.cfg"
rm -f /root/anaconda-ks.cfg
+export LD_LIBRARY_PATH=/var/lib/containers/atomic/open-vm-tools/rootfs/usr/lib64/:$LD_LIBRARY_PATH >> /etc/profile.d/open-vm-tools.sh
+export PATH=/var/lib/containers/atomic/open-vm-tools/rootfs/usr/bin/:$PATH >> /etc/profile.d/open-vm-tools.sh
+
%end
{
"ociVersion": "1.0.0",
"platform": {
"os": "linux",
"arch": "amd64"
},
"process": {
"terminal": false,
"user": {},
"args": [
# red hat subscription name and password
rhel_subscription_user=sysengra
rhel_subscription_pass=24^gold
# Internal satellite 6 server
rhel_subscription_server=
# pool with openshift repo access
rhel_subscription_pool=Red Hat OpenShift Container Platform, Premium*
ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.yml \
-e openshift_master_metrics_public_url: "https://metrics.{{ osm_default_subdomain }}/hawkular/metrics" \
-e openshift_hosted_metrics_storage_kind: nfs \
-e openshift_hosted_metrics_storage_access_modes: ['ReadWriteOnce'] \
-e openshift_hosted_metrics_storage_host: nfs-0.vcenter.e2e.bos.redhat.com \
-e openshift_hosted_metrics_storage_nfs_directory: /exports \
-e openshift_hosted_metrics_storage_volume_name: metrics \
-e openshift_hosted_metrics_storage_volume_size: 10Gi
---
production_hosts:
master-1:
guestname: master-1
tag: master
master-0:
guestname: master-0
tag: master
master-2:
guestname: master-2
---
host_inventory:
infra-1:
guestname: infra-1
tag: infra
ip4addr: 10.19.114.236
---
- hosts: new_nodes
gather_facts: yes
become: yes
serial: 1
roles:
- instance-groups
- aws-rhsm-subscription
- hosts: new_nodes
---
- hosts: localhost
connection: local
gather_facts: no
become: no
vars_files:
- vars/main.yaml
roles:
# Group systems
- create-vm-crs-prod-ose