diff options
author | Luke Kanies <luke@madstop.com> | 2007-12-31 14:37:03 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-12-31 14:37:03 -0600 |
commit | 33e319a8be8e35fbe4a9ecb7e3185453b8239a83 (patch) | |
tree | 15cb3788a9a3c783463e2cc129a7cf03c77498a0 /lib/puppet/type/nagios_timeperiod.rb | |
parent | 68cde4f1babe3ebf61ffe215c6328faf7818d40f (diff) | |
download | puppet-33e319a8be8e35fbe4a9ecb7e3185453b8239a83.tar.gz puppet-33e319a8be8e35fbe4a9ecb7e3185453b8239a83.tar.xz puppet-33e319a8be8e35fbe4a9ecb7e3185453b8239a83.zip |
Added builtin support for all Nagios resource types.
I use Naginator to parse and generate the files, with
ParsedFile to handle record management and the like.
Note that each resource type itself is just a call to
a Factory method, since everything is just based on Naginator.
Given that, all of the tests are in a single unit/ral/types/nagios.rb
file, since I used a factory to generate them, too. This is probably
either unnecessary or insufficient, but it's as far as I'm
willing to go in testing them, and it did actually catch a few
bugs.
Diffstat (limited to 'lib/puppet/type/nagios_timeperiod.rb')
-rw-r--r-- | lib/puppet/type/nagios_timeperiod.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/type/nagios_timeperiod.rb b/lib/puppet/type/nagios_timeperiod.rb new file mode 100644 index 000000000..25a06d3ed --- /dev/null +++ b/lib/puppet/type/nagios_timeperiod.rb @@ -0,0 +1,3 @@ +require 'puppet/util/nagios_maker' + +Puppet::Util::NagiosMaker.create_nagios_type :timeperiod |