Alexandros Kosiaris has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/342019 )
Change subject: role::osm::common: Conditionalize tuning.conf inclusion ...................................................................... role::osm::common: Conditionalize tuning.conf inclusion Make it dependent on the lsbdistcodename Change-Id: I8efc241310be16e7572a12081fe1ee53d6611c24 --- M modules/role/manifests/osm/common.pp 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/19/342019/1 diff --git a/modules/role/manifests/osm/common.pp b/modules/role/manifests/osm/common.pp index 8d6b2d8..9749a69 100644 --- a/modules/role/manifests/osm/common.pp +++ b/modules/role/manifests/osm/common.pp @@ -1,9 +1,14 @@ class role::osm::common { include ::standard + $pgversion = $::lsbdistcodename ? { + 'jessie' => '9.4', + 'precise' => '9.1', + 'trusty' => '9.3', + } $root_dir = '/srv/postgres' - file { '/etc/postgresql/9.1/main/tuning.conf': + file { "/etc/postgresql/${pgversion}/main/tuning.conf": ensure => 'present', owner => 'root', group => 'root', -- To view, visit https://gerrit.wikimedia.org/r/342019 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8efc241310be16e7572a12081fe1ee53d6611c24 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits