Alexandros Kosiaris has submitted this change and it was merged. Change subject: Adding OSM role classes ......................................................................
Adding OSM role classes For now, setup postgres and postgis as well as replication between a master and a slave Change-Id: I3430cef15e7a27dfe4a9a26378af0857e4985b1a --- A manifests/role/osm.pp 1 file changed, 44 insertions(+), 0 deletions(-) Approvals: Alexandros Kosiaris: Looks good to me, approved jenkins-bot: Verified diff --git a/manifests/role/osm.pp b/manifests/role/osm.pp new file mode 100644 index 0000000..c5469fe --- /dev/null +++ b/manifests/role/osm.pp @@ -0,0 +1,44 @@ +# OSM role classes + +class role::osm::master { + include postgresql::master + include postgresql::postgis + include passwords::osm + + if $::osm_slave_v4 { + postgresql::user { "replication@${::osm_slave}-v4": + ensure => 'present', + user => 'replication', + password => $passwords::osm::replication_pass, + cidr => "${::osm_slave_v4}/32", + type => 'host', + method => 'md5', + attrs => 'REPLICATION', + database => 'replication', + require => Class['postgresql::master'], + } + } + if $::osm_slave_v6 { + postgresql::user { "replication@${::osm_slave}-v6": + ensure => 'present', + user => 'replication', + password => $passwords::osm::replication_pass, + cidr => "${::osm_slave_v6}/128", + type => 'host', + method => 'md5', + attrs => 'REPLICATION', + database => 'replication', + require => Class['postgresql::master'], + } + } +} + +class role::osm::slave { + include postgresql::postgis + include passwords::osm + + class {'postgresql::slave': + master_server => $::osm_master, + replication_pass => $passwords::osm::replication_pass, + } +} -- To view, visit https://gerrit.wikimedia.org/r/115409 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3430cef15e7a27dfe4a9a26378af0857e4985b1a Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits