Changed package fetching Makefiles for abusehelper, vsroom and wiki
No longer uses symlinks to manage package versions. Ppackage versions are now recorded in /srv/puppet/files/common/packages/manifests/*.pp instead, which must be included in the site or node manifest.
This commit is contained in:
parent
32956c0d26
commit
29bc90e6f6
6 changed files with 70 additions and 52 deletions
|
@ -1,19 +1,27 @@
|
|||
GWIKI = default
|
||||
GWIKIURL = https://bitbucket.org/clarifiednetworks/graphingwiki/get/$(GWIKI).tar.gz
|
||||
MOIN = 1.8.8
|
||||
MOINURL = http://static.moinmo.in/files/moin-$(MOIN).tar.gz
|
||||
OUT = /srv/puppet/files/common/packages
|
||||
include $(CURDIR)/../Makefile.inc
|
||||
|
||||
all: tarball
|
||||
tarball: graphingwiki.tar.gz moin.tar.gz
|
||||
.PHONY: graphingwiki.tar.gz moin.tar.gz
|
||||
GWIKIBRANCH = default
|
||||
GWIKISOURCE = https://bitbucket.org/clarifiednetworks/graphingwiki/get/$(GWIKIBRANCH).tar.gz
|
||||
GWIKITARGET = graphingwiki-$(GWIKIBRANCH)-$(TIMESTAMP).tar.gz
|
||||
|
||||
graphingwiki.tar.gz:
|
||||
@umask 022 && mkdir -p $(OUT)/graphingwiki && \
|
||||
cd $(OUT)/graphingwiki && wget -nv -N $(GWIKIURL) && \
|
||||
cd $(OUT) && ln -fs graphingwiki/$(GWIKI).tar.gz graphingwiki.tar.gz
|
||||
MOINVERSION = 1.8.9
|
||||
MOINSOURCE = http://static.moinmo.in/files/moin-$(MOINVERSION).tar.gz
|
||||
MOINTARGET = moin-$(MOINVERSION).tar.gz
|
||||
|
||||
moin.tar.gz:
|
||||
@umask 022 && mkdir -p $(OUT)/moin && \
|
||||
cd $(OUT)/moin && wget -nv -N $(MOINURL) && \
|
||||
cd $(OUT) && ln -fs moin/moin-$(MOIN).tar.gz moin.tar.gz
|
||||
all: tarball manifest
|
||||
tarball: $(PACKAGES)/$(GWIKITARGET) $(PACKAGES)/$(MOINTARGET)
|
||||
manifest: $(MANIFESTS)/wiki.pp
|
||||
|
||||
$(PACKAGES)/$(GWIKITARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(GWIKISOURCE)
|
||||
|
||||
$(PACKAGES)/$(MOINTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(MOINSOURCE)
|
||||
|
||||
$(MANIFESTS)/wiki.pp: $(PACKAGES)/$(GWIKITARGET) $(PACKAGES)/$(MOINTARGET)
|
||||
@umask 022; echo $@; \
|
||||
echo '$$graphingwiki_package = "$(GWIKITARGET)"' > $@ && \
|
||||
echo '$$moin_package = "$(MOINTARGET)"' >> $@ && \
|
||||
echo '$$moin_patch = "moin-$(MOINVERSION).patch"' >> $@
|
||||
|
|
|
@ -7,7 +7,7 @@ class wiki::moin {
|
|||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
source => "puppet:///files/packages/moin.tar.gz",
|
||||
source => "puppet:///files/packages/${moin_package}",
|
||||
links => follow,
|
||||
}
|
||||
file { "/usr/local/src/moin.patch":
|
||||
|
@ -15,7 +15,7 @@ class wiki::moin {
|
|||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
source => "puppet:///files/packages/moin.patch",
|
||||
source => "puppet:///files/packages/${moin_patch}",
|
||||
links => follow,
|
||||
}
|
||||
util::extract::tar { "/usr/local/src/moin":
|
||||
|
@ -43,7 +43,7 @@ class wiki::graphingwiki::common {
|
|||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
source => "puppet:///files/packages/graphingwiki.tar.gz",
|
||||
source => "puppet:///files/packages/${graphingwiki_package}",
|
||||
links => follow,
|
||||
}
|
||||
util::extract::tar { "/usr/local/src/graphingwiki":
|
||||
|
@ -284,10 +284,8 @@ class wiki::collab::base {
|
|||
}
|
||||
}
|
||||
|
||||
if !$collab_webhosts {
|
||||
$collab_webhosts = [ "${homename}" ]
|
||||
if $collab_webhosts {
|
||||
configwebhost { $collab_webhosts: }
|
||||
}
|
||||
|
||||
configwebhost { $collab_webhosts: }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue