LEFT | RIGHT |
1 # == Class: nodejs | 1 # == Class: nodejs |
2 # | 2 # |
3 # Install nodejs package from source | 3 # Install nodejs package from NodeSource |
4 # | 4 # |
5 # == Parameters: | 5 # == Parameters: |
6 # | 6 # |
7 # [*package*] | 7 # [*package*] |
8 # Overwrite the default package options, to fine-tune the target version (i.e. | 8 # Overwrite the default package options, to fine-tune the target version (i.e. |
9 # ensure => 'latest') or remove nodejs (ensure => 'absent' or 'purged') | 9 # ensure => 'latest') or remove nodejs (ensure => 'absent' or 'purged') |
10 # | 10 # |
11 # [*key*] | 11 # [*key*] |
12 # Overwrite the default apt::key used (given Class['apt'] is defined). | 12 # Overwrite the default apt::key used (given Class['apt'] is defined). |
13 # | 13 # |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 }, $source)) | 65 }, $source)) |
66 | 66 |
67 Apt::Source[$title] <- Apt::Key[$title] | 67 Apt::Source[$title] <- Apt::Key[$title] |
68 Apt::Source[$title] -> Package[$title] | 68 Apt::Source[$title] -> Package[$title] |
69 | 69 |
70 ensure_resources('nodejs::package', $packages, { | 70 ensure_resources('nodejs::package', $packages, { |
71 ensure => 'present', | 71 ensure => 'present', |
72 }) | 72 }) |
73 } | 73 } |
74 | 74 |
LEFT | RIGHT |