Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bigtop_toolchain/manifests/installer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
include bigtop_toolchain::maven
include bigtop_toolchain::ant
include bigtop_toolchain::gradle
include bigtop_toolchain::node
include bigtop_toolchain::protobuf
include bigtop_toolchain::packages
include bigtop_toolchain::python
Expand Down
38 changes: 38 additions & 0 deletions bigtop_toolchain/manifests/node.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

class bigtop_toolchain::node {
case $architecture {
/amd64|x86_64/ : { $arch = "x64" }
'ppc64le' : { $arch = "ppc64le" }
'aarch64' : { $arch = "arm64" }
}
$node_version = "16.20.2"
$node_name = "node-v${node_version}-linux-$arch"
$node_dl_url = 'https://nodejs.org/dist/v$node_version/'

exec { "get node":
command => "/usr/bin/wget -O - https://nodejs.org/dist/v${node_version}/${node_name}.tar.gz | /bin/tar xzf -",
cwd => "/usr/local",
unless => "/usr/bin/test -x /usr/local/${node_name}/bin/npm",
}

file { "/usr/local/node":
ensure => link,
target => "/usr/local/${node_name}",
require => Exec["get node"],
}

}
3 changes: 2 additions & 1 deletion bigtop_toolchain/templates/jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export MAVEN_HOME=/usr/local/maven
export JAVA_HOME=<%= @javahome %>
export ANT_HOME=/usr/local/ant
export GRADLE_HOME=/usr/local/gradle
export PATH=$MAVEN_HOME/bin:$ANT_HOME/bin:$GRADLE_HOME/bin:$PATH
export NODE_HOME=/usr/local/node
export PATH=$MAVEN_HOME/bin:$ANT_HOME/bin:$GRADLE_HOME/bin:$NODE_HOME/bin:$PATH

export GRADLE_OPTS="-Dorg.gradle.daemon=true"