Boot config env for RDO on centos7
This adds an environment centos7_rdo_env.yaml which defines Heat::InstallConfigAgent to install agent packages from the RDO package repository. Change-Id: I28b4315ec0261598867d7632f4f75774f3ef8e60
This commit is contained in:
parent
901f407ef9
commit
5f1c6c66d7
7
hot/software-config/boot-config/centos7_rdo_env.yaml
Normal file
7
hot/software-config/boot-config/centos7_rdo_env.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
# Installs software-config agent on boot for fedora with yum
|
||||
|
||||
parameters:
|
||||
image: CentOS-7-x86_64-GenericCloud
|
||||
|
||||
resource_registry:
|
||||
"Heat::InstallConfigAgent": templates/install_config_agent_centos7_rdo.yaml
|
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
yum -y install https://www.rdoproject.org/repos/rdo-release.rpm
|
||||
yum -y install python-zaqarclient os-collect-config os-apply-config os-refresh-config dib-utils
|
@ -0,0 +1,39 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
resources:
|
||||
|
||||
install_config_agent_rdo:
|
||||
type: "OS::Heat::SoftwareConfig"
|
||||
properties:
|
||||
group: ungrouped
|
||||
config: {get_file: fragments/install_config_agent_rdo.sh}
|
||||
|
||||
configure_config_agent:
|
||||
type: "OS::Heat::SoftwareConfig"
|
||||
properties:
|
||||
group: ungrouped
|
||||
config:
|
||||
str_replace:
|
||||
params:
|
||||
$heat_config_script: {get_file: ../../elements/heat-config/os-refresh-config/configure.d/55-heat-config}
|
||||
$hook_script: {get_file: ../../elements/heat-config-script/install.d/hook-script.py}
|
||||
$heat_config_notify: {get_file: ../../elements/heat-config/bin/heat-config-notify}
|
||||
template: {get_file: fragments/configure_config_agent.sh}
|
||||
|
||||
start_config_agent:
|
||||
type: "OS::Heat::SoftwareConfig"
|
||||
properties:
|
||||
group: ungrouped
|
||||
config: {get_file: fragments/start_config_agent.sh}
|
||||
|
||||
install_config_agent:
|
||||
type: "OS::Heat::MultipartMime"
|
||||
properties:
|
||||
parts:
|
||||
- config: {get_resource: install_config_agent_rdo}
|
||||
- config: {get_resource: configure_config_agent}
|
||||
- config: {get_resource: start_config_agent}
|
||||
|
||||
outputs:
|
||||
config:
|
||||
value: {get_resource: install_config_agent}
|
Loading…
x
Reference in New Issue
Block a user