Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #9 from Savar/disable_manage_repo

enable the use of own managed repositories
  • Loading branch information...
commit f65d25ad655d54447ce5aeac2e0ece488b79ecb2 2 parents d8a8538 + ea42d1b
@haf haf authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 manifests/init.pp
View
13 manifests/init.pp
@@ -13,6 +13,11 @@
# package_hash:
# A URL of a hash-file or sha2-string in hexdigest
#
+# manage_repos:
+# If +true+ it will try to setup the repositories provided by basho.com to
+# install Riak. If you manage your own repositories for whatever reason you
+# probably want to set this to +false+.
+#
# source:
# Sets the content of source parameter for main configuration file
# If defined, riak's app.config file will have the param: source => $source.
@@ -74,6 +79,7 @@
$package = hiera('package', $riak::params::package),
$download = hiera('download', $riak::params::download),
$use_repos = hiera('use_repos', $riak::params::use_repos),
+ $manage_repos = hiera('manage_repos', true),
$download_hash = hiera('download_hash', $riak::params::download_hash),
$source = hiera('source', ''),
$template = hiera('template', ''),
@@ -105,6 +111,11 @@
default => 'installed',
}
+ $manage_repos_real = $use_repos ? {
+ true => $manage_repos,
+ default => false
+ }
+
$manage_service_ensure = $disable ? {
true => 'stopped',
default => $absent ? {
@@ -195,7 +206,7 @@
class { 'riak::config':
absent => $absent,
- manage_repos => $use_repos,
+ manage_repos => $manage_repos_real,
require => Anchor['riak::start'],
before => Anchor['riak::end'],
}
Please sign in to comment.
Something went wrong with that request. Please try again.