Skip to content

Instantly share code, notes, and snippets.

View leifmadsen's full-sized avatar
🏠
Working from home

Leif Madsen leifmadsen

🏠
Working from home
  • Red Hat
  • Caledon, ON, Canada
  • 13:16 (UTC -04:00)
  • LinkedIn in/leifmadsen
View GitHub Profile
@leifmadsen
leifmadsen / telemetry_prereq.md
Last active August 13, 2018 14:33
Telemetry Pre-Requisite Builds
@leifmadsen
leifmadsen / openshift_storage_servicecatalog.json
Last active January 17, 2023 22:01
OpenShift+Storage+Service Catalogs
# vim: set ft=yaml shiftwidth=2 tabstop=2 expandtab :
openshift-lb ansible_host=openshift-lb.nfvpe.site
openshift-master-1 ansible_host=openshift-master-1.nfvpe.site
openshift-master-2 ansible_host=openshift-master-2.nfvpe.site
openshift-master-3 ansible_host=openshift-master-3.nfvpe.site
openshift-node-1 ansible_host=openshift-node-1.nfvpe.site
openshift-node-2 ansible_host=openshift-node-2.nfvpe.site
openshift-node-3 ansible_host=openshift-node-3.nfvpe.site
openshift-infra-node-1 ansible_host=10.19.110.71 # needed for telemetry
openshift-infra-node-2 ansible_host=10.19.110.72 # needed for telemetry
@leifmadsen
leifmadsen / telemetry-install.md
Last active August 13, 2018 14:33
Telemetry Platform Deployment Instructions

DEPRECATED

Documentation is now available at https://github.com/redhat-nfvpe/telemetry-framework/tree/master/docs

Telemetry Platform Deployment

Instructions in this gist are for the deployment of the telemetry platform on top of OpenShift Origin v3.9. Deployment of the platform is done in two (2) steps. The first step is bootstrap of the virtual hosts and installation of the virtual machines (VM) on those virtual hosts (virthost).

@leifmadsen
leifmadsen / telemetry-post-install.md
Last active April 30, 2018 17:42
Telemetry Post-Install Actions

Telemetry Post-Install Actions

Some actions that might be done post-install of telemetry to setup the system.

add user to htpasswd

htpasswd -bn lmadsen Sup3r$3creT
<copy_hash>
sudo su -

cat >> /etc/origin/master/htpasswd <

@leifmadsen
leifmadsen / atomic-resize-root.md
Last active June 22, 2018 15:02
Resize CentOS Atomic Root Disk

Resizing CentOS Atomic /dev/atomicos/root disk

I found out that the default Atomic root disk is only 3GB! That causes all sorts of problems on the master when you try to spin up more than a handful of things (you get disk pressure errors, and things end up not spinning up properly).

NOTE

You'll need to make sure you have libguestfs-xfs package installed or virt-resize won't be able to expand the XFS partition.

@leifmadsen
leifmadsen / openshift+storage+service_brokers.md
Last active January 17, 2023 22:01
OpenShift 3.9 + GlusterFS + Service Brokers

OpenShift Origin 3.9 Deployment

Deployment of OpenShift Origin 3.9 with GlusterFS and Service Brokers including Ansible Service Broker. Deployed on virtual machines provided by base-infra-bootstrap. Deployment of OpenShift Origin is done via openshift-ansible.

base-infra-bootstrap

Deploy the virtual machines.

@leifmadsen
leifmadsen / openshift+telemetry-infra.md
Last active April 25, 2018 20:15
OpenShift 3.9 Origin + Telemetry Core

Deploy SA Telemetry

A brief bit of information on how I've deployed OpenShift Ansible from the release-3.9 branch with GlusterFS storage, service brokers including Ansible Service Broker.

Permissions

oc login -u system:admin
oc create namespace sa

oc project sa

@leifmadsen
leifmadsen / zuulfromscratch.md
Last active November 7, 2022 14:16
Zuul From Scratch

Login to your environment

We're going to be using Fedora 26 for this installation. Since we'll be using a cloud image for Fedora 26, our login user will be fedora which will also be the staging user for installation of Zuul and Nodepool.

To get started, ssh to your machine as the fedora user:

ssh fedora@<floating_ip>

Environment Setup

# vim: set ft=ansible
- name: Deploy on OpenStack
hosts: localhost
gather_facts: false
vars_files:
- ~/.ansible/vars/elk_vars.yml
tasks:
- name: Deploy an instance
os_server:
ruby_block "Get starting values" do
block do
record = File.open("#{Chef::Config[:file_cache_path]}/#{db}-status.txt") {|f| f.readline}
node.set['mysql']['file_value'] = record.split("\t").first
node.set['mysql']['pos_value'] = record.split("\t")[1]
Chef::Log.info("Current values for file_value and pos_value are: #{node['mysql']['file_value']} and #{node['mysql']['pos_v#
end
action :create
end