On Tue, Apr 18, 2017 at 6:19 AM, sebb <[email protected]> wrote: > https://github.com/apache/whimsy/blob/master/www/roster/public_json_common.rb#L85 > > currently checks the hostname for the string 'vm2' to decide if the > host is the current master Whimsy or a test installation. > > However this currently allows both vm3 and vm4 to send mails. > > Is there a better way to determine which is the current server? > > Otherwise we'll have to keep adjusting the code.
Perhaps it might be worth considering adding different SetEnv statements to: https://github.com/apache/infrastructure-puppet/blob/deployment/data/nodes/whimsy-vm3.apache.org.yaml and https://github.com/apache/infrastructure-puppet/blob/deployment/data/nodes/whimsy-vm3.apache.org.yaml ? And perhaps add a convenience method to query the environment to: https://github.com/apache/whimsy/blob/master/lib/whimsy/asf.rb > S. - Sam Ruby
