Skip to content
Snippets Groups Projects
Commit be4e7e63 authored by Karl Kornel's avatar Karl Kornel
Browse files

Add new class fact::common, to hold common facts.

We also include fact::common in the fact type, to make sure it's loaded.
parent adef6a19
No related branches found
No related tags found
No related merge requests found
Unreleased
Created a new class, fact::common, to hold common facts.
Clients should `include fact::common` in their defaults. (akkornel)
release/002.004 (2015-07-26)
......
# fact::common contains common facts. It is a class, so it can be included
# multiple times but will only be compiled once.
# Users of this shared module should `include fact::common` in their defaults
# as a safety measure. That being said, the fact type does include this class,
# so clients which define at least one custom fact should be fine.
class fact::common {
# Make sure we have the basic sufact directory
include fact::files
# Now, let's start populating some common facts!
}
......@@ -13,6 +13,7 @@ define fact(
$value = '',
) {
include fact::files
include fact::common
if ($ensure == 'present') and ($value == '') {
fail("No value provided for ${name} fact")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment