forked from teracyhq/dev
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@ teracyhq#227 | configurator stub is ready to be implemented
- Loading branch information
Showing
2 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# configure for node with all options from https://www.vagrantup.com/docs/ | ||
|
||
require_relative 'utility' | ||
|
||
$logger = get_logger() | ||
|
||
|
||
# https://www.vagrantup.com/docs/vagrantfile/machine_settings.html | ||
def _configure_vm(vm_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_vm: #{vm_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/vagrantfile/ssh_settings.html | ||
def _configure_ssh(ssh_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_ssh: #{ssh_config}") | ||
end | ||
|
||
|
||
# https://www.vagrantup.com/docs/vagrantfile/winrm_settings.html | ||
def _configure_winrm(winrm_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_winrm: #{winrm_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/vagrantfile/winssh_settings.html | ||
def _configure_winssh(winssh_config, node) | ||
# TODO: implemet this | ||
$logger.debug("_configure_winssh: #{winssh_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/vagrantfile/vagrant_settings.html | ||
def _configure_vagrant(vagrant_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_vagrant: #{vagrant_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/provisioning/ | ||
def _configure_provisioners(provisoners_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_provisioners: #{provisoners_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/networking/ | ||
def _configure_networks(networks_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_networks: #{networks_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/synced-folders/ | ||
def _configure_sync_folders(sync_folders_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_sync_folders: #{sync_folders_config}") | ||
end | ||
|
||
# https://www.vagrantup.com/docs/providers/ | ||
def _configure_providers(providers_config, node) | ||
# TODO: implement this | ||
$logger.debug("_configure_providers: #{providers_config}") | ||
end | ||
|
||
|
||
def configure(node_config, node) | ||
_configure_vm(node_config["vm"], node) | ||
_configure_ssh(node_config["ssh"], node) | ||
_configure_winrm(node_config["winrm"], node) | ||
_configure_winssh(node_config["winssh"], node) | ||
_configure_vagrant(node_config["vagrant"], node) | ||
_configure_provisioners(node_config["provisoners"], node) | ||
_configure_networks(node_config["networks"], node) | ||
_configure_sync_folders(node_config["synced-folders"], node) | ||
_configure_provisioners(node_config["providers"], node) | ||
end |