Commit cdb1ee3a authored by Scotty Logan's avatar Scotty Logan
Browse files

added start script and /app directory

parent 06777140
Loading
Loading
Loading
Loading

files/start

0 → 100755
+3 −0
Original line number Diff line number Diff line
#! /bin/bash

cd /app && node app.js
+14 −0
Original line number Diff line number Diff line
@@ -8,5 +8,19 @@ class nodejs (
    ensure  => $version,
  }

  file { '/app':
    ensure => directory,
    owner  => 'root',
    group  => 'root',
    mode   => '0755',
  }
  
  file { '/start':
    ensure => file,
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    source => "puppet:///modules/${module_name}/start"
  }
}