aws proxy
This commit is contained in:
parent
37c84fe7b2
commit
4cf2730772
@ -34,6 +34,8 @@ config[:aws_secret_access_key] = "secret_access_key"
|
|||||||
config[:aws_ssh_key] = "ssh_key"
|
config[:aws_ssh_key] = "ssh_key"
|
||||||
config[:aws_certificate] = "/path/to/.ssh/ec2.pem"
|
config[:aws_certificate] = "/path/to/.ssh/ec2.pem"
|
||||||
config[:aws_availability_zone] = "aws_zone"
|
config[:aws_availability_zone] = "aws_zone"
|
||||||
|
config[:aws_proxy] = ""
|
||||||
|
config[:aws_no_proxy] = ""
|
||||||
|
|
||||||
# static settings
|
# static settings
|
||||||
config[:static_ssh_key] = "ssh_key" # or nil
|
config[:static_ssh_key] = "ssh_key" # or nil
|
||||||
|
|||||||
@ -12,11 +12,14 @@ module Provider
|
|||||||
def initialize config
|
def initialize config
|
||||||
self.certificate_path = config[:aws_certificate]
|
self.certificate_path = config[:aws_certificate]
|
||||||
self.ssh_key = config[:aws_ssh_key]
|
self.ssh_key = config[:aws_ssh_key]
|
||||||
self.connection_options = {
|
options = {
|
||||||
:provider => "aws",
|
:provider => "aws",
|
||||||
:aws_access_key_id => config[:aws_access_key_id],
|
:aws_access_key_id => config[:aws_access_key_id],
|
||||||
:aws_secret_access_key => config[:aws_secret_access_key]
|
:aws_secret_access_key => config[:aws_secret_access_key]
|
||||||
}
|
}
|
||||||
|
options[:proxy] = config[:aws_proxy] if config[:aws_proxy]
|
||||||
|
options[:no_proxy] = config[:no_proxy] if config[:no_proxy]
|
||||||
|
self.connection_options = options
|
||||||
self.availability_zone = config[:aws_availability_zone] || "us-east-1a"
|
self.availability_zone = config[:aws_availability_zone] || "us-east-1a"
|
||||||
self.run_list = config[:aws_integration_run_list] || []
|
self.run_list = config[:aws_integration_run_list] || []
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user