Skip to content

Commit

Permalink
Added property script_ext for: File extensions of Userparameters scri…
Browse files Browse the repository at this point in the history
…pts #97
  • Loading branch information
Werner Dijkerman committed Jun 7, 2015
1 parent 61ddbb8 commit 3d69b71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/userparameters.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# [*script*]
# Low level discovery (LLD) script.
#
# [*script_ext*]
# The script extention. Should be started with the dot. Like: .sh .bat .py
#
# [*template*]
# When you use exported resources (when manage_resources is set to true on other components)
# you'll can add the name of the template which correspondents with the 'content' or
Expand Down Expand Up @@ -53,6 +56,7 @@
$source = '',
$content = '',
$script = '',
$script_ext = '',
$template = '',
$script_dir = '/usr/bin',
) {
Expand Down Expand Up @@ -83,7 +87,7 @@
}

if $script != '' {
file { "${script_dir}/${name}":
file { "${script_dir}/${name}${script_ext}":
ensure => present,
owner => 'zabbix',
group => 'zabbix',
Expand Down

0 comments on commit 3d69b71

Please sign in to comment.