Skip to content
Snippets Groups Projects
Commit fd2110ce authored by Nils Olof Paulsson's avatar Nils Olof Paulsson
Browse files

fix

parent b18595ee
No related branches found
No related tags found
2 merge requests!2Test,!1Devel
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
class egg::nodejs () { class egg::nodejs () {
package { 'nodejs': package { 'nodejs':
ensure => 'installed', ensure => 'installed',
notify => Exec['install pm2'],
} }
exec { 'install pm2': exec { 'install pm2':
command => 'npm install pm2 -g', command => 'npm install pm2 -g',
path => ['/bin','/usr/bin'], path => ['/bin','/usr/bin'],
refreshonly => true,
unless => 'test -f /usr/bin/pm2', unless => 'test -f /usr/bin/pm2',
require => Package['nodejs'], require => Package['nodejs'],
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment