683de3683b
Depends-On: Ib3f183980ce3e383c0e6319ee373bd8438e8e6b8 Change-Id: Ice806c363950c7868f464c856c0594e5fc41b554
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
heat_template_version: rocky
|
|
|
|
parameters:
|
|
servers:
|
|
type: json
|
|
|
|
resources:
|
|
|
|
ExtraConfig:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
group: script
|
|
config: |
|
|
#!/bin/bash
|
|
cd /etc/yum.repos.d
|
|
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
|
|
curl https://git.openstack.org/cgit/openstack/tripleo-repos/plain/tripleo_repos/main.py | python - current-tripleo
|
|
yum install -y python2-virtualbmc epel-release libvirt-client libvirt-daemon libvirt qemu-kvm-ev
|
|
yum install -y qemu-system-x86 # <-- needs epel
|
|
yum remove -y epel-release
|
|
systemctl start libvirtd
|
|
git clone https://git.openstack.org/openstack/ironic /tmp/ironic
|
|
mkdir -p /var/log/bmlogs
|
|
chmod 777 /var/log/bmlogs
|
|
# nohup needed as vbmc seems to keep stdin open
|
|
nohup /tmp/ironic/devstack/tools/ironic/scripts/create-node.sh -n node1 -c 1 -m 3072 -d 10 -b br-ex -p 1161 -M 1350 -f qcow2 -a x86_64 -E qemu -e /usr/bin/qemu-system-x86_64 -l /var/log/bmlogs -A 66:0d:1d:d8:0b:a3 > ~zuul/create-node.log 2>&1 < /dev/null &
|
|
disown -a
|
|
ExtraDeployments:
|
|
type: OS::Heat::SoftwareDeploymentGroup
|
|
properties:
|
|
servers: {get_param: servers}
|
|
config: {get_resource: ExtraConfig}
|
|
actions: ['CREATE'] # Only do this on CREATE
|
|
name: VirtNodeExtraConfig
|