Skip to content

Instantly share code, notes, and snippets.

View dantrainor's full-sized avatar

Dan Trainor dantrainor

  • Red Hat, Inc.
  • Phoenix, AZ
View GitHub Profile
# class 10 ssd
Running hdparm test...
/dev/mmcblk0:
Timing buffered disk reads: 58 MB in 3.02 seconds = 19.21 MB/sec
Running dd test...
51200+0 records in
('zaqar-ui-config',
'%s://%s:%d',
{'host': public_host, 'port': 8888, 'ssl_port': 443, 'public_proto': 'wss'},
{'host': internal_host, 'port': 8888}),
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.vm.define "node-database" do |database|
database.vm.provider "docker" do |d|
d.build_dir = "provisions/node-database/"
d.ports = ["13306:3306"]
d.name = "node-database"
d.vagrant_vagrantfile = "./provisions/host/Vagrantfile"
% sudo docker exec -ti bind container --metadata|json_reformat
{
"build_time": "2015-11-17 05:01:02",
"start_method": "/srv/named/bin/start.sh",
"build_time_stamp": 1447736462,
"ci": true,
"build_tag": "jenkins-docker bind-326",
"validate_method": "/srv/named/bin/validate.sh",
"image_tag_names": [
"registry/namespace/bind:latest",
% sudo docker exec -ti exim container --inspect
Container first started at 2015-11-10 05:18:52 +0000 (1447132732) in environment production
Container management methods:
Container supports START method using command /srv/support/bin/start.sh
Container does not support the UPDATE method
Container supports VALIDATE method using command /srv/support/bin/validate.sh
Metadata for image centos_base
KEY1=val1
KEY2=val2
KEY3=val3
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = "docker"
ENV['SSH_KEY_NAME'] = 'docker'
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.6.0"
[root@controller01.ost.home.lab.dtrainor.local ]# nova endpoints
WARNING: neutron has no endpoint in ! Available endpoints for this service:
+-----------+------------------------------------------------------+
| neutron | Value |
+-----------+------------------------------------------------------+
| id | 0b086de92c694ddcb25ac40712b55afe |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| url | http://controller01.ost.home.lab.dtrainor.local:9696 |
Put in a file named site-finder.sh:
#!/bin/sh
DOMAIN=$1
RESULT=`host -t a ${DOMAIN} | awk '{print $4}'`
OUTPUT=`grep ${RESULT} ./site-finder.ips`
if [ "$?" -ne 0 ]; then
echo "Domain not found"
class integrate::services {
class { "httpd": } ->
class { "integrate::config": } ->
class { "integrate::service::users": } ->
class { "integrate::service::logging": } ->
class { "integrate::service::messaging": } ->
class { "integrate::service::fields": } ->
class { "integrate::service::strikeiron": } ->
class { "integrate::service::registration": } ->