vagrant-openshift 2.0.10 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.asciidoc +9 -10
  3. data/lib/vagrant-openshift/action.rb +43 -31
  4. data/lib/vagrant-openshift/action/{build_openshift.rb → build_origin.rb} +4 -4
  5. data/lib/vagrant-openshift/action/{build_openshift_base_images.rb → build_origin_base_images.rb} +1 -1
  6. data/lib/vagrant-openshift/action/clone_upstream_repositories.rb +5 -5
  7. data/lib/vagrant-openshift/action/create_bare_repo_placeholders.rb +4 -4
  8. data/lib/vagrant-openshift/action/create_yum_repositories.rb +3 -1
  9. data/lib/vagrant-openshift/action/{download_artifacts_openshift.rb → download_artifacts_origin.rb} +3 -4
  10. data/lib/vagrant-openshift/action/download_artifacts_sti.rb +1 -1
  11. data/lib/vagrant-openshift/action/generate_template.rb +3 -5
  12. data/lib/vagrant-openshift/action/{install_openshift.rb → install_origin.rb} +1 -1
  13. data/lib/vagrant-openshift/action/{install_openshift_asset_dependencies.rb → install_origin_asset_dependencies.rb} +2 -2
  14. data/lib/vagrant-openshift/action/{install_openshift_base_dependencies.rb → install_origin_base_dependencies.rb} +15 -13
  15. data/lib/vagrant-openshift/action/{install_openshift_rhel7.rb → install_origin_rhel7.rb} +3 -4
  16. data/lib/vagrant-openshift/action/{local_openshift_checkout.rb → local_origin_checkout.rb} +2 -2
  17. data/lib/vagrant-openshift/action/{run_openshift_tests.rb → run_origin_tests.rb} +27 -3
  18. data/lib/vagrant-openshift/action/sync_local_repository.rb +8 -3
  19. data/lib/vagrant-openshift/command/{build_openshift.rb → build_origin.rb} +4 -4
  20. data/lib/vagrant-openshift/command/{build_openshift_base.rb → build_origin_base.rb} +4 -4
  21. data/lib/vagrant-openshift/command/{build_openshift_base_images.rb → build_origin_base_images.rb} +4 -4
  22. data/lib/vagrant-openshift/command/{install_openshift_assets_base.rb → download_artifacts_origin.rb} +4 -4
  23. data/lib/vagrant-openshift/command/download_artifacts_sti.rb +49 -0
  24. data/lib/vagrant-openshift/command/{install_openshift.rb → install_origin.rb} +4 -4
  25. data/lib/vagrant-openshift/command/install_origin_assets_base.rb +49 -0
  26. data/lib/vagrant-openshift/command/{local_openshift_setup.rb → local_origin_setup.rb} +5 -5
  27. data/lib/vagrant-openshift/command/origin_init.rb +4 -4
  28. data/lib/vagrant-openshift/command/{repo_sync_openshift.rb → repo_sync_origin.rb} +3 -3
  29. data/lib/vagrant-openshift/command/{test_openshift.rb → test_origin.rb} +12 -4
  30. data/lib/vagrant-openshift/command/{test_openshift_image.rb → test_origin_image.rb} +2 -2
  31. data/lib/vagrant-openshift/command/{try_restart_openshift.rb → try_restart_origin.rb} +4 -4
  32. data/lib/vagrant-openshift/plugin.rb +40 -35
  33. data/lib/vagrant-openshift/templates/command/init-openshift/box_info.yaml +25 -42
  34. data/lib/vagrant-openshift/version.rb +1 -1
  35. metadata +23 -22
  36. data/lib/vagrant-openshift/command/bootstrap_openshift.rb +0 -50
@@ -18,7 +18,7 @@ require_relative "../action"
18
18
  module Vagrant
19
19
  module Openshift
20
20
  module Commands
21
- class RepoSyncOpenshift < Vagrant.plugin(2, :command)
21
+ class RepoSyncOrigin < Vagrant.plugin(2, :command)
22
22
  include CommandHelper
23
23
 
24
24
  def self.synopsis
@@ -33,7 +33,7 @@ module Vagrant
33
33
  options[:source] = false
34
34
 
35
35
  opts = OptionParser.new do |o|
36
- o.banner = "Usage: vagrant sync-openshift [vm-name]"
36
+ o.banner = "Usage: vagrant sync-origin [vm-name]"
37
37
  o.separator ""
38
38
 
39
39
  o.on("-s", "--source", "Sync the source (not required if using synced folders)") do |f|
@@ -59,7 +59,7 @@ module Vagrant
59
59
  return if !argv
60
60
 
61
61
  with_target_vms(argv, :reverse => true) do |machine|
62
- actions = Vagrant::Openshift::Action.repo_sync_openshift(options)
62
+ actions = Vagrant::Openshift::Action.repo_sync_origin(options)
63
63
  @env.action_runner.run actions, {:machine => machine}
64
64
  0
65
65
  end
@@ -18,11 +18,11 @@ require_relative "../action"
18
18
  module Vagrant
19
19
  module Openshift
20
20
  module Commands
21
- class TestOpenshift < Vagrant.plugin(2, :command)
21
+ class TestOrigin < Vagrant.plugin(2, :command)
22
22
  include CommandHelper
23
23
 
24
24
  def self.synopsis
25
- "run the openshift tests"
25
+ "run the origin tests"
26
26
  end
27
27
 
28
28
  def execute
@@ -32,13 +32,17 @@ module Vagrant
32
32
  options[:extended_test_packages] = ""
33
33
 
34
34
  opts = OptionParser.new do |o|
35
- o.banner = "Usage: vagrant test-openshift [machine-name]"
35
+ o.banner = "Usage: vagrant test-origin [machine-name]"
36
36
  o.separator ""
37
37
 
38
38
  o.on("-a", "--all", String, "Run all tests") do |f|
39
39
  options[:all] = true
40
40
  end
41
41
 
42
+ o.on("", "--skip-check", String, "Skip unit, integration and e2e tests") do |f|
43
+ options[:skip_check] = true
44
+ end
45
+
42
46
  o.on("-e", "--extended TEST_BUCKETS", String, "Comma delimited list of extended test packages to run") do |f|
43
47
  options[:extended_test_packages] = f
44
48
  end
@@ -54,6 +58,10 @@ module Vagrant
54
58
  o.on("-c","--report-coverage", String, "Generate code coverage report") do |f|
55
59
  options[:report_coverage] = true
56
60
  end
61
+
62
+ o.on("-j","--parallel", String, "Run parallel make") do |f|
63
+ options[:parallel] = true
64
+ end
57
65
  end
58
66
 
59
67
  # Parse the options
@@ -61,7 +69,7 @@ module Vagrant
61
69
  return if !argv
62
70
 
63
71
  with_target_vms(argv, :reverse => true) do |machine|
64
- actions = Vagrant::Openshift::Action.run_openshift_tests(options)
72
+ actions = Vagrant::Openshift::Action.run_origin_tests(options)
65
73
  @env.action_runner.run actions, {:machine => machine}
66
74
  0
67
75
  end
@@ -19,7 +19,7 @@ module Vagrant
19
19
  module Openshift
20
20
  module Commands
21
21
 
22
- class TestOpenshiftImage < Vagrant.plugin(2, :command)
22
+ class TestOriginImage < Vagrant.plugin(2, :command)
23
23
  include CommandHelper
24
24
 
25
25
  def self.synopsis
@@ -35,7 +35,7 @@ module Vagrant
35
35
  options[:registry] = ""
36
36
 
37
37
  opts = OptionParser.new do |o|
38
- o.banner = "Usage: vagrant test-openshift-image --image IMAGE [vm-name]"
38
+ o.banner = "Usage: vagrant test-origin-image --image IMAGE [vm-name]"
39
39
  o.separator ""
40
40
 
41
41
  o.on("-i", "--image IMAGE", String, "image to test") do |o|
@@ -18,11 +18,11 @@ require_relative "../action"
18
18
  module Vagrant
19
19
  module Openshift
20
20
  module Commands
21
- class TryRestartOpenshift < Vagrant.plugin(2, :command)
21
+ class TryRestartOrigin < Vagrant.plugin(2, :command)
22
22
  include CommandHelper
23
23
 
24
24
  def self.synopsis
25
- "restarts openshift if it's already running"
25
+ "restarts origin if it's already running"
26
26
  end
27
27
 
28
28
  def execute
@@ -30,7 +30,7 @@ module Vagrant
30
30
  options[:clean] = false
31
31
 
32
32
  opts = OptionParser.new do |o|
33
- o.banner = "Usage: vagrant try-restart-openshift [vm-name]"
33
+ o.banner = "Usage: vagrant try-restart-origin [vm-name]"
34
34
  o.separator ""
35
35
  end
36
36
 
@@ -39,7 +39,7 @@ module Vagrant
39
39
  return if !argv
40
40
 
41
41
  with_target_vms(argv, :reverse => true) do |machine|
42
- actions = Vagrant::Openshift::Action.try_restart_openshift(options)
42
+ actions = Vagrant::Openshift::Action.try_restart_origin(options)
43
43
  @env.action_runner.run actions, {:machine => machine}
44
44
  0
45
45
  end
@@ -32,9 +32,9 @@ module Vagrant
32
32
  Config
33
33
  end
34
34
 
35
- command "sync-openshift" do
36
- require_relative "command/repo_sync_openshift"
37
- Commands::RepoSyncOpenshift
35
+ command "sync-origin" do
36
+ require_relative "command/repo_sync_origin"
37
+ Commands::RepoSyncOrigin
38
38
  end
39
39
 
40
40
  command "sync-sti" do
@@ -47,14 +47,14 @@ module Vagrant
47
47
  Commands::BuildAtomicHost
48
48
  end
49
49
 
50
- command "build-openshift-base" do
51
- require_relative "command/build_openshift_base"
52
- Commands::BuildOpenshiftBase
50
+ command "build-origin-base" do
51
+ require_relative "command/build_origin_base"
52
+ Commands::BuildOriginBase
53
53
  end
54
54
 
55
- command "build-openshift" do
56
- require_relative "command/build_openshift"
57
- Commands::BuildOpenshift
55
+ command "build-origin" do
56
+ require_relative "command/build_origin"
57
+ Commands::BuildOrigin
58
58
  end
59
59
 
60
60
  command "build-sti" do
@@ -62,24 +62,24 @@ module Vagrant
62
62
  Commands::BuildSti
63
63
  end
64
64
 
65
- command "install-openshift" do
66
- require_relative "command/install_openshift"
67
- Commands::InstallOpenshift
65
+ command "install-origin" do
66
+ require_relative "command/install_origin"
67
+ Commands::InstallOrigin
68
68
  end
69
69
 
70
- command "install-openshift-assets-base" do
71
- require_relative "command/install_openshift_assets_base"
72
- Commands::InstallOpenshiftAssetsBase
70
+ command "install-origin-assets-base" do
71
+ require_relative "command/install_origin_assets_base"
72
+ Commands::InstallOriginAssetsBase
73
73
  end
74
74
 
75
- command "try-restart-openshift" do
76
- require_relative "command/try_restart_openshift"
77
- Commands::TryRestartOpenshift
75
+ command "try-restart-origin" do
76
+ require_relative "command/try_restart_origin"
77
+ Commands::TryRestartOrigin
78
78
  end
79
79
 
80
- command "build-openshift-base-images" do
81
- require_relative "command/build_openshift_base_images"
82
- Commands::BuildOpenshiftBaseImages
80
+ command "build-origin-base-images" do
81
+ require_relative "command/build_origin_base_images"
82
+ Commands::BuildOriginBaseImages
83
83
  end
84
84
 
85
85
  command "push-openshift-images" do
@@ -92,9 +92,9 @@ module Vagrant
92
92
  Commands::OriginInit
93
93
  end
94
94
 
95
- command "openshift-local-checkout" do
96
- require_relative "command/local_openshift_setup"
97
- Commands::LocalOpenshiftSetup
95
+ command "origin-local-checkout" do
96
+ require_relative "command/local_origin_setup"
97
+ Commands::LocalOriginSetup
98
98
  end
99
99
 
100
100
  command "push-openshift-release" do
@@ -102,9 +102,9 @@ module Vagrant
102
102
  Commands::PushOpenshiftRelease
103
103
  end
104
104
 
105
- command "test-openshift" do
106
- require_relative "command/test_openshift"
107
- Commands::TestOpenshift
105
+ command "test-origin" do
106
+ require_relative "command/test_origin"
107
+ Commands::TestOrigin
108
108
  end
109
109
 
110
110
  command "test-sti" do
@@ -112,6 +112,16 @@ module Vagrant
112
112
  Commands::TestSti
113
113
  end
114
114
 
115
+ command "download-artifacts-origin" do
116
+ require_relative "command/download_artifacts_origin"
117
+ Commands::DownloadArtifactsOrigin
118
+ end
119
+
120
+ command "download-artifacts-sti" do
121
+ require_relative "command/download_artifacts_sti"
122
+ Commands::DownloadArtifactsSti
123
+ end
124
+
115
125
  command "create-ami" do
116
126
  require_relative "command/create_ami"
117
127
  Commands::CreateAMI
@@ -137,14 +147,9 @@ module Vagrant
137
147
  Commands::CheckoutRepositories
138
148
  end
139
149
 
140
- command "test-openshift-image" do
141
- require_relative "command/test_openshift_image"
142
- Commands::TestOpenshiftImage
143
- end
144
-
145
- command "bootstrap-openshift" do
146
- require_relative 'command/bootstrap_openshift'
147
- Commands::BootstrapOpenshift
150
+ command "test-origin-image" do
151
+ require_relative "command/test_origin_image"
152
+ Commands::TestOriginImage
148
153
  end
149
154
 
150
155
  provisioner(:openshift) do
@@ -51,20 +51,6 @@
51
51
  :openstack:
52
52
  :image: <CentOS 7>
53
53
  :ssh_user: centos
54
- :bootstrap:
55
- :virtualbox:
56
- :box_name: centos7_bootstrap
57
- :box_url: http://mirror.openshift.com/pub/vagrant/boxes/openshift3/centos7_virtualbox_bootstrap.box
58
- :libvirt:
59
- :box_name: centos7_bootstrap
60
- :box_url: http://mirror.openshift.com/pub/vagrant/boxes/openshift3/centos7_libvirt_bootstrap.box
61
- :aws:
62
- :ami: <AMI_ID>
63
- :ami_region: us-east-1
64
- :ssh_user: centos
65
- :machine_name: <AMI_NAME>
66
- :ebs_volume_size: 25
67
- :ami_tag_prefix: devenv-centos7-bootstrap_
68
54
  :fedora:
69
55
  :os:
70
56
  :virtualbox:
@@ -117,20 +103,6 @@
117
103
  :libvirt:
118
104
  :box_name: fedora_inst
119
105
  :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_libvirt_inst.box
120
- :bootstrap:
121
- :virtualbox:
122
- :box_name: fedora_bootstrap
123
- :box_url: http://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_virtualbox_bootstrap.box
124
- :aws:
125
- :ami: <AMI_ID>
126
- :ami_region: us-east-1
127
- :ssh_user: fedora
128
- :machine_name: <AMI_NAME>
129
- :ebs_volume_size: 25
130
- :ami_tag_prefix: devenv-fedora-bootstrap_
131
- :libvirt:
132
- :box_name: fedora_bootstrap
133
- :box_url: http://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_libvirt_bootstrap.box
134
106
  :rhel7:
135
107
  :os:
136
108
  :aws:
@@ -165,14 +137,37 @@
165
137
  :openstack:
166
138
  :image: <RHEL 7>
167
139
  :ssh_user: root
168
- :bootstrap:
140
+ :rhel7next:
141
+ :os:
142
+ :aws:
143
+ :ami: <AMI_ID>
144
+ :ami_region: us-east-1
145
+ :ssh_user: ec2-user
146
+ :machine_name: openshift-rhel7next
147
+ :ebs_volume_size: 25
148
+ :ami_tag_prefix: openshift-rhel7next_
149
+ :openstack:
150
+ :image: <RHEL 7>
151
+ :ssh_user: root
152
+ :deps:
153
+ :aws:
154
+ :ami: <AMI_ID>
155
+ :ami_region: us-east-1
156
+ :ssh_user: ec2-user
157
+ :machine_name: devenv-rhel7next-base
158
+ :ebs_volume_size: 25
159
+ :ami_tag_prefix: devenv-rhel7next-base_
160
+ :openstack:
161
+ :image: <RHEL 7>
162
+ :ssh_user: root
163
+ :inst:
169
164
  :aws:
170
165
  :ami: <AMI_ID>
171
166
  :ami_region: us-east-1
172
167
  :ssh_user: ec2-user
173
168
  :machine_name: <AMI_NAME>
174
169
  :ebs_volume_size: 25
175
- :ami_tag_prefix: devenv-rhel7-bootstrap_
170
+ :ami_tag_prefix: devenv-rhel7next_
176
171
  :openstack:
177
172
  :image: <RHEL 7>
178
173
  :ssh_user: root
@@ -213,15 +208,3 @@
213
208
  :image: <ATOMIC>
214
209
  :flavor: m1.small
215
210
  :ssh_user: root
216
- :bootstrap:
217
- :aws:
218
- :ami: <AMI_ID>
219
- :ami_region: us-east-1
220
- :ssh_user: cloud-user
221
- :machine_name: <AMI_NAME>
222
- :ebs_volume_size: 25
223
- :ami_tag_prefix: devenv-rhelatomic7-bootstrap_
224
- :openstack:
225
- :image: <ATOMIC>
226
- :flavor: m1.small
227
- :ssh_user: root
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Vagrant
18
18
  module Openshift
19
- VERSION = "2.0.10"
19
+ VERSION = "3.0.0"
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-openshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Hat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -123,8 +123,8 @@ files:
123
123
  - lib/vagrant-openshift.rb
124
124
  - lib/vagrant-openshift/action.rb
125
125
  - lib/vagrant-openshift/action/atomic_host_upgrade.rb
126
- - lib/vagrant-openshift/action/build_openshift.rb
127
- - lib/vagrant-openshift/action/build_openshift_base_images.rb
126
+ - lib/vagrant-openshift/action/build_origin.rb
127
+ - lib/vagrant-openshift/action/build_origin_base_images.rb
128
128
  - lib/vagrant-openshift/action/build_sti.rb
129
129
  - lib/vagrant-openshift/action/checkout_repositories.rb
130
130
  - lib/vagrant-openshift/action/clean.rb
@@ -133,20 +133,20 @@ files:
133
133
  - lib/vagrant-openshift/action/create_ami.rb
134
134
  - lib/vagrant-openshift/action/create_bare_repo_placeholders.rb
135
135
  - lib/vagrant-openshift/action/create_yum_repositories.rb
136
- - lib/vagrant-openshift/action/download_artifacts_openshift.rb
136
+ - lib/vagrant-openshift/action/download_artifacts_origin.rb
137
137
  - lib/vagrant-openshift/action/download_artifacts_sti.rb
138
138
  - lib/vagrant-openshift/action/generate_template.rb
139
- - lib/vagrant-openshift/action/install_openshift.rb
140
- - lib/vagrant-openshift/action/install_openshift_asset_dependencies.rb
141
- - lib/vagrant-openshift/action/install_openshift_base_dependencies.rb
142
- - lib/vagrant-openshift/action/install_openshift_rhel7.rb
143
- - lib/vagrant-openshift/action/local_openshift_checkout.rb
139
+ - lib/vagrant-openshift/action/install_origin.rb
140
+ - lib/vagrant-openshift/action/install_origin_asset_dependencies.rb
141
+ - lib/vagrant-openshift/action/install_origin_base_dependencies.rb
142
+ - lib/vagrant-openshift/action/install_origin_rhel7.rb
143
+ - lib/vagrant-openshift/action/local_origin_checkout.rb
144
144
  - lib/vagrant-openshift/action/modify_ami.rb
145
145
  - lib/vagrant-openshift/action/modify_instance.rb
146
146
  - lib/vagrant-openshift/action/prepare_ssh_config.rb
147
147
  - lib/vagrant-openshift/action/push_openshift_images.rb
148
148
  - lib/vagrant-openshift/action/push_openshift_release.rb
149
- - lib/vagrant-openshift/action/run_openshift_tests.rb
149
+ - lib/vagrant-openshift/action/run_origin_tests.rb
150
150
  - lib/vagrant-openshift/action/run_sti_tests.rb
151
151
  - lib/vagrant-openshift/action/run_systemctl.rb
152
152
  - lib/vagrant-openshift/action/set_host_name.rb
@@ -154,29 +154,30 @@ files:
154
154
  - lib/vagrant-openshift/action/sync_upstream_repository.rb
155
155
  - lib/vagrant-openshift/action/test_exit_code.rb
156
156
  - lib/vagrant-openshift/action/yum_update.rb
157
- - lib/vagrant-openshift/command/bootstrap_openshift.rb
158
157
  - lib/vagrant-openshift/command/build_atomic_host.rb
159
- - lib/vagrant-openshift/command/build_openshift.rb
160
- - lib/vagrant-openshift/command/build_openshift_base.rb
161
- - lib/vagrant-openshift/command/build_openshift_base_images.rb
158
+ - lib/vagrant-openshift/command/build_origin.rb
159
+ - lib/vagrant-openshift/command/build_origin_base.rb
160
+ - lib/vagrant-openshift/command/build_origin_base_images.rb
162
161
  - lib/vagrant-openshift/command/build_sti.rb
163
162
  - lib/vagrant-openshift/command/checkout_repositories.rb
164
163
  - lib/vagrant-openshift/command/clone_upstream_repositories.rb
165
164
  - lib/vagrant-openshift/command/create_ami.rb
166
- - lib/vagrant-openshift/command/install_openshift.rb
167
- - lib/vagrant-openshift/command/install_openshift_assets_base.rb
168
- - lib/vagrant-openshift/command/local_openshift_setup.rb
165
+ - lib/vagrant-openshift/command/download_artifacts_origin.rb
166
+ - lib/vagrant-openshift/command/download_artifacts_sti.rb
167
+ - lib/vagrant-openshift/command/install_origin.rb
168
+ - lib/vagrant-openshift/command/install_origin_assets_base.rb
169
+ - lib/vagrant-openshift/command/local_origin_setup.rb
169
170
  - lib/vagrant-openshift/command/modify_ami.rb
170
171
  - lib/vagrant-openshift/command/modify_instance.rb
171
172
  - lib/vagrant-openshift/command/origin_init.rb
172
173
  - lib/vagrant-openshift/command/push_openshift_images.rb
173
174
  - lib/vagrant-openshift/command/push_openshift_release.rb
174
- - lib/vagrant-openshift/command/repo_sync_openshift.rb
175
+ - lib/vagrant-openshift/command/repo_sync_origin.rb
175
176
  - lib/vagrant-openshift/command/repo_sync_sti.rb
176
- - lib/vagrant-openshift/command/test_openshift.rb
177
- - lib/vagrant-openshift/command/test_openshift_image.rb
177
+ - lib/vagrant-openshift/command/test_origin.rb
178
+ - lib/vagrant-openshift/command/test_origin_image.rb
178
179
  - lib/vagrant-openshift/command/test_sti.rb
179
- - lib/vagrant-openshift/command/try_restart_openshift.rb
180
+ - lib/vagrant-openshift/command/try_restart_origin.rb
180
181
  - lib/vagrant-openshift/config.rb
181
182
  - lib/vagrant-openshift/constants.rb
182
183
  - lib/vagrant-openshift/helper/command_helper.rb