diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-04-04 11:40:08 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-04-04 11:40:08 -0300 |
commit | 4841d4d9cfd9dec907c400754db7e3fc53e50799 (patch) | |
tree | 6ce7a67bf2efcc682614d245268a60f6c6352f8c | |
parent | 937359dcf7f9c8d34d5b63b18cd0f76e7c8733ac (diff) | |
download | puppet-nodejs-4841d4d9cfd9dec907c400754db7e3fc53e50799.tar.gz puppet-nodejs-4841d4d9cfd9dec907c400754db7e3fc53e50799.tar.bz2 |
-rw-r--r-- | manifests/init.pp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 6ac115d..3b0c02b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,7 +1,7 @@ # See https://linuxconfig.org/how-to-install-nodejs-on-debian-9-stretch-linux class nodejs { file { '/etc/apt/trusted.gpg.d/nodesource.gpg': - ensure => present, + ensure => absent, mode => '0644', owner => 'root', group => 'root', @@ -9,22 +9,26 @@ class nodejs { } file { '/usr/local/sbin/setup-nodejs-6.x': - ensure => present, + ensure => absent, mode => '0755', owner => 'root', group => 'root', source => 'puppet:///modules/nodejs/setup_6.x.sh', } - exec { 'setup-nodejs-6.x': - command => '/usr/local/sbin/setup-nodejs-6.x', - user => 'root', - creates => '/etc/apt/sources.list.d/nodesource.list', - require => File['/etc/apt/trusted.gpg.d/nodesource.gpg', '/usr/local/sbin/setup-nodejs-6.x' ], - } + #exec { 'setup-nodejs-6.x': + # command => '/usr/local/sbin/setup-nodejs-6.x', + # user => 'root', + # creates => '/etc/apt/sources.list.d/nodesource.list', + # require => File['/etc/apt/trusted.gpg.d/nodesource.gpg', '/usr/local/sbin/setup-nodejs-6.x' ], + #} - package { [ 'nodejs', 'build-essential', 'libssl-dev' ]: + package { [ + 'nodejs', + #'build-essential', + #'libssl-dev' + ]: ensure => present, - require => Exec['setup-nodejs-6.x'], + #require => Exec['setup-nodejs-6.x'], } } |