diff --git a/manifests/nodejs.pp b/manifests/nodejs.pp index 4b2d2717f04011f86bce40c30493578a277b647e..258a26971329956177a3aaf5433a838f4368d44b 100644 --- a/manifests/nodejs.pp +++ b/manifests/nodejs.pp @@ -2,11 +2,11 @@ class egg::nodejs () { package { 'nodejs': ensure => 'installed', + notify => Exec['install pm2'], } exec { 'install pm2': command => 'npm install pm2 -g', path => ['/bin','/usr/bin'], - refreshonly => true, unless => 'test -f /usr/bin/pm2', require => Package['nodejs'], }