summaryrefslogtreecommitdiff
path: root/manifests/yaml.pp
blob: 8ac007143abde039f3b81a1d276b995330f4f863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# A class for an eady start with trocla.
# This will install and configure trocla with the
# default yaml storage.
#
# [*data_file*]        Where to store the passwords.
#                      Default: /var/lib/trocla/trocla_data.yaml
#                      This should be managed using the package.
class trocla::yaml(
  $data_file = '/var/lib/trocla/trocla_data.yaml',
) {

  class{'trocla::config':
    store         => 'moneta',
    store_options => {
      adapter         => 'YAML',
      adapter_options => {
        file => $data_file,
      },
    },
  }

  file{$data_file:
    ensure  => file,
    owner   => puppet,
    group   => 0,
    mode    => '0600';
  }
}