summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-10-02 11:05:34 +0200
committermh <mh@immerda.ch>2013-10-02 11:05:34 +0200
commit2446ca831ff1a8609333d820a920a37e842ac852 (patch)
tree36c6e0bc236190e525e0188bb7d7da4fd192038b
parentdb287f27fc099659ecb8f84a20259519321d6993 (diff)
linting
-rw-r--r--manifests/dependencies.pp3
-rw-r--r--manifests/yaml.pp14
2 files changed, 15 insertions, 2 deletions
diff --git a/manifests/dependencies.pp b/manifests/dependencies.pp
index 0b2bb73..9a4be15 100644
--- a/manifests/dependencies.pp
+++ b/manifests/dependencies.pp
@@ -1,3 +1,6 @@
+# manage trocla's dependencies
+#
+# [*provider*] How to install the dependencies.
class trocla::dependencies(
$provider = gem,
) {
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';
}
}