Index: modules/customservice/manifests/init.pp |
=================================================================== |
rename from modules/discourse/manifests/customservice.pp |
rename to modules/customservice/manifests/init.pp |
--- a/modules/discourse/manifests/customservice.pp |
+++ b/modules/customservice/manifests/init.pp |
@@ -1,20 +1,20 @@ |
-define discourse::customservice( |
+define customservice( |
$command, |
$user, |
$env = [], |
$workdir = undef |
) { |
file {"/etc/init.d/$name": |
ensure => present, |
owner => root, |
group => root, |
mode => '0755', |
- content => template('discourse/init-customservice.erb'), |
+ content => template('customservice/init-customservice.erb'), |
notify => Service["$name"] |
} |
service {$name: |
ensure => running, |
hasstatus => true, |
enable => true, |
require => File["/etc/init.d/$name"] |