summaryrefslogtreecommitdiff
path: root/hot/software-config/boot-config/templates/install_config_agent_centos7_rdo.yaml
blob: 811ee3edd3e6baaf1ce5fb9a52602128413cd670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: ../../../../../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}

  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}