This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installs libvirt, vftool.bash, readies a foreman server with three | |
# clients, and starts vncserver. Intended to be run on a fresh el6 | |
# system to get a working development environment. If you already | |
# have VM's / libvirt running on your system, you probably don't want | |
# to run this script (things like the default network and storage pool | |
# path get changed during the "./vftool" commands). | |
export INSTALLURL=<your el6 repo, e.g. http://<your host>/6.5/Server/x86_64/os/> | |
export REG_SCRIPT=<path to script that registers/points host to el and openstack (rdo or rhos) repos> | |
export INITIMAGE=rhel65 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure REG_SCRIPT and INITIMAGE make sense! (and the other vars, while you are at it) | |
export FOREMAN_NODE=fore1a | |
VMSET_CHUNK=sw1a | |
NUM_CLIS=3 | |
REG_SCRIPT=<your yum or rhn setup script> | |
export PATH=$PATH:/mnt/vm-share/vftool | |
cd /mnt/vm-share/vftool | |
# install the foreman client vm's |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# On el6, to be run on the bare metal host after you have virtual networking | |
# set up. | |
yum install -y fence-virt fence-virtd fence-virtd-libvirt fence-virtd-multicast | |
for i in `ls /sys/class/net/*br*/bridge/multicast_querier`; do echo 1 > $i; done | |
if [ ! -f /etc/cluster/fence_xvm.key ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ceph-firefly-noarch] | |
name=ceph-firefly | |
baseurl=http://ceph.com/rpm-firefly/rhel7/noarch | |
gpgcheck=0 | |
enabled=1 | |
[ceph-firefly-x86_64] | |
name=ceph-firefly | |
baseurl=http://ceph.com/rpm-firefly/rhel7/x86_64 | |
gpgcheck=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: In tests below c1a1 is one of 3 HA controllers and c1a5 is a nova compute node. Testing PR https://github.com/redhat-openstack/astapor/pull/489 | |
[samurai@baremetal ha]# ## TEST manage_ceph_conf | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run /mnt/vm-share/mcs/foreman/config/ha/ha-params.bash >/dev/null | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
Connection to fore1a closed. | |
[samurai@baremetal ha]# VMSET=fore1a vftool.bash run '/mnt/vm-share/mcs/foreman/api/hosts.rb show_yaml c1a1' | grep manage_ceph | |
Warning: Permanently added 'fore1a,192.168.7.186' (ECDSA) to the list of known hosts. | |
manage_ceph_conf: false | |
Connection to fore1a closed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pcmk/lb.scenario:pcs resource create lb-haproxy systemd:haproxy op monitor start-delay=10s --clone | |
pacemaker::resource::service {"lb-haproxy": | |
service_name => 'haproxy', | |
op_params => 'monitor start-delay=10s', | |
clone_params => '', | |
} | |
# results in Debug: /usr/sbin/pcs resource create lb-haproxy systemd:haproxy op monitor start-delay=10s --clone | |
#pcmk/lb.scenario: pcs resource create vip-${section} IPaddr2 ip=${PHD_VAR_network_internal}.${offset} nic=eth1 | |
pacemaker::resource::ip {"ip-192.168.201.59": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
need to support | |
# clone | |
pcs create ... --clone | |
pcs create ... --clone interleave=true | |
pcs create ... --clone globally-unique=true clone-max=3 interleave=true | |
pcs create ... --clone interleave=true --disabled --force # maybe, see compute-managed.scenario | |
# op | |
pcs create ... resource_name op monitor start-delay=10s ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puppet output Debug: try 1/4: /usr/sbin/pcs resource create memcached systemd:memcached --clone | |
pcmk/memcached.scenario:pcs resource create memcached systemd:memcached --clone | |
puppet output Debug: try 1/4: /usr/sbin/pcs resource create haproxy systemd:haproxy op monitor start-delay=10s --clone | |
pcmk/lb.scenario:pcs resource create lb-haproxy systemd:haproxy op monitor start-delay=10s --clone | |
puppet output Debug: try 1/4: /usr/sbin/pcs resource create galera galera additional_parameters='--open-files-limit=16384' enable_creation=true wsrep_cluster_address="gcomm://pcmk-c1a1,pcmk-c1a2,pcmk-c1a3" meta master-max=3 ordered=true op promote timeout=300s on-fail=block --master | |
pcs resource create galera galera enable_creation=true wsrep_cluster_address="gcomm://${node_list}" additional_parameters='--open-files-limit=16384' meta master-max=3 ordered=true op promote timeout=300s on-fail=block --master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Use this script to install everything *system-wide* (as opposed to using | |
# bundler) to enable development. For example, ruby, rails, deltacloud, | |
# imagefactory, postgres, etc. | |
# | |
# Note: this works well for Fedora 16 and 17. For RHEL 6, some of the | |
# the dependencies may need to be manually downloaded and installed | |
# (e.g., rubygem-paranoia) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install master imagefactory (soon to be v2) | |
## To be run as root on fc17 | |
git clone git://github.com/aeolusproject/imagefactory.git | |
cd imagefactory/ | |
make rpm | |
cd imagefactory-plugins/; make rpm | |
cd /root/rpmbuild/RPMS/noarch | |
# install everything *except* imagefactory-secondary which has a yum |
OlderNewer