Puppet Class: profile::maps::cassandra

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

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • cassandra_enable (Boolean) (defaults to: lookup('profile::maps::cassandra::enable', { 'default_value' => true }))
  • cassandra_kartotherian_pass (String) (defaults to: lookup('profile::maps::cassandra::kartotherian_pass'))
  • cassandra_tilerator_pass (String) (defaults to: lookup('profile::maps::cassandra::tilerator_pass'))
  • cassandra_tileratorui_pass (String) (defaults to: lookup('profile::maps::cassandra::tileratorui_pass'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/maps/cassandra.pp', line 2

class profile::maps::cassandra(
    Boolean $cassandra_enable           = lookup('profile::maps::cassandra::enable', { 'default_value' => true }),
    String $cassandra_kartotherian_pass = lookup('profile::maps::cassandra::kartotherian_pass'),
    String $cassandra_tilerator_pass    = lookup('profile::maps::cassandra::tilerator_pass'),
    String $cassandra_tileratorui_pass  = lookup('profile::maps::cassandra::tileratorui_pass'),
){

    if $cassandra_enable {
        require profile::cassandra::single_instance

        file { '/usr/local/bin/maps-grants.cql':
            owner   => 'root',
            group   => 'root',
            mode    => '0400',
            content => template('profile/maps/grants.cql.erb'),
        }
    }
}