/[adm]/puppet/modules/mga_common/manifests/local_script.pp
ViewVC logotype

Contents of /puppet/modules/mga_common/manifests/local_script.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3254 - (show annotations) (download)
Wed Jun 19 19:15:59 2013 UTC (10 years, 9 months ago) by boklm
File size: 427 byte(s)
Rename mga-common module to mga_common.

New puppet version doesn't like modules with a - in their name.
1 define mga_common::local_script(
2 $content = undef,
3 $source = undef,
4 $owner = 'root',
5 $group = 'root',
6 $mode = '0755') {
7 $filename = "/usr/local/bin/$name"
8 file { $filename:
9 owner => $owner,
10 group => $group,
11 mode => $mode,
12 }
13 if ($source == undef) {
14 File[$filename] {
15 content => $content,
16 }
17 } else {
18 File[$filename] {
19 source => $source,
20 }
21 }
22 }

  ViewVC Help
Powered by ViewVC 1.1.30