aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mirror/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mirror/manifests/init.pp')
-rw-r--r--modules/mirror/manifests/init.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/mirror/manifests/init.pp b/modules/mirror/manifests/init.pp
new file mode 100644
index 00000000..6adce9e1
--- /dev/null
+++ b/modules/mirror/manifests/init.pp
@@ -0,0 +1,22 @@
+class mirror {
+
+ file { "update_timestamp":
+ path => "/home/mirror/bin/update_timestamp",
+ ensure => present,
+ owner => mirror,
+ group => mirror,
+ mode => 755,
+ content => template("mirror/update_timestamp")
+ }
+
+ file { "mirror.cron":
+ path => "/etc/cron.d/mirror",
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ require => File["update_timestamp"],
+ content => template("mirror/cron")
+ }
+
+}