Defined Type: profile::mariadb::section

Defined in:
modules/profile/manifests/mariadb/section.pp

Overview

Title should be the section name

Parameters:

  • section (Profile::Mariadb::Valid_section) (defaults to: $title)
  • mention_alias (Boolean) (defaults to: false)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'modules/profile/manifests/mariadb/section.pp', line 2

define profile::mariadb::section(
    Profile::Mariadb::Valid_section $section = $title,
    Boolean $mention_alias = false,
) {
    $alias = $mention_alias ? {
        true => " (alias: mysql.${title})",
        false => '',
    }
    # Add the db section to the motd, directly after the system::role line.
    motd::script { "db-section-${title}":
        priority => 6,
        content  => "#!/bin/sh\necho 'DB section ${title}${alias}'\n",
    }
}