heat_template_version: 2016-04-08

description: >
  MySQL service deployment using puppet

parameters:
  #Parameters not used EndpointMap
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json

outputs:
  role_data:
    description: Service MySQL using composable services.
    value:
      service_name: mysql
      config_settings:
        # The Galera package should work in cluster and
        # non-cluster modes based on the config file.
        # We set the package name here explicitly so
        # that it matches what we pre-install
        # in tripleo-puppet-elements.
        mysql::server::package_name: 'mariadb-galera-server'
        mysql::server::manage_config_file: true
        tripleo.mysql.firewall_rules:
          '104 mysql galera':
            dport:
              - 873
              - 3306
              - 4444
              - 4567
              - 4568
              - 9200
      step_config: |
        include ::tripleo::profile::base::database::mysql