Skip to content

Commit 966ddfa

Browse files
author
Justin Donaldson
committed
modified supervisor service module to enable extended requires, and fixed version incompatibility
1 parent 4b46cee commit 966ddfa

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

LICENSE

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Copyright (c) 2010, Digg, Inc.
22
All rights reserved.
33

4+
Copyright (c) 2011, BigML, Inc.
5+
- updated module to work with current puppet version
6+
- extended supervisor template to work with extra required types
7+
8+
49
Redistribution and use in source and binary forms, with or without
510
modification, are permitted provided that the following conditions are
611
met:

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Puppet module for configuring the 'supervisor' daemon control
2-
utility. Currently only tested on Debian.
2+
utility. Currently only tested on Debian and Ubuntu 10.04.
33

44
Install into your <puppet module_path>/supervisor
55

manifests/service.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
define supervisor::service(
22
$enable=true, $ensure=running,
3+
$requires=[],
34
$command, $numprocs=1, $priority=999,
45
$autorestart="unexpected",
56
$startsecs=1, $retries=3, $exitcodes="0,2",
@@ -57,7 +58,8 @@
5758
start => "/usr/bin/supervisorctl start ${name}",
5859
status => "/usr/bin/supervisorctl status | awk '/^${name}/{print \$2}' | grep '^RUNNING$'",
5960
stop => "/usr/bin/supervisorctl stop ${name}",
60-
require => [ Package["supervisor"], Service["supervisor"] ];
61+
require => [ Package["supervisor"], Service["supervisor"] ],
62+
require => $requires;
6163
}
6264
}
6365
}

metadata.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"license": "BSD",
33
"author": "Paul Lathrop <[email protected]>",
4-
"maintainer": "Paul Lathrop <[email protected]>",
5-
"version": "1.0",
6-
"source": "git://github.com/plathrop/puppet-module-supervisor.git",
7-
"project_page": "http://github.com/plathrop/puppet-module-supervisor",
8-
"puppetversion": "0.25",
4+
"maintainer": "Justin Donaldson <[email protected]>",
5+
"version": "1.1",
6+
"source": "git://github.com/bigmlcom/puppet-module-supervisor.git",
7+
"project_page": "http://github.com/bigmlcom/puppet-module-supervisor",
8+
"puppetversion": "2.6",
99
"summary": "Puppet module for configuring the supervisor daemon tool."
1010
}

0 commit comments

Comments
 (0)