vagrant-local 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
  3. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. data/.github/dependabot.yml +6 -0
  5. data/.github/workflows/codeql-analysis.yml +72 -0
  6. data/.github/workflows/lint-release-and-publish-nightly.yml +73 -0
  7. data/.github/workflows/lint-release-and-publish.yml +71 -0
  8. data/.github/workflows/ruby-lint.yml +35 -0
  9. data/.gitignore +35 -0
  10. data/.rspec +2 -0
  11. data/.rubocop.yml +143 -0
  12. data/CHANGELOG.md +32 -0
  13. data/CODE_OF_CONDUCT.md +128 -0
  14. data/CONTRIBUTING.md +97 -0
  15. data/Gemfile +26 -0
  16. data/LICENSE +651 -0
  17. data/PULL_REQUEST_TEMPLATE.md +39 -0
  18. data/README.md +92 -0
  19. data/RELEASE.md +22 -0
  20. data/Rakefile +32 -0
  21. data/SECURITY.md +19 -0
  22. data/ansible.cfg +5 -0
  23. data/docs/CNAME +1 -0
  24. data/docs/_config.yml +1 -0
  25. data/docs/css/main.css +55 -0
  26. data/docs/css/styles.css +8678 -0
  27. data/docs/index.html +125 -0
  28. data/lib/vagrant-local/action/create.rb +27 -0
  29. data/lib/vagrant-local/action/destroy.rb +25 -0
  30. data/lib/vagrant-local/action/halt.rb +24 -0
  31. data/lib/vagrant-local/action/import.rb +27 -0
  32. data/lib/vagrant-local/action/is_created.rb +22 -0
  33. data/lib/vagrant-local/action/network.rb +24 -0
  34. data/lib/vagrant-local/action/network_cleanup.rb +26 -0
  35. data/lib/vagrant-local/action/not_created.rb +20 -0
  36. data/lib/vagrant-local/action/package.rb +135 -0
  37. data/lib/vagrant-local/action/restart.rb +27 -0
  38. data/lib/vagrant-local/action/setup.rb +24 -0
  39. data/lib/vagrant-local/action/shutdown.rb +47 -0
  40. data/lib/vagrant-local/action/start.rb +25 -0
  41. data/lib/vagrant-local/action/wait_till_boot.rb +47 -0
  42. data/lib/vagrant-local/action/wait_till_up.rb +65 -0
  43. data/lib/vagrant-local/action.rb +187 -0
  44. data/lib/vagrant-local/command/guest_power_controls.rb +58 -0
  45. data/lib/vagrant-local/command/local.rb +69 -0
  46. data/lib/vagrant-local/command/restart_guest.rb +29 -0
  47. data/lib/vagrant-local/command/shutdown_guest.rb +29 -0
  48. data/lib/vagrant-local/command/vnc_console.rb +48 -0
  49. data/lib/vagrant-local/command/webvnc_console.rb +49 -0
  50. data/lib/vagrant-local/config.rb +55 -0
  51. data/lib/vagrant-local/driver.rb +208 -0
  52. data/lib/vagrant-local/errors.rb +84 -0
  53. data/lib/vagrant-local/executor.rb +38 -0
  54. data/lib/vagrant-local/plugin.rb +76 -0
  55. data/lib/vagrant-local/provider.rb +83 -0
  56. data/lib/vagrant-local/util/subprocess.rb +31 -0
  57. data/lib/vagrant-local/util/timer.rb +19 -0
  58. data/lib/vagrant-local/version.rb +8 -0
  59. data/lib/vagrant-local.rb +29 -0
  60. data/locales/en.yml +187 -0
  61. data/vagrant-zones.gemspec +37 -0
  62. metadata +191 -0
data/locales/en.yml ADDED
@@ -0,0 +1,187 @@
1
+ en:
2
+ vagrant_local:
3
+ states:
4
+ not_created: |-
5
+ Your instance of this box haven't been created
6
+ is_running: |-
7
+ Your instance has already be booted
8
+ errors:
9
+ not_yet_implemented: |-
10
+ Your configuration is not yet implemented
11
+ halt_timeout: |-
12
+ The instance failed to halt in alloted time after waiting for
13
+ invalidLX_brand: |-
14
+ Invalid LX brand configuration detected
15
+ invalidbhyve_brand: |-
16
+ Invalid bhyve configuration detected
17
+ console_failed: |-
18
+ Failed to access console
19
+ console_failed: |-
20
+ Failed to apply the netplan configuration inside the VM
21
+ console_failed_exit: |-
22
+ Exiting
23
+ execute_error: |-
24
+ Failed when execute commands
25
+ timeout_error: |-
26
+ Timeout exceeded
27
+ system_version_too_low: |-
28
+ Please update to OmniOS r38 or higher
29
+ missing_compatability_check_tool: |-
30
+ Please install the Bhyve compatability tool from: https://omnios.org/info/bhyve
31
+ missing_bhyve: |-
32
+ Your system appears to be missing bhyve
33
+ virtual_box_running_conflict_detected: |-
34
+ Virtualbox Box appears to be running virtual machines, to continue, please shut these down!
35
+ ansible_not_detected: |-
36
+ Ansible does not appear to be available
37
+ ansible_playbook_not_detected: |-
38
+ Ansible does not appear to be available
39
+ meeting: |-
40
+ Creating the instance
41
+ destroyed: |-
42
+ The instance has been destroyed
43
+ destroy: |-
44
+ Destroying the instance
45
+ graceful_shutdown_failed: |-
46
+ The instance failed to shutdown in alloted time ==>
47
+ graceful_shutdown: |-
48
+ Attempting to shutdown instance
49
+ delete_disks: |-
50
+ Removing associated disks:
51
+ user: |-
52
+ Filtering the user Vagrant will use
53
+ setting_cd_rom_configurations: |-
54
+ - Setting CDROM Configurations:
55
+ setting_additional_disks_configurations: |-
56
+ - Setting additional disk Configurations:
57
+ preflight_checks: |-
58
+ Running Preflight checks:
59
+ os_detect: |-
60
+ - Detecting Operating System to configure networking:
61
+ ansible_detect: |-
62
+ - Detecting if Ansible is installed:
63
+ ansible_check: |-
64
+ - Checking if Ansible is installed
65
+ ansible_playbook_check: |-
66
+ - Checking if ansible-playbook is installed
67
+ wait_for_boot: |-
68
+ Waiting for the instance to boot
69
+ sshport: |-
70
+ Filtering the SSH port that Vagrant will use
71
+ vagrantuserpass: |-
72
+ Filtering the Vagrant user Password
73
+ inserting_ssh_key: |-
74
+ Inserting SSH key
75
+ detecting_box: |-
76
+ Detecting image
77
+ importing_vagrant_key: |-
78
+ Importing Vagrant key from Cloud:
79
+ datadir: |-
80
+ Vagrant datadir:
81
+ vagrant_cloud_box_detected: |-
82
+ - Vagrant Cloud Box detected:
83
+ ssh_ready: |-
84
+ SSH appears to be ready
85
+ boot_ready: |-
86
+ The instance has booted
87
+ start: |-
88
+ Starting the instance
89
+ setting_dns_server: |-
90
+ Setting nameserver ==>
91
+ detected_ovf_format: |-
92
+ Detected OVF
93
+ importing_box_image: |-
94
+ - Importing Box image ==>
95
+ importing_box_image_to_disk: |-
96
+ - Importing Box template to disk ==>
97
+ template_import_path: |-
98
+ - Template path:
99
+ template_import_path_set_size: |-
100
+ - Setting Boot Volume Size
101
+ importing_joyent_image: |-
102
+ - Importing Joyent image ==>
103
+ graceful_restart: |-
104
+ Attempting to gracefully restart the instance
105
+ graceful_shutdown_started: |-
106
+ Attempting to shutdown restart the instance
107
+ graceful_shutdown_complete: |-
108
+ Graceful shutdown complete
109
+ graceful_restart_complete: |-
110
+ Graceful restart complete
111
+ control_no_cmd: |-
112
+ No control command specified
113
+ ssh_run_command: |-
114
+ Running Command over SSH:
115
+ nsservers: |-
116
+ Sanitizing Name Servers:
117
+ mac: |-
118
+ Sanitizing MAC address:
119
+ ipaddress: |-
120
+ Sanitizing IP address:
121
+ allowedaddress: |-
122
+ Sanitizing Allowed IP address:
123
+ vnic_name: |-
124
+ Sanitizing the VNIC name:
125
+ get_ip_address: |-
126
+ Gathering IP address
127
+ creating_etherstub: |-
128
+ - Creating etherstub for private network:
129
+ creating_ethervnic: |-
130
+ - Creating VNIC for host over etherstub:
131
+ nat_vnic_setup: |-
132
+ - Setting up NAT VNIC:
133
+ forwarding_nat: |-
134
+ - Enabling NAT forwarding:
135
+ configuring_nat: |-
136
+ - Creating NAT entries:
137
+ deconfiguring_nat: |-
138
+ - Removing NAT configurations:
139
+ configuring_dhcp: |-
140
+ - Configuring DHCP
141
+ deconfiguring_dhcp: |-
142
+ - Removing DHCP configurations:
143
+ setting_alt_shared_disk_configurations: |-
144
+ Setting shared disk configurations
145
+ control: |-
146
+ Running control command on instance:
147
+ delete_ethervnic: |-
148
+ - Deleting the etherstub:
149
+ no_delete_ethervnic: |-
150
+ - No etherstub to remove
151
+ automated-zlogin: |-
152
+ Automatic Login
153
+ automated-windows-zlogin: |-
154
+ Windows SAC Autologin
155
+ automated-zlogin-user: |-
156
+ - Entering username, Waiting a few seconds
157
+ automated-zlogin-pass: |-
158
+ - Entering password, Waiting a few seconds
159
+ automated-zbootunlock: |-
160
+ - Unlocking LUKS Keystore for the boot disk
161
+ automated-zlogin-root: |-
162
+ - Impersonating root, Waiting a few seconds
163
+ windows_skip_first_boot: |-
164
+ - Skipping First EVENT for CMD due to Sysprep Reboot
165
+ windows_start_cmd: |-
166
+ - Starting CMD session
167
+ windows_access_session: |-
168
+ - Accessing Command Session
169
+ windows_access_session_presskey: |-
170
+ - Pressing Any Key enter Command Session
171
+ windows_enter_username: |-
172
+ - Entering Username
173
+ windows_enter_domain: |-
174
+ - Entering/Skipping Domain
175
+ windows_enter_password: |-
176
+ - Entering password
177
+ windows_cmd_accessible: |-
178
+ - CMD Accessible
179
+ win_applied_rename_adapter: |-
180
+ - Renamed Default Adapter
181
+ win_applied_static: |-
182
+ - Set Static Address
183
+ win_applied_dns1: |-
184
+ - Set Primary DNS
185
+ win_applied_dns2: |-
186
+ - Set Secondary DNS
187
+
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ Encoding.default_external = Encoding::UTF_8
4
+
5
+ require File.expand_path('lib/vagrant-local/version', __dir__)
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'vagrant-local'
9
+ spec.version = VagrantPlugins::ProviderLocal::VERSION
10
+ spec.authors = ['Mark Gilbert']
11
+ spec.email = ['support@prominic.net']
12
+ spec.summary = 'Vagrant provider plugin to support local provisioners'
13
+ spec.description = spec.summary
14
+ spec.homepage = 'https://github.com/STARTCloud/vagrant-local'
15
+ spec.license = 'AGPL-3.0'
16
+ spec.metadata = {
17
+ 'rubygems_mfa_required' => 'true',
18
+ 'bug_tracker_uri' => 'https://github.com/STARTcloud/vagrant-local/issues',
19
+ 'changelog_uri' => 'https://github.com/STARTcloud/vagrant-local/blob/main/CHANGELOG.md',
20
+ 'documentation_uri' => 'http://rubydoc.info/gems/vagrant-local',
21
+ 'source_code_uri' => 'https://github.com/STARTCloud/vagrant-local',
22
+ 'github_repo' => 'https://github.com/STARTCloud/vagrant-local'
23
+ }
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = 'bin'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.required_ruby_version = '>= 2.7.0'
31
+ spec.required_rubygems_version = '>= 1.3.6'
32
+ spec.add_runtime_dependency 'i18n', '~> 1.0'
33
+ spec.add_runtime_dependency 'iniparse', '~> 1.0'
34
+ spec.add_runtime_dependency 'log4r', '~> 1.1'
35
+ spec.add_runtime_dependency 'netaddr', '~> 2.0', '>= 2.0.4'
36
+ spec.add_runtime_dependency 'ruby_expect', '~> 1.7', '>= 1.7.5'
37
+ end
metadata ADDED
@@ -0,0 +1,191 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-local
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mark Gilbert
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: i18n
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: iniparse
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: log4r
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: netaddr
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.4
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '2.0'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.4
75
+ - !ruby/object:Gem::Dependency
76
+ name: ruby_expect
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.7'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 1.7.5
85
+ type: :runtime
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.7'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.7.5
95
+ description: Vagrant provider plugin to support local provisioners
96
+ email:
97
+ - support@prominic.net
98
+ executables: []
99
+ extensions: []
100
+ extra_rdoc_files: []
101
+ files:
102
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
103
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
104
+ - ".github/dependabot.yml"
105
+ - ".github/workflows/codeql-analysis.yml"
106
+ - ".github/workflows/lint-release-and-publish-nightly.yml"
107
+ - ".github/workflows/lint-release-and-publish.yml"
108
+ - ".github/workflows/ruby-lint.yml"
109
+ - ".gitignore"
110
+ - ".rspec"
111
+ - ".rubocop.yml"
112
+ - CHANGELOG.md
113
+ - CODE_OF_CONDUCT.md
114
+ - CONTRIBUTING.md
115
+ - Gemfile
116
+ - LICENSE
117
+ - PULL_REQUEST_TEMPLATE.md
118
+ - README.md
119
+ - RELEASE.md
120
+ - Rakefile
121
+ - SECURITY.md
122
+ - ansible.cfg
123
+ - docs/CNAME
124
+ - docs/_config.yml
125
+ - docs/css/main.css
126
+ - docs/css/styles.css
127
+ - docs/index.html
128
+ - lib/vagrant-local.rb
129
+ - lib/vagrant-local/action.rb
130
+ - lib/vagrant-local/action/create.rb
131
+ - lib/vagrant-local/action/destroy.rb
132
+ - lib/vagrant-local/action/halt.rb
133
+ - lib/vagrant-local/action/import.rb
134
+ - lib/vagrant-local/action/is_created.rb
135
+ - lib/vagrant-local/action/network.rb
136
+ - lib/vagrant-local/action/network_cleanup.rb
137
+ - lib/vagrant-local/action/not_created.rb
138
+ - lib/vagrant-local/action/package.rb
139
+ - lib/vagrant-local/action/restart.rb
140
+ - lib/vagrant-local/action/setup.rb
141
+ - lib/vagrant-local/action/shutdown.rb
142
+ - lib/vagrant-local/action/start.rb
143
+ - lib/vagrant-local/action/wait_till_boot.rb
144
+ - lib/vagrant-local/action/wait_till_up.rb
145
+ - lib/vagrant-local/command/guest_power_controls.rb
146
+ - lib/vagrant-local/command/local.rb
147
+ - lib/vagrant-local/command/restart_guest.rb
148
+ - lib/vagrant-local/command/shutdown_guest.rb
149
+ - lib/vagrant-local/command/vnc_console.rb
150
+ - lib/vagrant-local/command/webvnc_console.rb
151
+ - lib/vagrant-local/config.rb
152
+ - lib/vagrant-local/driver.rb
153
+ - lib/vagrant-local/errors.rb
154
+ - lib/vagrant-local/executor.rb
155
+ - lib/vagrant-local/plugin.rb
156
+ - lib/vagrant-local/provider.rb
157
+ - lib/vagrant-local/util/subprocess.rb
158
+ - lib/vagrant-local/util/timer.rb
159
+ - lib/vagrant-local/version.rb
160
+ - locales/en.yml
161
+ - vagrant-zones.gemspec
162
+ homepage: https://github.com/STARTCloud/vagrant-local
163
+ licenses:
164
+ - AGPL-3.0
165
+ metadata:
166
+ rubygems_mfa_required: 'true'
167
+ bug_tracker_uri: https://github.com/STARTcloud/vagrant-local/issues
168
+ changelog_uri: https://github.com/STARTcloud/vagrant-local/blob/main/CHANGELOG.md
169
+ documentation_uri: http://rubydoc.info/gems/vagrant-local
170
+ source_code_uri: https://github.com/STARTCloud/vagrant-local
171
+ github_repo: https://github.com/STARTCloud/vagrant-local
172
+ post_install_message:
173
+ rdoc_options: []
174
+ require_paths:
175
+ - lib
176
+ required_ruby_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 2.7.0
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: 1.3.6
186
+ requirements: []
187
+ rubygems_version: 3.2.3
188
+ signing_key:
189
+ specification_version: 4
190
+ summary: Vagrant provider plugin to support local provisioners
191
+ test_files: []