Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| # This file can be used directly by 'phd', see 'build-all.sh' in this | |
| # directory for how it can be invoked. The only requirement is a list | |
| # of nodes you'd like it to modify. | |
| # | |
| # The scope of each command-block is controlled by the preceeding | |
| # 'target' line. | |
| # | |
| # - target=all | |
| # The commands are executed on evey node provided | |
| # | |
| # - target=local | |
| # The commands are executed from the node hosting phd. When not | |
| # using phd, they should be run from some other independant host | |
| # (such as the puppet master) | |
| # | |
| # - target=$PHD_ENV_nodes{N} | |
| # The commands are executed on the Nth node provided. | |
| # For example, to run on only the first node would be target=$PHD_ENV_nodes1 | |
| # | |
| # Tasks to be performed at this step include: | |
| ################################# | |
| # Scenario Requirements Section # | |
| ################################# | |
| = REQUIREMENTS = | |
| nodes: 1 | |
| = VARIABLES = | |
| PHD_VAR_deployment | |
| PHD_VAR_osp_configdir | |
| PHD_VAR_network_domain | |
| PHD_VAR_network_internal | |
| ###################### | |
| # Deployment Scripts # | |
| ###################### | |
| = SCRIPTS = | |
| target=all | |
| .... | |
| if [ $PHD_VAR_deployment = segregated ]; then | |
| echo "We don't document managed compute nodes in a segregated environment yet" | |
| # Certainly none of the location constraints would work and the | |
| # resource-discovery options are mostly redundant | |
| exit 1 | |
| fi | |
| yum install -y pacemaker-remote resource-agents pcs | |
| if [ ! -e $PHD_VAR_osp_configdir/pcmk-authkey ]; then | |
| dd if=/dev/urandom of=$PHD_VAR_osp_configdir/pcmk-authkey bs=4096 count=1 | |
| fi | |
| mkdir -p /etc/pacemaker | |
| cp $PHD_VAR_osp_configdir/pcmk-authkey /etc/pacemaker/authkey | |
| if [ -z "$(pidof pacemakerd)" ]; then | |
| chkconfig pacemaker_remote on | |
| service pacemaker_remote start | |
| fi | |
| .... |