1 heat_template_version: pike
4 OpenStack containerized Nova Ironic Compute service
7 DockerNovaComputeIronicImage:
10 DockerNovaConfigImage:
11 description: The container image to use for the nova config_volume
15 description: Dictionary packing service data
19 description: Mapping of service_name -> network name. Typically set
20 via parameter_defaults in the resource registry. This
21 mapping overrides those in ServiceNetMapDefaults.
28 description: Role name on which the service is applied
32 description: Parameters specific to the role
36 description: Mapping of service endpoint -> protocol. Typically set
37 via parameter_defaults in the resource registry.
43 type: ./containers-common.yaml
46 type: ../../puppet/services/database/mysql-client.yaml
49 type: ../../puppet/services/nova-ironic.yaml
51 ServiceData: {get_param: ServiceData}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 EndpointMap: {get_param: EndpointMap}
55 RoleName: {get_param: RoleName}
56 RoleParameters: {get_param: RoleParameters}
60 description: Role data for the Nova Compute service.
62 service_name: {get_attr: [NovaIronicBase, role_data, service_name]}
63 config_settings: {get_attr: [NovaIronicBase, role_data, config_settings]}
64 step_config: &step_config
67 - - {get_attr: [NovaIronicBase, role_data, step_config]}
68 - {get_attr: [MySQLClient, role_data, step_config]}
71 puppet_tags: nova_config,nova_paste_api_ini
72 step_config: *step_config
73 config_image: {get_param: DockerNovaConfigImage}
75 /var/lib/kolla/config_files/nova_ironic.json:
76 command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
78 - source: "/var/lib/kolla/config_files/src/*"
81 preserve_properties: true
82 - source: "/var/lib/kolla/config_files/src-iscsid/*"
85 preserve_properties: true
96 image: {get_param: DockerNovaComputeIronicImage}
103 - {get_attr: [ContainersCommon, volumes]}
105 - /var/lib/kolla/config_files/nova_ironic.json:/var/lib/kolla/config_files/config.json:ro
106 - /var/lib/config-data/puppet-generated/nova/:/var/lib/kolla/config_files/src:ro
107 - /var/lib/config-data/puppet-generated/iscsid/:/var/lib/kolla/config_files/src-iscsid:ro
110 - /var/lib/nova/:/var/lib/nova
111 - /var/log/containers/nova:/var/log/nova
113 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
115 - name: create persistent directories
120 - /var/log/containers/nova
123 - name: Stop and disable nova-compute service
125 service: name=openstack-nova-compute state=stopped enabled=no