summaryrefslogtreecommitdiff
path: root/manifests/yaml.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-10-02 10:28:01 +0200
committermh <mh@immerda.ch>2013-10-02 10:28:01 +0200
commit9da000c6511e85e030e431b7d951d325c2c98681 (patch)
treef1e6d4988d690b63b70f60b857ef86c64f442c28 /manifests/yaml.pp
parentf7ac3063564d4560f5a80ea45e84011b127b0b62 (diff)
Improve the overall experience of the module.
- Extending the README - Add a trocla::yaml class for a simple quickstart. - Fixes issues: #4 & #5
Diffstat (limited to 'manifests/yaml.pp')
-rw-r--r--manifests/yaml.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/yaml.pp b/manifests/yaml.pp
new file mode 100644
index 0000000..4650a5a
--- /dev/null
+++ b/manifests/yaml.pp
@@ -0,0 +1,22 @@
+class trocla::yaml(
+ $password_length = 16
+ $random_passwords = true,
+ $data_file = "{$settings::server_datadir}/trocla_data.yaml",
+) {
+
+ class{'trocla::config':
+ password_length => $password_length,
+ random_passwords => $random_passwords,
+ adapter => 'YAML',
+ adapter_options => {
+ file => $data_file,
+ },
+ }
+
+ file{$data_file:
+ ensure => file,
+ owner => puppet,
+ group => 0,
+ mode => 0600;
+ }
+}