From 9769a06eff6b55aa8543fc5db915fe7e962c7418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 7 May 2013 12:13:46 +0300 Subject: [PATCH] Initial version of FlexLM module. Includes only client tools. --- flexlm/Makefile | 23 +++++++++++++++++++++++ flexlm/manifests/init.pp | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 flexlm/Makefile create mode 100644 flexlm/manifests/init.pp diff --git a/flexlm/Makefile b/flexlm/Makefile new file mode 100644 index 0000000..1eebe61 --- /dev/null +++ b/flexlm/Makefile @@ -0,0 +1,23 @@ +include $(CURDIR)/../Makefile.inc + +VERSION = 11.11.1.1 +BASEURL = http://www.globes.com/products/utilities/v$(VERSION)/ + +all: manifest download +download: $(PACKAGES)/lmutil-${VERSION}.i386.Linux \ + $(PACKAGES)/lmutil-${VERSION}.x86_64.Linux +manifest: $(MANIFESTS)/flexlm.pp + +$(PACKAGES)/lmutil-$(VERSION).i386.Linux: + @umask 022 ; echo $@; \ + test -f $@ || curl $(BASEURL)/lmutil-i86_lsb-$(VERSION).tar.gz | \ + zcat | tar xf - -O > $@ + +$(PACKAGES)/lmutil-$(VERSION).x86_64.Linux: + @umask 022 ; echo $@; \ + test -f $@ || curl $(BASEURL)/lmutil-x64_lsb-$(VERSION).tar.gz | \ + zcat | tar xf - -O > $@ + +$(MANIFESTS)/flexlm.pp: download + @umask 022 ; echo $@; \ + echo '$$lmutil_package_latest = "$(VERSION)"' > $@ diff --git a/flexlm/manifests/init.pp b/flexlm/manifests/init.pp new file mode 100644 index 0000000..a8b6282 --- /dev/null +++ b/flexlm/manifests/init.pp @@ -0,0 +1,36 @@ + +# Install FlexLM license tools +# +class flexlm::client { + + file { "/usr/local/bin/lmutil": + ensure => present, + source => "puppet:///files/packages/lmutil-${lmutil_package_latest}.${::architecture}.${::kernel}", + mode => "0755", + owner => "root", + group => "root", + } + + file { [ + "/usr/local/bin/lmborrow", + "/usr/local/bin/lmcksum", + "/usr/local/bin/lmdiag", + "/usr/local/bin/lmdown", + "/usr/local/bin/lmhostid", + "/usr/local/bin/lminstall", + "/usr/local/bin/lmnewlog", + "/usr/local/bin/lmpath", + "/usr/local/bin/lmremove", + "/usr/local/bin/lmreread", + "/usr/local/bin/lmstat", + "/usr/local/bin/lmswitch", + "/usr/local/bin/lmver", + ]: + ensure => link, + target => "lmutil", + owner => "root", + group => "root", + require => File["/usr/local/bin/lmutil"], + } + +}