-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change makes tftp directories lazy. It does that by making the parameters undef by default and determine them if tftp is actually included. The main motivation is that f849d12 changed the tftp module. Prior to it, the logic was duplicated. With that change, it became dynamic which also made it a hard dependency. Technically it already was since it's always been listed in metadata.json. However, it functioned without it if tftp was false. With this change it really becomes optional.
- Loading branch information
Showing
8 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
# Default parameters for foreman_proxy::plugin::discovery | ||
# @api private | ||
class foreman_proxy::plugin::discovery::params { | ||
include foreman_proxy::params | ||
|
||
$install_images = false | ||
$tftp_root = $foreman_proxy::params::tftp_root | ||
$tftp_root = lookup('tftp::root') | ||
$source_url = 'http://downloads.theforeman.org/discovery/releases/latest/' | ||
$image_name = 'fdi-image-latest.tar' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
# TFTP management | ||
:enabled: <%= @module_enabled %> | ||
:tftproot: <%= scope.lookupvar("foreman_proxy::tftp_root") %> | ||
:tftproot: <%= scope.lookupvar("foreman_proxy::module::tftp::tftproot") %> | ||
# Defines the TFTP Servername to use, overrides the name in the subnet declaration | ||
<%= '#' if [nil, :undefined, :undef].include?(scope.lookupvar("foreman_proxy::tftp_servername")) %>:tftp_servername: <%= scope.lookupvar("foreman_proxy::tftp_servername") %> |