File tree 3 files changed +33
-4
lines changed
user-modules/nodejs/manifests
3 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ mod 'wordpress',
15
15
mod 'vsftpd' ,
16
16
:git => 'git://github.com/thias/puppet-vsftpd.git'
17
17
18
- mod 'nodejs' ,
19
- :git => 'git://github.com/puppetlabs/puppetlabs-nodejs.git'
18
+ # mod 'nodejs',
19
+ # :git => 'git://github.com/puppetlabs/puppetlabs-nodejs.git'
20
20
21
21
# mod 'puppetlabs/stdlib'
22
22
Original file line number Diff line number Diff line change 6
6
include user
7
7
include swap
8
8
include php
9
- include nodejs # install nodejs
10
-
9
+
10
+ # install node js
11
+ class {'nodejs' :}
12
+
11
13
# Install apache
12
14
class {'apache' :
13
15
mpm_module => prefork,
Original file line number Diff line number Diff line change
1
+ class nodejs ($package = ' nodejs' , $global_packages = []) {
2
+
3
+ if ($operatingsystem == ' Ubuntu' ) {
4
+ apt::source {'nodejs' :
5
+ before => Package[$package ],
6
+ location => ' http://ppa.launchpad.net/chris-lea/node.js/ubuntu' ,
7
+ release => ' raring' ,
8
+ repos => ' main' ,
9
+ key => ' C7917B12' ,
10
+ }
11
+ }
12
+
13
+ package{$package:
14
+ ensure => present ,
15
+ name => $package ,
16
+ }
17
+
18
+ package{$global_packages:
19
+ ensure => present ,
20
+ provider => npm,
21
+ }
22
+
23
+ package {'npm' :
24
+ ensure => latest,
25
+ provider => npm,
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments