Skip to content

Commit ae59338

Browse files
committed
diff-so-fancy: just install the file instead of using NPM
1 parent 2e5f7a9 commit ae59338

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

Puppetfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ mod 'puppet-hiera',
1212
mod 'puppet-kmod', :latest
1313
mod 'puppet-letsencrypt', :latest
1414
mod 'puppet-logrotate', :latest
15-
mod 'puppet-nodejs', :latest
1615
mod 'puppet-postfix', :latest
1716
mod 'puppet-python', :latest
1817
mod 'puppet-r10k', :latest

data/common.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ packages_absent:
6767
- rdnssd
6868
- resolvconf
6969

70+
files:
71+
/usr/local/bin/diff-so-fancy:
72+
ensure: file
73+
mode: '0755'
74+
owner: root
75+
group: root
76+
source: https://github.com/so-fancy/diff-so-fancy/releases/download/v1.4.4/diff-so-fancy
77+
7078
apache::default_ssl_vhost: false
7179
apache::default_vhost: false
7280
apache::mod::ssl::reload_on_change: true
@@ -197,10 +205,6 @@ munin::node::plugins:
197205
checksum: sha256
198206
checksum_value: 5794598a673f181dd5033fc90f33f0e059c501152455ee5b190a4cc7b2a4cdd3
199207

200-
nodejs::manage_package_repo: false
201-
nodejs::manage_nodejs_package: false
202-
nodejs::npm_package_ensure: present
203-
204208
postfix::inet_interfaces: loopback-only
205209
# https://github.com/voxpupuli/puppet-postfix/pull/256
206210
postfix::mydestination: $myhostname, localhost.$mydomain, localhost

data/kernel/Linux.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ packages:
2424
- ndisc6
2525
- time
2626

27-
npm_packages:
28-
- diff-so-fancy
29-
3027
ini_settings:
3128
systemd disable CtrlAltDelBurstAction:
3229
path: /etc/systemd/system.conf

manifests/main.pp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@
2727
}
2828
}
2929

30-
lookup('npm_packages', Array[String], 'unique', []).each |String $pkg| {
31-
package { "npm_${pkg}":
32-
ensure => present,
33-
provider => 'npm',
34-
name => $pkg,
35-
}
36-
}
37-
3830
lookup('services', Hash, 'hash', {}).each |$key, $value| {
3931
service { $key:
4032
* => $value,

0 commit comments

Comments
 (0)