-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from ccin2p3/feature/custom_params
Feature: custom params
- Loading branch information
Showing
6 changed files
with
52 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# A config file for custom parameters not managed anywhere else | ||
class htcondor::config::custom_knobs( | ||
$custom_knobs = $htcondor::custom_knobs, | ||
$template_custom_knobs = $htcondor::template_custom_knobs, | ||
$condor_user = $htcondor::condor_user, | ||
$condor_group = $htcondor::condor_group, | ||
) | ||
{ | ||
if $custom_knobs != {} { | ||
file { '/etc/condor/config.d/60_custom_knobs.config': | ||
content => template($template_custom_knobs), | ||
require => Package['condor'], | ||
owner => $condor_user, | ||
group => $condor_group, | ||
mode => '0644', | ||
notify => Exec['/usr/sbin/condor_reconfig'], | ||
} | ||
} | ||
} | ||
|
||
# vim: ft=puppet |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<% if @custom_knobs.any? -%> | ||
<% @custom_knobs.each do |param, value| -%> | ||
<%=param -%> = <%=value %> | ||
<% end -%> | ||
<% end -%> |