Puppet Class: ckan::install::nodejs
  
  
  
    - Defined in:
- 
      manifests/install/nodejs.pp
    
 
  Summary
  Install Node and NPM (which comes with Node)
Overview
  
  
    
      | 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | # File 'manifests/install/nodejs.pp', line 3
class ckan::install::nodejs {
  # Install Node and NPM (which comes with Node)
  # problems with Ubuntu 12.04
  if $facts['os']['name'] == 'Ubuntu' and $facts['os']['release']['full'] == '12.04' {
    # less requires a compile of the css before changes take effect.
    exec { 'Install Less and Nodewatch':
      command => "/usr/bin/curl -sL https://deb.nodesource.com/setup | bash &&\
/usr/bin/apt-get update &&\
/usr/bin/apt-get install nodejs &&\
/usr/bin/npm install less nodewatch",
      cwd     => '/usr/lib/ckan/default/src/ckan',
      creates => '/usr/lib/ckan/default/src/ckan/bin/less',
    }
  } else {
    contain nodejs
  }
} |