vagrant-openshift 3.0.5 → 3.0.6

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
  SHA1:
3
- metadata.gz: 05edc816ea3867fcd242b1ab2fc58a34104f65fb
4
- data.tar.gz: 41b8d65098b4c85bb978bb8c3d0c0f61fdcaf724
3
+ metadata.gz: 1d5a7c4fe915cc96802a766de32c019d988dd6b9
4
+ data.tar.gz: 895d89041785dcac418956e3030f3bc0aebfb362
5
5
  SHA512:
6
- metadata.gz: d23f49c892ec3a715066f3f662539bdd1ce345bed566c14158fc679284e004441530d0279b1c2507150bcedcbb27108b29ebf622e54a2d7e2adccf05642879a4
7
- data.tar.gz: c81b286fe9dd4fe7101a5895e28520ca3b531e933b1c0cc73656057c75f89466a562128189a590dd459d536900d29295974e938c7a0d8d81fd2b8019405b34d1
6
+ metadata.gz: 94e8371d89e8cad77fff11fc7cc443511b9fccbe43d5ddac60ce5b78e84b4c945c5f18137559052ac5152b62c4248d3a39cb1fe411d722aeb330b3777e338a69
7
+ data.tar.gz: 3a3c703c08ef457df079b81dedb6585285ddee254c05f74aa63ba937e82cdd21672d2e874e7ea1fb2c0d346441d92a1a7d3f3b9d05b31718008d35ded706ea17
@@ -37,11 +37,20 @@ link:http://gembundler.com[Bundler] to get the dependencies:
37
37
  $ bundle
38
38
  ----
39
39
 
40
- Compile and install using Rake:
40
+ Compile using Rake:
41
41
 
42
42
  [source, sh]
43
43
  ----
44
- $ rake
44
+ $ bundle exec rake
45
+ ----
46
+
47
+ NOTE: If at this point a warning like `git://github.com/mitchellh/vagrant.git (at master) is not yet checked out. Run bundle install first.` appears, run `bundle install` and then re-run `bundle exec rake`. The warning will most likely not go away, but it is safe to proceed regardless.
48
+
49
+ Install the plugin using Vagrant:
50
+
51
+ [source,sh]
52
+ ----
53
+ $ vagrant plugin install pkg/vagrant-openshift-<release>.gem
45
54
  ----
46
55
 
47
56
  ===== From rubygems.org
@@ -136,8 +145,8 @@ $ vagrant test-origin --all
136
145
 
137
146
  === Developer environment
138
147
 
139
- To enable easy customization of the build environment, any files placed under '\~/.openshiftdev/home.d' will be copied to
140
- the vagrant user home directory. For example: '~/.openshiftdev/home.d/.bash_profile' will be copied to '.bash_profile'
148
+ To enable easy customization of the build environment, any files placed under `\~/.openshiftdev/home.d` will be copied to
149
+ the vagrant user home directory. For example: `~/.openshiftdev/home.d/.bash_profile` will be copied to `.bash_profile`
141
150
  on the vagrant VM.
142
151
 
143
152
 
@@ -169,7 +178,6 @@ You now need some AWS-specific configuration to specify which AMI to use.
169
178
 
170
179
  * Ensure your AWS credentials file is present at `~/.awscred`; it should have the following entries filled in:
171
180
 
172
- .'~/.awscred'
173
181
  ----
174
182
  AWSAccessKeyId=<AWS API Key>
175
183
  AWSSecretKey=<AWS API Secret>
@@ -221,7 +229,6 @@ NOTE: On some systems (e.g. mac) doing `export NOKOGIRI_USE_SYSTEM_LIBRARIES=1`
221
229
 
222
230
  * Edit `~/.openstackcred` and update your OpenStack credentials, endpoint and tenant name.
223
231
 
224
- .'~/.openstackcred'
225
232
  ----
226
233
  OSEndpoint=<OpenStack Endpoint URL, e.g. http://openshift.example.com:5000/v2.0/tokens>
227
234
  OSUsername=<OpenStack Username>
@@ -237,7 +244,6 @@ OSFloatingIPPool=<specific pool or 'false' (to use first found) if floating ip i
237
244
  section. You'll need to indicate at least the base image
238
245
  you'd like to start, as well as the user to access with.
239
246
 
240
- .'.vagrant-openshift.json'
241
247
  ----
242
248
  "openstack": {
243
249
  "image": "Fedora-Cloud-Base-20141203-21.x86_64",
@@ -169,7 +169,7 @@ module Vagrant
169
169
  Vagrant::Action::Builder.new.tap do |b|
170
170
  b.use RunOriginTests, options
171
171
  if options[:download]
172
- b.use DownloadArtifactsOrigin
172
+ b.use DownloadArtifactsOrigin, options
173
173
  end
174
174
  b.use TestExitCode
175
175
  end
@@ -197,7 +197,7 @@ module Vagrant
197
197
 
198
198
  def self.download_origin_artifacts(options)
199
199
  Vagrant::Action::Builder.new.tap do |b|
200
- b.use DownloadArtifactsOrigin
200
+ b.use DownloadArtifactsOrigin, options
201
201
  end
202
202
  end
203
203
 
@@ -21,9 +21,10 @@ module Vagrant
21
21
  class DownloadArtifactsOrigin
22
22
  include CommandHelper
23
23
 
24
- def initialize(app, env)
24
+ def initialize(app, env, options)
25
25
  @app = app
26
26
  @env = env
27
+ @options = options.clone
27
28
  end
28
29
 
29
30
  def call(env)
@@ -39,10 +40,13 @@ module Vagrant
39
40
  "/var/log/audit/audit.log" => artifacts_dir + "audit.log",
40
41
  "/tmp/openshift/" => artifacts_dir,
41
42
 
42
- "/data/src/github.com/openshift/origin/_output/local/releases/" => artifacts_dir + "release/",
43
43
  "/data/src/github.com/openshift/origin/assets/test/tmp/screenshots/" => artifacts_dir + "screenshots/"
44
44
  }
45
45
 
46
+ if @options[:download_release]
47
+ download_map["/data/src/github.com/openshift/origin/_output/local/releases/"] = artifacts_dir + "release/"
48
+ end
49
+
46
50
  download_map.each do |source,target|
47
51
  if ! machine.communicate.test("sudo ls #{source}")
48
52
  machine.ui.info "#{source} did not exist on the remote system. This is often the case for tests that were not run."
@@ -93,6 +93,7 @@ fi
93
93
  openvswitch \
94
94
  rubygems \
95
95
  screen \
96
+ ShellCheck \
96
97
  socat \
97
98
  sqlite-devel \
98
99
  sysstat \
@@ -193,9 +194,9 @@ systemctl enable ntpd
193
194
  groupadd -f docker
194
195
  usermod -a -G docker #{ssh_user}
195
196
 
196
- sed -i "s,^OPTIONS='\\(.*\\)',OPTIONS='--insecure-registry=172.30.0.0/16 \\1'," /etc/sysconfig/docker
197
- sed -i "s,^OPTIONS=-\\(.*\\),OPTIONS='--insecure-registry=172.30.0.0/16 -\\1'," /etc/sysconfig/docker
198
- sed -i "s,^OPTIONS=-\\(.*\\),OPTIONS='--insecure-registry=ci.dev.openshift.redhat.com:5000 -\\1'," /etc/sysconfig/docker
197
+ ADDITIONAL_OPTIONS='--insecure-registry=172.30.0.0/16 --insecure-registry=ci.dev.openshift.redhat.com:5000'
198
+ sed -i "s,^OPTIONS='\\(.*\\)',OPTIONS='${ADDITIONAL_OPTIONS} \\1'," /etc/sysconfig/docker
199
+ sed -i "s,^OPTIONS=-\\(.*\\),OPTIONS='${ADDITIONAL_OPTIONS} -\\1'," /etc/sysconfig/docker
199
200
  sed -i "s,^ADD_REGISTRY='\\(.*\\)',#ADD_REGISTRY='--add-registry=docker.io \\1'," /etc/sysconfig/docker
200
201
 
201
202
  cat /etc/sysconfig/docker
@@ -219,10 +220,10 @@ then
219
220
 
220
221
  sudo lvcreate -n openshift-xfs-vol-dir -l 100%FREE /dev/${VG}
221
222
  sudo mkfs.xfs /dev/${VG}/openshift-xfs-vol-dir
222
- sudo mkdir -p /tmp/openshift/xfs-vol-dir
223
- sudo sh -c "echo /dev/${VG}/openshift-xfs-vol-dir /tmp/openshift/xfs-vol-dir xfs gquota 1 1 >> /etc/fstab"
224
- sudo mount /tmp/openshift/xfs-vol-dir
225
- sudo chown -R #{ssh_user}:#{ssh_user} /tmp/openshift
223
+ sudo mkdir -p /mnt/openshift-xfs-vol-dir
224
+ sudo sh -c "echo /dev/${VG}/openshift-xfs-vol-dir /mnt/openshift-xfs-vol-dir xfs gquota 1 1 >> /etc/fstab"
225
+ sudo mount /mnt/openshift-xfs-vol-dir
226
+ sudo chown -R #{ssh_user}:#{ssh_user} /mnt/openshift-xfs-vol-dir
226
227
  fi
227
228
 
228
229
  # Force socket reuse
@@ -31,7 +31,7 @@ module Vagrant
31
31
  if is_rhel
32
32
  ssh_user = env[:machine].ssh_info[:username]
33
33
  sudo(env[:machine], %{
34
- set -x
34
+ set -ex
35
35
 
36
36
  # inside temporary directory create docker build context for the new base image
37
37
  contextdir=$(mktemp -d)
@@ -42,6 +42,10 @@ cp /var/lib/yum/*.pem $contextdir/certs
42
42
  cp /etc/yum/vars/* $contextdir/vars
43
43
  cp /etc/yum.repos.d/* $contextdir/repos
44
44
 
45
+ # yum magic that auto-replaces REGION in repos doesn't work
46
+ # when running inside a docker container, so harcode the value.
47
+ sed -i s/REGION.aws.ce.redhat.com/us-east-1.aws.ce.redhat.com/ $contextdir/repos/redhat-rhui*
48
+
45
49
  # remove google chrome repo
46
50
  rm -rf $contextdir/repos/*chrome*.repo
47
51
 
@@ -83,6 +87,9 @@ EOF
83
87
 
84
88
  docker build --rm -t rhel7.2 $contextdir
85
89
 
90
+ # make sure the new rhel7.2 image has valid certs
91
+ docker run rhel7.2 yum install -y tar
92
+
86
93
  # cleaning
87
94
  rm -rf $contextdir
88
95
  })
@@ -31,6 +31,10 @@ module Vagrant
31
31
  opts = OptionParser.new do |o|
32
32
  o.banner = "Usage: vagrant download-artifacts-origin [machine-name]"
33
33
  o.separator ""
34
+
35
+ o.on("", "--include-release-artifacts", String, "Include release binaries") do |f|
36
+ options[:download_release] = true
37
+ end
34
38
  end
35
39
 
36
40
  # Parse the options
@@ -59,6 +59,10 @@ module Vagrant
59
59
  options[:download] = true
60
60
  end
61
61
 
62
+ o.on("", "--download-release-artifacts", String, "Download release binaries") do |f|
63
+ options[:download_release] = true
64
+ end
65
+
62
66
  o.on("-s","--skip-image-cleanup", String, "Skip Docker image teardown for E2E test") do |f|
63
67
  options[:skip_image_cleanup] = true
64
68
  end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Vagrant
18
18
  module Openshift
19
- VERSION = "3.0.5"
19
+ VERSION = "3.0.6"
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: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Hat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-15 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake