aboutsummaryrefslogtreecommitdiff
path: root/bigtop_toolchain
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@apache.org>2015-02-23 23:58:46 -0800
committerEvans Ye <evansye@apache.org>2015-03-01 18:46:22 +0000
commit82f2ebf3178973863c5eeeef2fdd51266bbbf8cc (patch)
tree7b2da951bbf2d5fb0d163513968b8f65c75424a4 /bigtop_toolchain
parent14fa7b0b55254a434ffd5b2483ad4d5c92bdd603 (diff)
downloadbigtop-odpi-82f2ebf3178973863c5eeeef2fdd51266bbbf8cc.tar.gz
BIGTOP-1693. Puppet stdlib should be automatically installed by toolchain
Signed-off-by: Evans Ye <evansye@apache.org>
Diffstat (limited to 'bigtop_toolchain')
-rw-r--r--bigtop_toolchain/manifests/puppet-modules.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/bigtop_toolchain/manifests/puppet-modules.pp b/bigtop_toolchain/manifests/puppet-modules.pp
new file mode 100644
index 00000000..4828c4a9
--- /dev/null
+++ b/bigtop_toolchain/manifests/puppet-modules.pp
@@ -0,0 +1,24 @@
+# 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::puppet-modules {
+
+ exec { 'install-puppet-stdlib':
+ path => '/usr/bin:/bin',
+ command => 'puppet module install puppetlabs-stdlib',
+ onlyif => "test `facter puppetversion |cut -d'.' -f 1` -ge 3",
+ creates => '/etc/puppet/modules/stdlib',
+ }
+}