Skip to content

Commit

Permalink
@ teracyhq#277 | add autostart config implementation for node
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatle committed Jul 19, 2018
1 parent 770b886 commit aa809b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ end
Vagrant.configure("2") do |config|
settings["nodes"].each do |node_config|
$logger.debug("node_config: #{node_config}")
config.vm.define node_config["name"], primary: node_config["primary"] ||= false do |node|
primary = node_config["primary"] ||= false
autostart = node_config["autostart"] === false ? false : true
config.vm.define node_config["name"], primary: primary, autostart: autostart do |node|
# node settings here
end
end
Expand Down
1 change: 1 addition & 0 deletions config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ nodes:
vm:
hostname: "#{NODE_HOSTNAME_PREFIX}-1.local"
- name: "#{node_name_prefix}-2"
autostart: false
vm:
hostname: "#{NODE_HOSTNAME_PREFIX}-2.local"

0 comments on commit aa809b2

Please sign in to comment.