Defined Type: profile::maps::tilerator_user

Defined in:
modules/profile/manifests/maps/tilerator_user.pp

Overview

Create postgresql users for tilerator

This is extracted to reduce a bit of duplication and to be used as a pseudo loop with `create_resources`. It might make sense to refactor this once we activate puppet future parser. It might also make sense to expose higher level abstractions in the postgresql module itself.

Parameters:

  • ip_address (Any)
  • password (Any)


9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/maps/tilerator_user.pp', line 9

define profile::maps::tilerator_user (
    $ip_address,
    $password,
) {
    postgresql::user { "tilerator@${title}":
        user     => 'tilerator',
        password => $password,
        database => 'all',
        cidr     => "${ip_address}/32",
    }
}