Files
heat-templates/hot/software-config/boot-config/templates/install_config_agent_test_image.yaml
Takashi Kajinami 109bb65c3a Drop reference to dib-utils
The dib-utils repository was retired when TripleO was retired. We
decided to vendor the dib-run-parts script in os-refresh-config so
we no longer need the separate tiny package for the dib-run-parts
script.

Depends-on: https://review.opendev.org/c/openstack/os-refresh-config/+/910574
Change-Id: Id35efa4b387bd0fa21c1d73a4fe59f88c197f500
2024-02-29 17:08:10 +09:00

83 lines
2.6 KiB
YAML

heat_template_version: 2014-10-16
parameters:
pip_mirror:
type: string
default: https://pypi.python.org/simple
resources:
install_config_agent_pip:
type: "OS::Heat::SoftwareConfig"
properties:
group: ungrouped
config:
str_replace:
params:
$pip_mirror: {get_param: pip_mirror}
template: |
#!/bin/bash
set -eux
pip freeze
pip install --index-url "$pip_mirror" --pre --no-deps os-collect-config os-apply-config os-refresh-config heat-cfntools
pip freeze
cfn-create-aws-symlinks --force
configure_config_agent:
type: "OS::Heat::SoftwareConfig"
properties:
group: ungrouped
config:
str_replace:
params:
$heat_config_script: {get_file: ../../../../../heat-agents/heat-config/os-refresh-config/configure.d/55-heat-config}
$hook_script: {get_file: ../../../../../heat-agents/heat-config-script/install.d/hook-script.py}
$heat_config_notify: {get_file: ../../../../../heat-agents/heat-config/bin/heat-config-notify}
$occ_conf: {get_file: fragments/os-collect-config.conf}
$orc_oac: {get_file: fragments/20-os-apply-config}
template: {get_file: fragments/configure_config_agent.sh}
install_puppet_hook:
type: "OS::Heat::CloudConfig"
properties:
cloud_config:
merge_how: dict(recurse_array)+list(append)
write_files:
- path: /var/lib/heat-config/hooks/puppet
owner: "root:root"
permissions: "0755"
content: {get_file: ../../../../../heat-agents/heat-config-puppet/install.d/hook-puppet.py}
install_cfn_init_hook:
type: "OS::Heat::CloudConfig"
properties:
cloud_config:
merge_how: dict(recurse_array)+list(append)
write_files:
- path: /var/lib/heat-config/hooks/cfn-init
owner: "root:root"
permissions: "0755"
content: {get_file: ../../../../../heat-agents/heat-config-cfn-init/install.d/hook-cfn-init.py}
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_pip}
- config: {get_resource: configure_config_agent}
- config: {get_resource: install_puppet_hook}
- config: {get_resource: install_cfn_init_hook}
- config: {get_resource: start_config_agent}
outputs:
config:
value: {get_resource: install_config_agent}