Skip to content

Commit

Permalink
support upgraded versions to bundled plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Warren committed Sep 24, 2014
1 parent ad341c3 commit 43e1ca4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@
}
}

# create a pinned file if the plugin has a .jpi extension
# to override the builtin module versions
exec { "create-pinnedfile-${name}" :
command => "touch ${plugin_dir}/${name}.jpi.pinned",
cwd => $plugin_dir,
require => File[$plugin_dir],
path => ['/usr/bin', '/usr/sbin', '/bin'],
onlyif => "test -f ${plugin_dir}/${name}.jpi -a ! -f ${plugin_dir}/${name}.jpi.pinned",
before => Exec["download-${name}"],
}

exec { "download-${name}" :
command => "rm -rf ${name} ${name}.* && wget --no-check-certificate ${base_url}${plugin}",
cwd => $plugin_dir,
Expand Down

0 comments on commit 43e1ca4

Please sign in to comment.