summaryrefslogtreecommitdiff
path: root/manifests/yaml.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/yaml.pp')
-rw-r--r--manifests/yaml.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/yaml.pp b/manifests/yaml.pp
index 8b05135..dc20c2e 100644
--- a/manifests/yaml.pp
+++ b/manifests/yaml.pp
@@ -1,7 +1,17 @@
+# A class for an eady start with trocla.
+# This will install and configure trocla with the
+# default yaml storage.
+#
+# [*password_length*] The default length of new passwords: 16
+# [*random_passwords*] Whether trocla should generate random
+# passwords or not. Default: true
+# [*data_file*] Where to store the passwords.
+# Default: {$settings::server_datadir}/trocla_data.yaml"
+# This will likely be: /var/lib/puppet/server_data/trocla_data.yaml
class trocla::yaml(
$password_length = 16,
$random_passwords = true,
- $data_file = "{$settings::server_datadir}/trocla_data.yaml",
+ $data_file = "${settings::server_datadir}/trocla_data.yaml",
) {
class{'trocla::config':
@@ -17,6 +27,6 @@ class trocla::yaml(
ensure => file,
owner => puppet,
group => 0,
- mode => 0600;
+ mode => '0600';
}
}