1 heat_template_version: ocata
4 OpenStack containerized Nova Compute service
9 default: 'tripleoupstream'
11 DockerNovaComputeImage:
13 default: 'centos-binary-nova-compute:latest'
17 description: Mapping of service_name -> network name. Typically set
18 via parameter_defaults in the resource registry. This
19 mapping overrides those in ServiceNetMapDefaults.
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
34 type: ../../puppet/services/nova-compute.yaml
36 EndpointMap: {get_param: EndpointMap}
37 ServiceNetMap: {get_param: ServiceNetMap}
38 DefaultPasswords: {get_param: DefaultPasswords}
42 description: Role data for the Nova Compute service.
44 service_name: {get_attr: [NovaComputeBase, role_data, service_name]}
45 config_settings: {get_attr: [NovaComputeBase, role_data, config_settings]}
46 step_config: &step_config
47 get_attr: [NovaComputeBase, role_data, step_config]
49 config_volume: nova_libvirt
50 puppet_tags: nova_config,nova_paste_api_ini
51 step_config: *step_config
52 config_image: &nova_compute_image
55 - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
57 /var/lib/kolla/config_files/nova-compute.json:
58 command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
60 - dest: /etc/nova/nova.conf
63 source: /var/lib/kolla/config_files/src/etc/nova/nova.conf
64 - dest: /etc/nova/rootwrap.conf
67 source: /var/lib/kolla/config_files/src/etc/nova/rootwrap.conf
69 # FIXME: run discover hosts here
72 image: *nova_compute_image
78 - /var/lib/kolla/config_files/nova-compute.json:/var/lib/kolla/config_files/config.json:ro
79 - /var/lib/config-data/nova_libvirt:/var/lib/kolla/config_files/src:ro
81 - /etc/iscsi:/etc/iscsi
82 - /etc/localtime:/etc/localtime:ro
83 - /lib/modules:/lib/modules:ro
85 - /var/lib/nova:/var/lib/nova
86 - /var/lib/libvirt:/var/lib/libvirt
88 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
90 - name: create /var/lib/libvirt
92 path: /var/lib/libvirt
95 - name: Stop and disable nova-compute service
97 service: name=nova-compute state=stopped enabled=no