diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-12-10 18:40:57 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-12-10 18:40:57 +0000 |
commit | 13df066349300cc0de896fddc2700b9c1b337001 (patch) | |
tree | f506ec5c9a88d64b62d4f0523e1241ab9934d80e | |
parent | 40b82ac3f4edc85f470fd1705cf4f8f0032c2698 (diff) | |
download | puppet-13df066349300cc0de896fddc2700b9c1b337001.tar puppet-13df066349300cc0de896fddc2700b9c1b337001.tar.gz puppet-13df066349300cc0de896fddc2700b9c1b337001.tar.bz2 puppet-13df066349300cc0de896fddc2700b9c1b337001.tar.xz puppet-13df066349300cc0de896fddc2700b9c1b337001.zip |
Move local_script define to mga-common module
-rw-r--r-- | manifests/defaults.pp | 12 | ||||
-rw-r--r-- | modules/mga-common/manifests/local_script.pp | 11 |
2 files changed, 11 insertions, 12 deletions
diff --git a/manifests/defaults.pp b/manifests/defaults.pp index 9273a627..c7b0dd85 100644 --- a/manifests/defaults.pp +++ b/manifests/defaults.pp @@ -29,15 +29,3 @@ User { Service { ensure => running, } - -define local_script($content, - $owner = 'root', - $group = 'root', - $mode = '0755') { - file { "/usr/local/bin/$name": - owner => $owner, - group => $group, - mode => $mode, - content => $content, - } -} diff --git a/modules/mga-common/manifests/local_script.pp b/modules/mga-common/manifests/local_script.pp new file mode 100644 index 00000000..0b8f4514 --- /dev/null +++ b/modules/mga-common/manifests/local_script.pp @@ -0,0 +1,11 @@ +define mga-common::local_script($content, + $owner = 'root', + $group = 'root', + $mode = '0755') { + file { "/usr/local/bin/$name": + owner => $owner, + group => $group, + mode => $mode, + content => $content, + } +} |