vagrant-zones 0.1.3 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4f79eefa3ab3f639f13182d9ce44cd0c335be15a7b31746a353be86685c8949
4
- data.tar.gz: 4616c7c7e28015d457f852b8c9defcdbb382e841730a717c64673b6fef5490c4
3
+ metadata.gz: 61093727973c543138ab99453c56b8214074a849d1f1eb79e2eab3950ca6cbeb
4
+ data.tar.gz: de84cd17ca149f09a2b8e81b6f918a3246c5114f304ce18f0898433d78ca4ab7
5
5
  SHA512:
6
- metadata.gz: 70d913181b7eb9d00b5a876d0f2c4d0bf84e8696183b3fa3965d319f78726d771d20fd7ef1dfe9bc7c7629207c7b5a7de9a118cc44132990ebb13c84d7498606
7
- data.tar.gz: 788d1550bd7d142779d0ee855932911909c0ac9d3bb9bbbd852106c1d9c0a1d8d2b0857bb48470e1cffc3a122377f20bf04f92997367255416dbfbeb357a45d5
6
+ metadata.gz: 9378aa24d458dee3a8cb8f4170ff855691354c0a7ecfce08e7a2d1e9f6c8054fd94c0fc46c19f04bd5baf6bc046a2d8bac5facd5fc72d7e215d526371e95407d
7
+ data.tar.gz: 2cfcb830b1f52da8a612cf35ae1621dc89842f68125b3056ba79aa6239fe0dec520ff3f8d89d51e1d5c4d01f4c5d2fd54131289ce85acee8b03e8d85fe884feb
@@ -25,10 +25,10 @@ jobs:
25
25
  if: ${{ steps.release.outputs.release_created }}
26
26
 
27
27
  # Setup ruby if a release was created
28
- - name: Set up Ruby 2.7
28
+ - name: Set up Ruby 3.0.0
29
29
  uses: ruby/setup-ruby@v1
30
30
  with:
31
- ruby-version: 2.7
31
+ ruby-version: 3.0.0
32
32
  if: ${{ steps.release.outputs.release_created }}
33
33
 
34
34
  # Bundle install
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.1.8](https://www.github.com/STARTcloud/vagrant-zones/compare/v0.1.7...v0.1.8) (2022-11-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * version fix ([5fa814e](https://www.github.com/STARTcloud/vagrant-zones/commit/5fa814eac5006344845616e065d49b68ba67326c))
9
+
10
+ ### [0.1.7](https://www.github.com/STARTcloud/vagrant-zones/compare/v0.1.6...v0.1.7) (2022-11-02)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * bundler ([912d3e1](https://www.github.com/STARTcloud/vagrant-zones/commit/912d3e1211ffcd79dd75dabe6e8b6a61a4752ea0))
16
+
17
+ ### [0.1.6](https://www.github.com/STARTcloud/vagrant-zones/compare/v0.1.5...v0.1.6) (2022-11-02)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * version ([78395ae](https://www.github.com/STARTcloud/vagrant-zones/commit/78395ae01b2c97b9c1fd8e2c031e702191740a8f))
23
+
24
+ ### [0.1.5](https://www.github.com/STARTcloud/vagrant-zones/compare/v0.1.4...v0.1.5) (2022-11-02)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * version ([d37daf3](https://www.github.com/STARTcloud/vagrant-zones/commit/d37daf33a7bceb724d9bb9e1669072005b131974))
30
+
31
+ ### [0.1.4](https://www.github.com/STARTcloud/vagrant-zones/compare/v0.1.3...v0.1.4) (2022-11-02)
32
+
33
+
34
+ ### Features
35
+
36
+ * Ruby 3 and remove Nokogiri dep ([500dc87](https://www.github.com/STARTcloud/vagrant-zones/commit/500dc87201c4f20227565134aa6acb196abb12a5))
37
+
3
38
  ### [0.1.3](https://www.github.com/STARTcloud/vagrant-zones/compare/v0.1.2...v0.1.3) (2022-07-13)
4
39
 
5
40
 
data/CONTRIBUTING.md CHANGED
@@ -70,8 +70,9 @@ method for Vagrant plugin development.
70
70
 
71
71
  The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages.
72
72
 
73
- [Conventional Commits](https://github.com/conventional-commits/conventionalcommits.org/blob/master/content/v1.0.0/index.md)
74
- [Better Committing Practices](https://riptutorial.com/git/example/4729/good-commit-messages)
73
+ * [Conventional Commits](https://github.com/conventional-commits/conventionalcommits.org/blob/master/content/v1.0.0/index.md)
74
+ * [SemVer](https://semver.org/)
75
+ * [Better Committing Practices](https://riptutorial.com/git/example/4729/good-commit-messages)
75
76
 
76
77
  ## Releasing
77
78
 
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ group :development do
6
6
  # We depend on Vagrant for development, but we don't add it as a
7
7
  # gem dependency because we expect to be installed within the
8
8
  # Vagrant environment itself using `vagrant plugin`.
9
- gem 'vagrant', github: 'mitchellh/vagrant', ref: 'v2.2.19'
9
+ gem 'vagrant', github: 'hashicorp/vagrant', ref: 'v2.2.19'
10
10
  end
11
11
 
12
12
  group :plugins do
data/README.md CHANGED
@@ -8,7 +8,7 @@ This project is still in the early stages, any feedback is much appreciated
8
8
  - [Status](#status)
9
9
  - [Functions](../../wiki/Status#functions)
10
10
  - [Boxes](../../wiki/Status#Box-Support)
11
- - [Examples](https://github.com/Makr91/vagrant-zones-examples)
11
+ - [Examples](https://github.com/STARTCloud/vagrant-zones-examples)
12
12
  - [Installation](#installation)
13
13
  - [Known Issues](../../wiki/Known-Issues-and-Workarounds)
14
14
  - [Development](../../wiki/Plugin-Development-Environment)
@@ -31,7 +31,7 @@ This project is still in the early stages, any feedback is much appreciated
31
31
 
32
32
  Publiched Package locations:
33
33
  - [rubygems.org](https://rubygems.org/gems/vagrant-zones).
34
- - [github.com](https://github.com/Makr91/vagrant-zones/packages/963217)
34
+ - [github.com](../../packages)
35
35
 
36
36
  ### Setup OS Installation
37
37
 
@@ -50,7 +50,7 @@ Publiched Package locations:
50
50
 
51
51
  ## Contributing
52
52
 
53
- Bug reports and pull requests are welcome on GitHub at https://github.com/Makr91/vagrant-zones.
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/STARTcloud/vagrant-zones/issues
54
54
 
55
55
  ## License
56
56
 
data/RELEASE.md CHANGED
@@ -1,15 +1,22 @@
1
1
  # Release process
2
2
 
3
3
  This is vagrant-zones' current release process, documented so people know what is
4
- currently done.
4
+ currently done to release it.
5
5
 
6
6
  ## Prepare the release
7
7
 
8
+ Github Actions now handles the release cycle. We are using SemVer Verision and Convential Commits to ensure that we can use our Commits in our CI/CD Workflow
9
+
10
+ To push a fix, ie a the Patch digit in Version string, prefix your commit header with "fix: Some Commit Message"
11
+
12
+ To push a feature, ie a the feature digit in Version string, prefix your commit header with "feat: Some Commit Message"
13
+
14
+ Doing so will cause GitHub Actions to perform the following
8
15
  * Update the version in "lib/vagrant-zones/version.rb"
9
16
  * Update the version in CHANGELOG.md
10
- * Use "rake release". This will make sure to tag that commit and push it RubyGems.
11
- * Update the version again in both files to a dev version for working again.
17
+ * Create a Release and Corresponding tag
18
+ * Push the package to the GPR and Ruby Gems
12
19
 
13
- The CHANGELOG.md should be maintained in a similar format to Vagrant:
20
+ The CHANGELOG.md will be automatically maintained in a similar format to Vagrant by the Github Action Release-Please:
14
21
 
15
22
  https://github.com/mitchellh/vagrant/blob/master/CHANGELOG.md
data/docs/index.html CHANGED
@@ -21,13 +21,13 @@
21
21
  </div>
22
22
  <div class="row justify-content-md-center">
23
23
  <div class="menu-link col-md-auto fs-3 p-3 text-center">
24
- <a href="index.html">Home</a>
24
+ <a href="https://github.com/STARTcloud/vagrant-zones">Home</a>
25
25
  </div>
26
26
  <div class="menu-link col-md-auto fs-3 p-3 text-center">
27
- <a href="own-your-data.html">Create your Automation</a>
27
+ <a href="http://rubydoc.info/gems/vagrant-zones">Ruby Docs</a>
28
28
  </div>
29
29
  <div class="menu-link col-md-auto fs-3 p-3 text-center">
30
- <a href="contact-us.html">Issue Tracking</a>
30
+ <a href="https://github.com/STARTcloud/vagrant-zones/issues">Issue Tracking</a>
31
31
  </div>
32
32
  </div>
33
33
  </div>
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'net/http'
4
4
  require 'vagrant-zones/util/subprocess'
5
- require 'pp'
6
5
  require 'vagrant/box_metadata'
7
6
  require 'vagrant/util/downloader'
8
7
  require 'vagrant/util/platform'
@@ -29,7 +29,7 @@ module VagrantPlugins
29
29
  @winalcheck = 'EVENT: The CMD command is now available.'
30
30
  @winlcheck = 'EVENT: The CMD command is now available.'
31
31
  @zunlockbootkey = ''
32
- @zunlockboot = false
32
+ @zunlockboot = 'Importing ZFS root pool'
33
33
  @safe_restart = nil
34
34
  @safe_shutdown = nil
35
35
  @debug_boot = nil
@@ -714,7 +714,7 @@ module VagrantPlugins
714
714
  execute(false, "#{@pfexec} zfs create #{sparse} #{refres} -V #{bootconfigs['size']} #{datasetroot}")
715
715
 
716
716
  ## Import template to boot volume
717
- commandtransfer = "#{@pfexec} pv -n #{@machine.box.directory.join('box.zss')} | #{@pfexec} zfs recv -u -v -F #{datasetroot} "
717
+ commandtransfer = "#{@pfexec} pv -n #{@machine.box.directory.join('box.zss')} | #{@pfexec} zfs recv -u -v -F #{datasetroot}"
718
718
  uii.info(I18n.t('vagrant_zones.template_import_path'))
719
719
  uii.info(" #{@machine.box.directory.join('box.zss')}")
720
720
  Util::Subprocess.new commandtransfer do |_stdout, stderr, _thread|
@@ -725,6 +725,10 @@ module VagrantPlugins
725
725
  end
726
726
  end
727
727
  uii.clear_line
728
+
729
+ uii.info(I18n.t('vagrant_zones.template_import_path_set_size'))
730
+ execute(false, "#{@pfexec} zfs set volsize=#{bootconfigs['size']} #{datasetroot}")
731
+
728
732
  when 'illumos' || 'kvm'
729
733
  raise Errors::NotYetImplemented
730
734
  else
@@ -1137,7 +1141,7 @@ module VagrantPlugins
1137
1141
  network(uii, 'setup') if config.brand == 'bhyve' && !config.cloud_init_enabled
1138
1142
  end
1139
1143
 
1140
- ## this allows us a terminal to pass commands and manipulate the VM OS via serial/tty
1144
+ ## this allows us a terminal to pass commands and manipulate the VM OS via serial/tty, I want to redo this at some point
1141
1145
  def zloginboot(uii)
1142
1146
  name = @machine.name
1143
1147
  config = @machine.provider_config
@@ -1148,6 +1152,7 @@ module VagrantPlugins
1148
1152
  bstring = ' OK ' if config.booted_string.nil?
1149
1153
  bstring = config.booted_string unless config.booted_string.nil?
1150
1154
  zunlockboot = 'Importing ZFS root pool'
1155
+ zunlockboot = config.zunlockboot unless config.zunlockboot.nil?
1151
1156
  zunlockbootkey = config.zunlockbootkey unless config.zunlockbootkey.nil?
1152
1157
  pcheck = 'Password:'
1153
1158
  uii.info(I18n.t('vagrant_zones.automated-zlogin'))
@@ -1292,7 +1297,7 @@ module VagrantPlugins
1292
1297
  end
1293
1298
  if zlogin_read.expect(/Username:/)
1294
1299
  uii.info(I18n.t('vagrant_zones.windows_enter_username'))
1295
- zlogin_write.printf("Administrator\n")
1300
+ zlogin_write.printf("#{user(@machine)}\n")
1296
1301
  end
1297
1302
  if zlogin_read.expect(/Domain/)
1298
1303
  uii.info(I18n.t('vagrant_zones.windows_enter_domain'))
@@ -1300,7 +1305,7 @@ module VagrantPlugins
1300
1305
  end
1301
1306
  if zlogin_read.expect(/Password/)
1302
1307
  uii.info(I18n.t('vagrant_zones.windows_enter_password'))
1303
- zlogin_write.printf("P@ssWord22\n")
1308
+ zlogin_write.printf("#{vagrantuserpass(@machine)}\n")
1304
1309
  end
1305
1310
  if zlogin_read.expect(/#{cmd}/)
1306
1311
  uii.info(I18n.t('vagrant_zones.windows_cmd_accessible'))
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.3'
5
+ VERSION = '0.1.8'
6
6
  end
7
7
  end
data/locales/en.yml CHANGED
@@ -195,6 +195,8 @@ en:
195
195
  - Importing Box template to disk ==>
196
196
  template_import_path: |-
197
197
  - Template path:
198
+ template_import_path_set_size: |-
199
+ - Setting Boot Volume Size
198
200
  importing_joyent_image: |-
199
201
  - Importing Joyent image ==>
200
202
  graceful_restart: |-
@@ -298,7 +300,7 @@ en:
298
300
  automated-zbootunlock: |-
299
301
  - Unlocking LUKS Keystore for the boot disk
300
302
  automated-zlogin-root: |-
301
- - Impersonatig root, Waiting a few seconds
303
+ - Impersonating root, Waiting a few seconds
302
304
  windows_skip_first_boot: |-
303
305
  - Skipping First EVENT for CMD due to Sysprep Reboot
304
306
  windows_start_cmd: |-
@@ -2,8 +2,6 @@
2
2
 
3
3
  Encoding.default_external = Encoding::UTF_8
4
4
 
5
- Encoding.default_internal = Encoding::UTF_8
6
-
7
5
  require File.expand_path('lib/vagrant-zones/version', __dir__)
8
6
 
9
7
  Gem::Specification.new do |spec|
@@ -35,9 +33,8 @@ Gem::Specification.new do |spec|
35
33
  spec.add_runtime_dependency 'iniparse', '~> 1.0'
36
34
  spec.add_runtime_dependency 'log4r', '~> 1.1'
37
35
  spec.add_runtime_dependency 'netaddr', '~> 2.0', '>= 2.0.4'
38
- spec.add_runtime_dependency 'nokogiri', '<= 1.13.6'
39
36
  spec.add_runtime_dependency 'ruby_expect', '~> 1.7', '>= 1.7.5'
40
- spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.25'
37
+ spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.3'
41
38
  spec.add_development_dependency 'code-scanning-rubocop', '~> 0.5', '>= 0.5.0'
42
39
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
43
40
  spec.add_development_dependency 'rspec', '~> 3.4'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-13 00:00:00.000000000 Z
11
+ date: 2022-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: 2.0.4
75
- - !ruby/object:Gem::Dependency
76
- name: nokogiri
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "<="
80
- - !ruby/object:Gem::Version
81
- version: 1.13.6
82
- type: :runtime
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "<="
87
- - !ruby/object:Gem::Version
88
- version: 1.13.6
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: ruby_expect
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +101,7 @@ dependencies:
115
101
  version: '2.2'
116
102
  - - ">="
117
103
  - !ruby/object:Gem::Version
118
- version: 2.2.25
104
+ version: 2.2.3
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
@@ -125,7 +111,7 @@ dependencies:
125
111
  version: '2.2'
126
112
  - - ">="
127
113
  - !ruby/object:Gem::Version
128
- version: 2.2.25
114
+ version: 2.2.3
129
115
  - !ruby/object:Gem::Dependency
130
116
  name: code-scanning-rubocop
131
117
  requirement: !ruby/object:Gem::Requirement
@@ -405,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
405
391
  - !ruby/object:Gem::Version
406
392
  version: 1.3.6
407
393
  requirements: []
408
- rubygems_version: 3.1.6
394
+ rubygems_version: 3.2.3
409
395
  signing_key:
410
396
  specification_version: 4
411
397
  summary: Vagrant provider plugin to support zones