From: Stephen Gran Date: Mon, 22 Feb 2010 00:35:02 +0000 (+0000) Subject: test classes X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9698ac16e7c372a59158f21f25aa2bbf8db0f020;p=mirror%2Fdsa-puppet.git test classes Signed-off-by: Stephen Gran --- diff --git a/modules/nagios/manifests/init.pp b/modules/nagios/manifests/init.pp index 13c0dc911..8a71d220d 100644 --- a/modules/nagios/manifests/init.pp +++ b/modules/nagios/manifests/init.pp @@ -2,4 +2,8 @@ class nagios { package { nagios-nrpe-server: ensure => installed; } + file { + "/tmp/test": + content => template("nagios/class-test.erb"); + } } diff --git a/modules/nagios/templates/class-test.erb b/modules/nagios/templates/class-test.erb new file mode 100644 index 000000000..ec52f9680 --- /dev/null +++ b/modules/nagios/templates/class-test.erb @@ -0,0 +1,4 @@ +<% classes.each do |klass| -%> +The class <%= klass %> is defined +<% end -%> +