mirror of
https://github.com/puppetlabs/vmpooler-provider-ec2.git
synced 2026-01-26 02:28:40 -05:00
add a condition for the aws node setup (ssh)
if a domain is set then we use the 'spicy-proton' hostname otherwise it uses the private dns name
This commit is contained in:
parent
b563239e76
commit
6c0e7ac12b
1 changed files with 7 additions and 3 deletions
|
|
@ -276,10 +276,14 @@ module Vmpooler
|
|||
@redis.with_metrics do |redis|
|
||||
redis.hset("vmpooler__vm__#{new_vmname}", 'host', created_instance['private_dns_name'])
|
||||
end
|
||||
# extra setup steps
|
||||
provision_node_aws(created_instance['private_dns_name'], pool_name, new_vmname) if to_provision(pool_name) == 'true' || to_provision(pool_name) == true
|
||||
|
||||
dns_setup(created_instance) if domain
|
||||
if domain
|
||||
dns_setup(created_instance)
|
||||
provision_node_aws(created_instance['name'], pool_name, new_vmname) if to_provision(pool_name) == 'true' || to_provision(pool_name) == true
|
||||
elsif to_provision(pool_name) == 'true' || to_provision(pool_name) == true
|
||||
provision_node_aws(created_instance['private_dns_name'], pool_name, new_vmname)
|
||||
end
|
||||
|
||||
created_instance
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue