Puppet Class: profile::wmcs::spicerack_config

Defined in:
modules/profile/manifests/wmcs/spicerack_config.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • gitlab_token (String[1]) (defaults to: lookup('profile::wmcs::spicerack_config::gitlab_token', {'default_value' => 'secret_to_override'}))


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

class profile::wmcs::spicerack_config(
  String[1] $gitlab_token = lookup('profile::wmcs::spicerack_config::gitlab_token', {'default_value' => 'secret_to_override'}),
) {
    $config = {
      gitlab_token => $gitlab_token,
    }
    file { '/etc/spicerack/wmcs.yaml':
      ensure  => present,
      owner   => 'root',
      group   => 'root',
      mode    => '0444',
      content => to_yaml($config),
    }
}