Open jacksgt opened 5 years ago
Also I don't understand why gluster::repo
only passes on version
to Debian repositories, how are you supposed to select the release number then?
https://github.com/voxpupuli/puppet-gluster/blob/master/manifests/repo.pp
Yes, it's weird :confused:
For Debian repositories you need to explicitly set the release
gluster::repo::apt::release: '5'
as the variable gluster::repo::release
is not passed to class gluster::repo::apt
Hello,
maybe I'm just not getting the logic of this module (if so please correct me!), but I think there is an error in the way this module handles the repository version (at least for Debian systems).
Starting in init.pp, I can specify two parameters concerning the package version number to be installed:
release
andversion
. (BTW: at the top of the file only one of them is documented) https://github.com/voxpupuli/puppet-gluster/blob/72a80cd94de36f5b4fb4df3fa3983bda1a3ee50e/manifests/init.pp#L44But
init.pp
itself passes onlyversion
onto::gluster::install
:Because install.pp can only handle
version
, but notrelease
. This makes sense as::gluster::install
deals with installing the packages, but not setting up the repositories.However, the availability of the
release
parameter ininit.pp
lead me to assume I can configure both the packages and the repository through the main package (because enabling or disabling the repository is also possible throughinit.pp
), like so:This will simply lead to the creation of the file
/etc/apt/sources.list.d/glusterfs-4.1.list
:Which is obviously not what I wanted (the URL points to gluster 3.12).
This happens because
install.pp
includesrepo.pp
(if that has not already been done), but only passes theversion
parameter ontorepo.pp
.Since repo.pp does then not know about the
release
parameter I specified ininit.pp
, it simply uses the default from params.pp: https://github.com/voxpupuli/puppet-gluster/blob/72a80cd94de36f5b4fb4df3fa3983bda1a3ee50e/manifests/params.pp#L27Can someone please confirm or deny this observation?
I'd be happy to discuss and submit a PR.