From 4841d4d9cfd9dec907c400754db7e3fc53e50799 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 4 Apr 2021 11:40:08 -0300 Subject: Fix: use distro packages --- manifests/init.pp | 24 ++++++++++++++---------- 1 file 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'], } } -- cgit v1.2.3