Skip to content

Commit

Permalink
Making changes as per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
KingOfPoptart committed Mar 7, 2014
1 parent 6528148 commit b558171
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/vagrant-flow/command.rb
Expand Up @@ -77,6 +77,7 @@ def execute
:forward_agent => ssh_info[:forward_agent],
:forward_x11 => ssh_info[:forward_x11]
}
# Outputs to the stdout

#The provisioning information from teh vagrant file, this will contain our defined ansible groups
provisioners = machine.config.vm.provisioners
Expand All @@ -89,6 +90,16 @@ def execute
machines_configs[variables[:host_key]]= variables
end


# Outputs to the stdout
# @env.ui.info(machine.name)

# From - Vagrant::Util::SafePuts
# Template is erb

# Implementation picks the first key
# ssh_info[:private_key_path] returns an array

#outputs is going to contain our strings that are the formatted ansible configs
#the key will be the vm name, the value will the be formatted sring
outputs = {}
Expand Down Expand Up @@ -140,6 +151,9 @@ def execute
end # End Execute


# Documentation reference
# http://docs.ansible.com/intro_inventory.html

def setup_inventory_file(machine)
return machine.config.inventory_path if machine.config.inventory_path

Expand Down

0 comments on commit b558171

Please sign in to comment.