From 5cc5122d7931e0588047c04f9a969673e4f3b33b Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 15 Dec 2014 12:18:48 +0100 Subject: [PATCH] puppet: Remove module cmmi No longer in use. refs #6842 --- .puppet/modules/cmmi/manifests/init.pp | 90 -------------------------- 1 file changed, 90 deletions(-) delete mode 100644 .puppet/modules/cmmi/manifests/init.pp diff --git a/.puppet/modules/cmmi/manifests/init.pp b/.puppet/modules/cmmi/manifests/init.pp deleted file mode 100644 index 128d00fc6..000000000 --- a/.puppet/modules/cmmi/manifests/init.pp +++ /dev/null @@ -1,90 +0,0 @@ -# Define: cmmi -# -# This module downloads, extracts, builds and installs tar.gz archives using -# wget, tar and the autotools stack. Build directory is always /usr/local/src. -# -# *Note* make sure to install build essentials before running cmmi. -# -# Parameters: -# [*url*] - fetch archive via wget from this url. -# [*output*] - filename to fetch the archive into. -# [*flags*] - configure options. -# [*creates*] - target directory the software will install to. -# [*make* ] - command to make and make install the software. -# [*make_timeout* ] - timeout for the make command. -# -# Actions: -# -# Requires: -# -# wget -# tar -# gcc -# -# Sample Usage: -# -# cmmi { 'example-software': -# url => 'http://example-software.com/download/', -# output => 'example-software.tar.gz', -# flags => '--prefix=/opt/example-software', -# creates => '/opt/example-software', -# } -# -define cmmi( - $url, - $output, - $creates, - $make='make && make install', - $flags='', - $make_timeout=0, - $configure_command='sh ./configure' -) { - - Exec { path => '/bin:/usr/bin' } - - $cwd = '/usr/local/src' - - include wget - include tar - include gcc - - exec { "download-${name}": - cwd => $cwd, - command => "wget -q \"${url}\" -O ${output}", - creates => "${cwd}/${output}", - require => Class['wget'] - } - - $tld = inline_template('<%= File.basename(@output, ".tar.gz") %>') - $src = "${cwd}/${name}/${tld}" - - exec { "extract-${name}": - cwd => $cwd, - command => "mkdir -p ${name}/${tld} && tar --no-same-owner \ - --no-same-permissions -xzf ${output} -C ${name}/${tld} \ - --strip-components 1", - creates => $src, - require => [ - Exec["download-${name}"], - Class['tar'] - ], - } - - exec { "configure-${name}": - cwd => $src, - command => "${configure_command} ${flags}", - creates => "${src}/Makefile", - require => Exec["extract-${name}"] - } - - exec { "make-${name}": - cwd => $src, - command => $make, - creates => $creates, - require => [ - Exec["configure-${name}"], - Class['gcc'] - ], - timeout => $make_timeout - } -}