Heat templates for deploying OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tripleo-heat-templates/docker/services/logging/files/nova-placement.yaml

46 lines
1.5 KiB

heat_template_version: pike
description: >
Template for nova-placement's logging to files
parameters:
DockerNovaPlacementImage:
description: image
type: string
outputs:
config_settings:
description: Extra hieradata needed to log to files in the host.
value: null
volumes:
description: The volumes needed to log to files in the host.
value: &nova_placement_volumes
- /var/log/containers/nova:/var/log/nova
- /var/log/containers/httpd/nova-placement:/var/log/httpd
docker_config:
description: Extra containers needed for logging to files in the host.
value:
step_2:
nova_placement_init_log:
start_order: 1
image: {get_param: DockerNovaPlacementImage}
user: root
command: ['/bin/bash', '-c', 'chown -R nova:nova /var/log/nova']
volumes: *nova_placement_volumes
host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host.
value:
- name: create persistent logs directory
file:
path: "{{ item }}"
state: directory
with_items:
- /var/log/containers/nova
- /var/log/containers/httpd/nova-placement
- name: nova logs readme
copy:
dest: /var/log/nova/readme.txt
content: |
Log files from nova containers can be found under
/var/log/containers/nova and /var/log/containers/httpd/nova-*.
ignore_errors: true