Skip to content

Instantly share code, notes, and snippets.

View mrhillsman's full-sized avatar

Melvin Hillsman mrhillsman

View GitHub Profile
@mrhillsman
mrhillsman / openlab-heredocs-zuul.sh
Last active October 14, 2017 04:50
openlab-heredocs-zuul
#!/bin/bash
# Be sure you modify according to your needs
# you need to update the {{}} items below; i.e. {{ public_address }}
cat << EOF > /etc/zuul/zuul.conf
[gearman]
server=127.0.0.1
;port=4730
;ssl_ca=/path/to/ca.pem
@mrhillsman
mrhillsman / prometheus-openstack-exporter
Created May 1, 2017 20:30
Modified version of http://github.com/CanonicalLtd/prometheus-openstack-exporter that is confirmed working with OpenStack Newton
#!/usr/bin/python
"""
OpenStack exporter for the prometheus monitoring system
Copyright (C) 2016 Canonical, Ltd.
Authors:
Jacek Nykis <[email protected]>
Laurent Sesques <[email protected]>
root@infra01-utility-container-c99af07d:~# python healthcheck.py --image d9b4fd09-deb5-4dae-8924-38e05782cc3a
!! No account number or token provided. MaaS will not be checked.
** Starting service checks...
Version 1 is deprecated, use alternative version 2 instead.
WARNING:cinderclient.api_versions:Version 1 is deprecated, use alternative version 2 instead.
** Cinder volume service found. Will test functionality.
** Database shows no issues. :)
** Nova shows no issues. :)
** Neutron shows no issues. :)
** Cinder shows no issues. :)
@mrhillsman
mrhillsman / prometheus-openstack-exporter
Created April 25, 2017 19:59
Updated Prometheus OpenStack Exporter for Identity v3
#!/usr/bin/python
"""
OpenStack exporter for the prometheus monitoring system
Copyright (C) 2016 Canonical, Ltd.
Authors:
Jacek Nykis <[email protected]>
Laurent Sesques <[email protected]>
root@deploy:/opt/kolla# cat /etc/kolla/config/neutron/ml2_conf.ini
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = linuxbridge,l2population
[ml2_type_vlan]
network_vlan_ranges = vlan:205:209
[ml2_type_flat]
root@deploy:/opt/kolla# cat ansible/inventory/multinode
# These initial groups are the only groups required to be modified. The
# additional groups are for more control of the environment.
[control]
# These hostname must be resolvable from your deployment host
infra01 ansible_ssh_host=172.29.176.101
infra03 ansible_ssh_host=172.29.176.103
infra02 ansible_ssh_host=172.29.176.102
# The above can also be specified as follows:
root@deploy:~# cat /etc/kolla/passwords.yml
aodh_database_password: Sn5pjRH8jQpns6NQcFubfMZeytk4VVAoCNW4VRb5
aodh_keystone_password: kUhouaIR5B656k52lMOrmnFafvFUBXX7HHKIhEIX
barbican_database_password: iuMpJ1Qj7KIaTH4jQ0qeCYF95rtBW1ykN4gGVDZH
barbican_keystone_password: 7usxTWdq7gn26HKhlvOvojVS2lpqQ4bRyTIOTvhw
bifrost_ssh_key:
private_key: '-----BEGIN RSA PRIVATE KEY-----
MIIJKQIBAAKCAgEAp8kEBrw+/te4JO5vxENYdlJesQygrYo6y7FtMJp0znf8UwuN
root@deploy:~# cat /etc/kolla/globals.yml
---
# You can use this file to override _any_ variable throughout Kolla.
# Additional options can be found in the 'kolla/ansible/group_vars/all.yml' file.
# Default value of all the commented parameters are shown here, To override
# the default value uncomment the parameter and change its value.
###################
# Kolla options
###################
---
- name: "Deploy OpenStack-Ansible"
hosts: localhost
remote_user: root
serial: 1
tasks:
- name: Remove ansible symlink if it does exist
shell: "if [ -L /opt/ansible-runtime/bin/ansible ]; then unlink /opt/ansible-runtime/bin/ansible; fi;"
@mrhillsman
mrhillsman / rpcops-host-interfaces
Created December 15, 2016 20:25
SantaClara Lab Host Interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
### NOTE ###
# this is for >> DELL << SantaClara nodes
# LENOVO:
# p2p1 in place of em1
# p2p2 in place of em2
# p1p1 in place of p3p1
# p1p2 in place of p3p2