1 heat_template_version: ocata
3 description: Fluentd client configured with Puppet
8 description: Mapping of service_name -> network name. Typically set
9 via parameter_defaults in the resource registry. This
10 mapping overrides those in ServiceNetMapDefaults.
18 Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
24 type: ./fluentd-base.yaml
26 EndpointMap: {get_param: EndpointMap}
27 ServiceNetMap: {get_param: ServiceNetMap}
28 DefaultPasswords: {get_param: DefaultPasswords}
31 type: OS::TripleO::LoggingConfiguration
35 description: Role data for the Fluentd client role.
37 service_name: fluentd_client
40 - get_attr: [FluentdBase, role_data, config_settings]
41 - tripleo::profile::base::logging::fluentd::fluentd_servers:
42 get_attr: [LoggingConfiguration, LoggingServers]
43 tripleo::profile::base::logging::fluentd::fluentd_filters:
46 $.data.filters.flatten().where($)
49 - get_attr: [LoggingConfiguration, LoggingDefaultFilters]
50 - get_attr: [LoggingConfiguration, LoggingExtraFilters]
51 tripleo::profile::base::logging::fluentd::fluentd_pos_file_path:
52 get_attr: [LoggingConfiguration, LoggingPosFilePath]
53 tripleo::profile::base::logging::fluentd::fluentd_use_ssl:
54 get_attr: [LoggingConfiguration, LoggingUsesSSL]
55 tripleo::profile::base::logging::fluentd::fluentd_ssl_certificate:
56 get_attr: [LoggingConfiguration, LoggingSSLCertificate]
57 tripleo::profile::base::logging::fluentd::fluentd_ssl_key:
58 get_attr: [LoggingConfiguration, LoggingSSLKey]
59 tripleo::profile::base::logging::fluentd::fluentd_ssl_key_passphrase:
60 get_attr: [LoggingConfiguration, LoggingSSLKeyPassphrase]
61 tripleo::profile::base::logging::fluentd::fluentd_shared_key:
62 get_attr: [LoggingConfiguration, LoggingSharedKey]
64 include ::tripleo::profile::base::logging::fluentd
66 - name: Check if fluentd_client is deployed
67 command: systemctl is-enabled fluentd
70 register: fluentd_client_enabled
71 - name: Check status of fluentd service
73 /usr/bin/systemctl show fluentd --property ActiveState |
75 when: fluentd_client_enabled.rc == 0
76 tags: step0,validation
77 - name: Stop fluentd service
79 when: fluentd_client_enabled.rc == 0
80 service: name=fluentd state=stopped
81 - name: Install fluentd package if it was disabled
83 yum: name=fluentd state=latest
84 when: fluentd_client_enabled.rc != 0