ddca77553d
Update pending templates to use the release name alias. Change-Id: I39f9be212d3e9f3bec6f45d9757eca7a3b0ccc06
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
heat_template_version: ocata
|
|
|
|
description: >
|
|
Do some configuration, then reboot - sometimes needed for early-boot
|
|
changes such as modifying kernel configuration
|
|
|
|
parameters:
|
|
server:
|
|
type: string
|
|
|
|
resources:
|
|
|
|
SomeConfig:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
group: script
|
|
config: |
|
|
#!/bin/bash
|
|
echo "did some config before reboot" > /root/pre-reboot-config
|
|
|
|
SomeDeployment:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
name: SomeDeployment
|
|
server: {get_param: server}
|
|
config: {get_resource: SomeConfig}
|
|
actions: ['CREATE'] # Only do this on CREATE
|
|
|
|
RebootConfig:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
group: script
|
|
config: |
|
|
#!/bin/bash
|
|
# Stop os-collect-config to avoid any race collecting another
|
|
# deployment before reboot happens
|
|
systemctl stop os-collect-config.service
|
|
/sbin/reboot
|
|
|
|
RebootDeployment:
|
|
type: OS::Heat::SoftwareDeployment
|
|
depends_on: SomeDeployment
|
|
properties:
|
|
name: RebootDeployment
|
|
server: {get_param: server}
|
|
config: {get_resource: RebootConfig}
|
|
actions: ['CREATE'] # Only do this on CREATE
|
|
signal_transport: NO_SIGNAL
|