diff --git a/README.md b/README.md index 6a0e218..6e6ce27 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,11 @@ Note: Only Debian and RedHat families have an init script currently. ```ruby supervisord::program { 'myprogram': command => 'command --args', - priority => '100' + priority => '100', environment => { - HOME => '/home/myuser', - PATH => '/bin:/sbin:/usr/bin:/usr/sbin', - SECRET => 'mysecret' + 'HOME' => '/home/myuser', + 'PATH' => '/bin:/sbin:/usr/bin:/usr/sbin', + 'SECRET' => 'mysecret' } } ``` @@ -54,7 +54,7 @@ You may also specify a variable for a hiera lookup to retreive your environment ```ruby supervisord::program { 'myprogram': command => 'command --args', - priority => '100' + priority => '100', env_var => 'my_common_envs' } ``` diff --git a/tests/group.pp b/tests/group.pp index c959102..3d34046 100644 --- a/tests/group.pp +++ b/tests/group.pp @@ -1,4 +1,4 @@ -supervisord::group { 'test': - priority => '100', - programs => ['program1', 'program2', 'program3'] +supervisord::group { 'mygroup': + priority => 100, + program => ['program1', 'program2', 'program3'] } \ No newline at end of file diff --git a/tests/program.pp b/tests/program.pp index ce37520..6c789c9 100644 --- a/tests/program.pp +++ b/tests/program.pp @@ -1,11 +1,9 @@ -supervisord::program { 'test': - command => '/testcmd', - process_name => '%(process_num)s', - numprocs => '3', - priority => '100', - environment => { - env1 => 'env1', - env2 => 'env2', - env3 => 'env3' +supervisord::program { 'myprogram': + command => 'command --args', + priority => '100', + environment => { + 'HOME' => '/home/myuser', + 'PATH' => '/bin:/sbin:/usr/bin:/usr/sbin', + 'SECRET' => 'mysecret' } } \ No newline at end of file