aboutsummaryrefslogtreecommitdiff
path: root/manifests/storedconfigs.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-22 17:29:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-22 17:29:21 -0300
commitd07b6344a8762a255bb895dcc0e6db1bf1ae0435 (patch)
treebb59130620d401fa510f274d2a48f5af48f32d95 /manifests/storedconfigs.pp
parentddd95e21523eee9cd441a9e9085c9a46cf2e9e26 (diff)
downloadpuppet-backupninja-d07b6344a8762a255bb895dcc0e6db1bf1ae0435.tar.gz
puppet-backupninja-d07b6344a8762a255bb895dcc0e6db1bf1ae0435.tar.bz2
Move storedconfig code to separate folders, trying to avoid warnings on masterless setup
Diffstat (limited to 'manifests/storedconfigs.pp')
-rw-r--r--manifests/storedconfigs.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/storedconfigs.pp b/manifests/storedconfigs.pp
new file mode 100644
index 0000000..899661c
--- /dev/null
+++ b/manifests/storedconfigs.pp
@@ -0,0 +1,10 @@
+class backupninja::storedconfigs {
+ Backupninja::Storedconfigs::Realize <<| tag == $::fqdn |>>
+
+ # this define realizes all needed resources for a hosted backup
+ define realize($host) {
+ User <<| tag == "backupninja-$host" |>>
+ File <<| tag == "backupninja-$host" |>>
+ Ssh_authorized_key <<| tag == "backupninja-$host" |>>
+ }
+}