Colleen Murphy 478f4ec6a9 Add bifrost manifest
Add class to manage bifrost:
 - clones bifrost from source
 - adds config files
 - runs bifrost install procedure
 - runs custom ansible playbook to generate static dhcp inventory
 - starts an additional dnsmasq instance and runs it like a service

Based on the ironic::bifrost class[1] but with some modifications to
avoid heavy reliance on the puppet DSL.

Co-Authored-By: Clint Byrum <clint@fewbar.com>
Co-Authored-By: greghaynes <greg@greghaynes.net>
Co-Authored-By: Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>
Co-Authored-By: Yolanda Robla <info@ysoft.biz>

[1] http://git.openstack.org/cgit/openstack/puppet-ironic/tree/manifests/bifrost.pp

Change-Id: I949344c16cf9ee3965b0bc96850eb208ac65b168
2016-02-23 09:02:00 -08:00

14 lines
690 B
Bash
Executable File

#!/bin/bash
wget https://git.openstack.org/cgit/openstack-infra/system-config/plain/install_puppet.sh
bash -x install_puppet.sh
mkdir /root/.ssh
chmod 700 /root/.ssh
cat > /root/.ssh/authorized_keys <<EOF
from="puppetmaster.openstack.org" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSLlN41ftgxkNeUi/kATYPwMPjJdMaSbgokSb9PSkRPZE7GeNai60BCfhu+ky8h5eMe70Bpwb7mQ7GAtHGXPNU1SRBPhMuVN9EYrQbt5KSiwuiTXtQHsWyYrSKtB+XGbl2PhpMQ/TPVtFoL5usxu/MYaakVkCEbt5IbPYNg88/NKPixicJuhi0qsd+l1X1zoc1+Fn87PlwMoIgfLIktwaL8hw9mzqr+pPcDIjCFQQWnjqJVEObOcMstBT20XwKj/ymiH+6p123nnlIHilACJzXhmIZIZO+EGkNF7KyXpcBSfv9efPI+VCE2TOv/scJFdEHtDFkl2kdUBYPC0wQ92rp puppet-remote-2014-09-15
EOF
chmod 600 /root/.ssh/authorized_keys