entrance-agent 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 034670028c5ffe7ad93f6b461d311e7e274be90e
4
- data.tar.gz: 101e71764d9aedc96e243d6dd32fbe5c75d552f7
3
+ metadata.gz: 8aadaf5853f9c7a1e0831d9341a85d0cd47dab99
4
+ data.tar.gz: 18b3350bd99045d365a5a62b43033ac690d4b584
5
5
  SHA512:
6
- metadata.gz: 65bc755ac61898aca62779cd349f2c4ada100b768596bc7579109eb382d3aa7ec11ecb6767e945c4a24d709569a8cc0e6fb9730ada3717ee32f7382d82cb41f2
7
- data.tar.gz: 6007f3d88a74e7db6c55c770655926f37cd1d6b3d11d373012f5194116eed2a1e2a993a7a33cafcef3635f28e9a5fa654e2b28b5df6fcd50de10dadb681f1a9e
6
+ metadata.gz: eb203045cbc6c0adbcf16609c2577d414401e28e59c0512b2a171e0d128a198af99289cbb557903f2ac4d9d348e2f2f3a3dd2721789eaa8cf764435dc60b2d58
7
+ data.tar.gz: 326fb0cd21522f65a3d16077365f3362fb4ef9ede4cee87e1d625f9f6a3a97a6dbebdce80274a6919fb2c21bbb52c4f32d0823d1144a66c0100c7d2d23f75ba2
@@ -23,13 +23,17 @@ module Entrance
23
23
  params[:doorkeepr_server] ||= "http://localhost:3000"
24
24
  params[:doorkeepr_customer] ||= ENV["USER"]
25
25
  params[:doorkeepr_service] ||= "rails"
26
+ params[:doorkeepr_url] ||= "/doorkeepr"
26
27
  params[:workdir] ||= Pathname.new("/tmp")
27
28
  params[:id_file] ||= params[:workdir].join("entrance.id").to_s
28
29
  params[:entrance] = nil
29
30
  params[:id] = nil
30
- params[:customer] ||= "steigr"
31
- params[:http_port] = 80
32
- params[:https_port] = 443
31
+ params[:customer] ||= ENV["CUSTOMER"] || "global"
32
+ params[:stats_user] ||= "haproxy"
33
+ params[:stats_pass] ||= "secret"
34
+ params[:http_port] ||= 80
35
+ params[:https_port] ||= 443
36
+ params[:health_url] ||= "/health"
33
37
  super params
34
38
  end
35
39
  def id
@@ -14,7 +14,7 @@ module Entrance
14
14
  @application = "doorkeepr"
15
15
  @function = Config.current.doorkeepr_service
16
16
  @mode = "http"
17
- @uri = "/doorkeepr"
17
+ @uri = Config.current.doorkeepr_url
18
18
  Boutons.add config
19
19
  end
20
20
  end
@@ -62,7 +62,7 @@ module Entrance
62
62
  @extra_sections
63
63
  end
64
64
  def stats_section
65
- @stats_section ||= Synapse::Easy::Section::Stats.new(username: :foo, password: :bar,show_node: true)
65
+ @stats_section ||= Synapse::Easy::Section::Stats.new(username: Config.current.stats_user, password: Config.current.stats_pass,show_node: true)
66
66
  end
67
67
  def service_ids
68
68
  @service_ids || []
@@ -1,8 +1,5 @@
1
1
  module Entrance
2
2
  module Globalizer
3
3
  attr_accessor :current
4
- # def current
5
- # @current ||= self.new
6
- # end
7
4
  end
8
5
  end
@@ -16,7 +16,7 @@ module Entrance
16
16
  port: 0,
17
17
  path: zk_path,
18
18
  application: name,
19
- uri: "/health"
19
+ uri: Config.current.health_url
20
20
  }
21
21
  @backend = Synapse::Easy::Service.new backend_params
22
22
  acl_params = {
@@ -1,5 +1,5 @@
1
1
  module Entrance
2
2
  module Agent
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entrance-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann