Initial version of FlexLM module. Includes only client tools.
This commit is contained in:
parent
945a9f2af3
commit
9769a06eff
2 changed files with 59 additions and 0 deletions
23
flexlm/Makefile
Normal file
23
flexlm/Makefile
Normal file
|
@ -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)"' > $@
|
36
flexlm/manifests/init.pp
Normal file
36
flexlm/manifests/init.pp
Normal file
|
@ -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"],
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue