aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/monitor
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-18 14:17:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-18 14:17:05 -0300
commitd09f347afc0a99481673f227f83864d06206add6 (patch)
tree867eba743474f4d460ade4f2b5e04903f6e4ad17 /manifests/subsystem/monitor
parent94529422ec6736f9beaa1dc44540645b28925101 (diff)
downloadpuppet-nodo-d09f347afc0a99481673f227f83864d06206add6.tar.gz
puppet-nodo-d09f347afc0a99481673f227f83864d06206add6.tar.bz2
Adds nodo::subsystem::monitor::interface
Diffstat (limited to 'manifests/subsystem/monitor')
-rw-r--r--manifests/subsystem/monitor/interface.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/subsystem/monitor/interface.pp b/manifests/subsystem/monitor/interface.pp
new file mode 100644
index 0000000..102f5b2
--- /dev/null
+++ b/manifests/subsystem/monitor/interface.pp
@@ -0,0 +1,14 @@
+define nodo::subsystem::monitor::interface(
+ $ensure = 'present'
+ $hour = "*",
+ $minute = "*",
+)
+{
+ cron { "ifcheck-${name}":
+ command => "/usr/local/sbin/ifcheck ${name}",
+ user => 'root',
+ hour => $hour,
+ minute => $minute,
+ ensure => $ensure,
+ }
+}