Skip to content

Instantly share code, notes, and snippets.

@gbraad
Created June 23, 2016 01:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gbraad/51bcd499dd7def19a1213381a1468f16 to your computer and use it in GitHub Desktop.
Save gbraad/51bcd499dd7def19a1213381a1468f16 to your computer and use it in GitHub Desktop.
Install TripleO on baremetal using Quickstart

Install TripleO on baremetal using Quickstart

This gist contains the files and scripts used to deploy to baremetal. Be aware deploy.sh wasn't really used in this way. The steps were actually performed from an interactive session (due to issues with the overcloud loosing connectivity).

The undercloud image needs to be build or download and stored in /var/lib/oooq-images/.

For more information, see: TripleO scratchpad

Gerard Braad me@gbraad.nl

#!/bin/bash
export VIRTHOST=server-124.local
./quickstart.sh \
--config deploy-baremetal.yml \
-e undercloud_instackenv_template=../../../instackenv-baremetal.json \
-e undercloud_image_url=file:///var/lib/oooq-images/undercloud-mitaka.qcow2 \
$VIRTHOST
overcloud_nodes:
extra_args: >-
--control-scale 1
--control-flavor control
--compute-scale 1
--compute-flavor compute
--ntp-server pool.ntp.org
#!/bin/bash
./generate-instackenv.sh
./deploy-baremetal.sh
# Could be done with tags... but this is just here to describe what happens.
ssh -F .quickstart/ssh.config.ansible undercloud -C "./undercloud-install.sh"
ssh -F .quickstart/ssh.config.ansible undercloud -C "./undercloud-post-install.sh"
ssh -F .quickstart/ssh.config.ansible undercloud -C ". stackrc && openstack baremetal introspection bulk start"
ssh -F .quickstart/ssh.config.ansible undercloud -C "./overcloud-deploy.sh"
ssh -F .quickstart/ssh.config.ansible undercloud -C "./overcloud-deploy-post.sh"
#!/bin/bash
cat > instackenv-baremetal.json << EOF
{
"nodes":[
{
"_comment": "ooo1",
"pm_type":"pxe_ipmitool",
"mac": [
"00:26:9e:9b:c3:36"
],
"cpu": "16",
"memory": "65536",
"disk": "370",
"arch": "x86_64",
"pm_user":"root",
"pm_password":"admin",
"pm_addr":"10.0.108.126",
"capabilities": "profile:compute,boot_option:local"
},
{
"_comment": "ooo2",
"pm_type":"pxe_ipmitool",
"mac": [
"00:26:9e:9c:38:a6"
],
"cpu": "16",
"memory": "32768",
"disk": "929",
"arch": "x86_64",
"pm_user":"root",
"pm_password":"admin",
"pm_addr":"10.0.108.127",
"capabilities": "profile:control,boot_option:local"
}
]
}
EOF
json_verify < instackenv-baremetal.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment