Traefik hosts can now be more than just web
This commit is contained in:
@@ -71,6 +71,10 @@ class Mrsk::Configuration
|
||||
role(:web).hosts.first
|
||||
end
|
||||
|
||||
def traefik_hosts
|
||||
roles.select(&:running_traefik?).flat_map(&:hosts)
|
||||
end
|
||||
|
||||
|
||||
def version
|
||||
@version ||= ENV["VERSION"] || `git rev-parse HEAD`.strip
|
||||
|
||||
Reference in New Issue
Block a user