vagrant-openshift 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +1 -0
  3. data/.gitignore +24 -0
  4. data/Gemfile +11 -0
  5. data/LICENSE.txt +13 -0
  6. data/README.asciidoc +379 -0
  7. data/Rakefile +53 -0
  8. data/lib/vagrant-openshift/action/build_geard.rb +41 -0
  9. data/lib/vagrant-openshift/action/build_geard_broker.rb +59 -0
  10. data/lib/vagrant-openshift/action/build_geard_console.rb +55 -0
  11. data/lib/vagrant-openshift/action/build_geard_images.rb +54 -0
  12. data/lib/vagrant-openshift/action/build_sources.rb +39 -0
  13. data/lib/vagrant-openshift/action/checkout_repositories.rb +72 -0
  14. data/lib/vagrant-openshift/action/checkout_tests.rb +57 -0
  15. data/lib/vagrant-openshift/action/clean.rb +51 -0
  16. data/lib/vagrant-openshift/action/clean_network_setup.rb +52 -0
  17. data/lib/vagrant-openshift/action/clone_upstream_repositories.rb +65 -0
  18. data/lib/vagrant-openshift/action/create_ami.rb +54 -0
  19. data/lib/vagrant-openshift/action/create_bare_repo_placeholders.rb +53 -0
  20. data/lib/vagrant-openshift/action/create_puppet_file.rb +84 -0
  21. data/lib/vagrant-openshift/action/create_test_users.rb +36 -0
  22. data/lib/vagrant-openshift/action/create_yum_repositories.rb +121 -0
  23. data/lib/vagrant-openshift/action/download_artifacts.rb +70 -0
  24. data/lib/vagrant-openshift/action/generate_template.rb +89 -0
  25. data/lib/vagrant-openshift/action/idle_all_gears.rb +36 -0
  26. data/lib/vagrant-openshift/action/install_build_dependencies.rb +48 -0
  27. data/lib/vagrant-openshift/action/install_geard.rb +76 -0
  28. data/lib/vagrant-openshift/action/install_geard_base_dependencies.rb +72 -0
  29. data/lib/vagrant-openshift/action/install_geard_broker.rb +39 -0
  30. data/lib/vagrant-openshift/action/install_geard_images.rb +51 -0
  31. data/lib/vagrant-openshift/action/install_open_shift_dependencies.rb +50 -0
  32. data/lib/vagrant-openshift/action/install_rhc.rb +42 -0
  33. data/lib/vagrant-openshift/action/local_geard_checkout.rb +58 -0
  34. data/lib/vagrant-openshift/action/local_repo_checkout.rb +47 -0
  35. data/lib/vagrant-openshift/action/modify_ami.rb +54 -0
  36. data/lib/vagrant-openshift/action/modify_instance.rb +71 -0
  37. data/lib/vagrant-openshift/action/prepare_ssh_config.rb +89 -0
  38. data/lib/vagrant-openshift/action/preserve_mcollective_logs.rb +48 -0
  39. data/lib/vagrant-openshift/action/restart_geard.rb +39 -0
  40. data/lib/vagrant-openshift/action/restart_geard_broker.rb +43 -0
  41. data/lib/vagrant-openshift/action/restart_geard_console.rb +43 -0
  42. data/lib/vagrant-openshift/action/run_geard_tests.rb +57 -0
  43. data/lib/vagrant-openshift/action/run_tests.rb +47 -0
  44. data/lib/vagrant-openshift/action/set_host_name.rb +43 -0
  45. data/lib/vagrant-openshift/action/setup_bind_dns_key.rb +38 -0
  46. data/lib/vagrant-openshift/action/setup_bind_host.rb +141 -0
  47. data/lib/vagrant-openshift/action/setup_builder_files.rb +57 -0
  48. data/lib/vagrant-openshift/action/setup_geard_broker.rb +71 -0
  49. data/lib/vagrant-openshift/action/sync_local_repository.rb +115 -0
  50. data/lib/vagrant-openshift/action/sync_upstream_repository.rb +71 -0
  51. data/lib/vagrant-openshift/action/test_exit_code.rb +36 -0
  52. data/lib/vagrant-openshift/action/uninstall_openshift_rpms.rb +37 -0
  53. data/lib/vagrant-openshift/action/yum_update.rb +67 -0
  54. data/lib/vagrant-openshift/action.rb +308 -0
  55. data/lib/vagrant-openshift/command/build_geard.rb +51 -0
  56. data/lib/vagrant-openshift/command/build_geard_base.rb +51 -0
  57. data/lib/vagrant-openshift/command/build_geard_broker.rb +59 -0
  58. data/lib/vagrant-openshift/command/build_geard_console.rb +59 -0
  59. data/lib/vagrant-openshift/command/build_geard_images.rb +68 -0
  60. data/lib/vagrant-openshift/command/build_origin_base.rb +51 -0
  61. data/lib/vagrant-openshift/command/checkout_repositories.rb +55 -0
  62. data/lib/vagrant-openshift/command/clone_upstream_repositories.rb +54 -0
  63. data/lib/vagrant-openshift/command/create_ami.rb +49 -0
  64. data/lib/vagrant-openshift/command/install_geard.rb +51 -0
  65. data/lib/vagrant-openshift/command/install_geard_broker.rb +51 -0
  66. data/lib/vagrant-openshift/command/install_rhc.rb +49 -0
  67. data/lib/vagrant-openshift/command/local_geard_setup.rb +62 -0
  68. data/lib/vagrant-openshift/command/local_repo_setup.rb +62 -0
  69. data/lib/vagrant-openshift/command/modify_ami.rb +54 -0
  70. data/lib/vagrant-openshift/command/modify_instance.rb +63 -0
  71. data/lib/vagrant-openshift/command/openshift_init.rb +83 -0
  72. data/lib/vagrant-openshift/command/repo_sync.rb +73 -0
  73. data/lib/vagrant-openshift/command/repo_sync_geard.rb +78 -0
  74. data/lib/vagrant-openshift/command/restart_geard.rb +51 -0
  75. data/lib/vagrant-openshift/command/restart_geard_broker.rb +51 -0
  76. data/lib/vagrant-openshift/command/restart_geard_console.rb +51 -0
  77. data/lib/vagrant-openshift/command/setup_geard_broker.rb +49 -0
  78. data/lib/vagrant-openshift/command/test.rb +108 -0
  79. data/lib/vagrant-openshift/command/test_geard.rb +59 -0
  80. data/lib/vagrant-openshift/command/test_geard_image.rb +147 -0
  81. data/lib/vagrant-openshift/config.rb +56 -0
  82. data/lib/vagrant-openshift/constants.rb +111 -0
  83. data/lib/vagrant-openshift/helper/command_helper.rb +213 -0
  84. data/lib/vagrant-openshift/plugin.rb +171 -0
  85. data/lib/vagrant-openshift/provisioner.rb +82 -0
  86. data/lib/vagrant-openshift/templates/builder/Rakefile +231 -0
  87. data/lib/vagrant-openshift/templates/builder/lib/.gitkeep +0 -0
  88. data/lib/vagrant-openshift/templates/builder/lib/rpm.rb +248 -0
  89. data/lib/vagrant-openshift/templates/builder/lib/test.rb +432 -0
  90. data/lib/vagrant-openshift/templates/builder/yum-listbuilddep +124 -0
  91. data/lib/vagrant-openshift/templates/command/init-openshift/Vagrantfile.erb +175 -0
  92. data/lib/vagrant-openshift/templates/command/init-openshift/box_info.yaml +152 -0
  93. data/lib/vagrant-openshift/version.rb +21 -0
  94. data/lib/vagrant-openshift.rb +34 -0
  95. data/vagrant-openshift.gemspec +43 -0
  96. metadata +234 -0
@@ -0,0 +1,175 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ VAGRANTFILE_API_VERSION = "2"
5
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
6
+ # All Vagrant configuration is done here. The most common configuration
7
+ # options are documented and commented below. For a complete reference,
8
+ # please see the online documentation at vagrantup.com.
9
+
10
+ # Create a private network, which allows host-only access to the machine
11
+ # using a specific IP.
12
+ # config.vm.network :private_network, ip: "192.168.33.10"
13
+
14
+ # If true, then any SSH connections made will enable agent forwarding.
15
+ # Default value: false
16
+ # config.ssh.forward_agent = true
17
+
18
+ # Share an additional folder to the guest VM. The first argument is
19
+ # the path on the host to the actual folder. The second argument is
20
+ # the path on the guest to mount the folder. And the optional third
21
+ # argument is a set of non-required options.
22
+ config.vm.synced_folder ".", "/vagrant", disabled: true
23
+
24
+ gopath = nil
25
+ if ENV['GOPATH'] && !ENV['GOPATH'].empty?
26
+ gopath = File.expand_path(ENV['GOPATH'].split(/:/).last)
27
+ vagrantfile = File.expand_path(File.dirname(__FILE__))
28
+ if !vagrantfile.index(gopath)
29
+ puts "\nYou have GOPATH set to '#{gopath}', which should contain your OpenShift source repositories, but are running from '#{vagrantfile}' instead.\n\nSet GOPATH='' when running vagrant or move your openshift repos under '#{gopath}/src/github.com/openshift'."
30
+ else
31
+ config.vm.synced_folder gopath, "/data", create: true
32
+ end
33
+ end
34
+
35
+ # Box to load when booting the vagrant VM. This section applicable only to VirtualBox.
36
+ # Other providers may override this value
37
+ config.vm.box = "<%= box_info[:virtualbox][:box_name] %>"
38
+ config.vm.box_url = "<%= box_info[:virtualbox][:box_url] %>"
39
+ config.vm.hostname = 'broker.example.com'
40
+
41
+ # Provider-specific configuration so you can fine-tune various
42
+ # backing providers for Vagrant.
43
+ config.vm.provider :virtualbox do |vb|
44
+ vb.gui = false
45
+ vb.name = "<%= box_info[:instance_name] %>"
46
+ vb.customize ["modifyvm", :id, "--memory", "2048"]
47
+ <% box_info[:port_mappings].each do |guest_port,host_port| %>
48
+ config.vm.network "forwarded_port", guest: <%=guest_port%>, host: <%=host_port%>
49
+ <% end %>
50
+ end
51
+
52
+ config.vm.provider "vmware_fusion" do |vmf, override|
53
+ vmf.gui = false
54
+ vmf.name = "<%= box_info[:instance_name] %>"
55
+ vmf.vmx["memsize"] = "2048"
56
+ override.vm.box = "<%= box_info[:vmware][:box_name] %>"
57
+ override.vm.box_url = "<%= box_info[:vmware][:box_url] %>"
58
+ end
59
+
60
+ config.vm.provider "vmware_workstation" do |vmw, override|
61
+ vmw.gui = false
62
+ vmw.name = "<%= box_info[:instance_name] %>"
63
+ vmw.vmx["memsize"] = "2048"
64
+ override.vm.box = "<%= box_info[:vmware][:box_name] %>"
65
+ override.vm.box_url = "<%= box_info[:vmware][:box_url] %>"
66
+ end
67
+
68
+ config.vm.provider :aws do |aws, override|
69
+ # You will need the latest AWS plugin for vagrant
70
+ # https://github.com/mitchellh/vagrant-aws
71
+
72
+ if gopath
73
+ override.vm.synced_folder gopath, "/data", disabled: true
74
+ end
75
+
76
+ aws_creds_file = Pathname.new(File.expand_path("<%= box_info[:aws_creds_file]%>"))
77
+ aws_creds = aws_creds_file.exist? ? Hash[*(File.open(aws_creds_file.to_s).readlines.map{ |l| l.split('=') }.flatten.map{ |i| i.strip })] : {}
78
+
79
+ override.vm.box = "dummy"
80
+ override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
81
+ override.ssh.username = "<%= box_info[:aws][:ami_ssh_user] %>"
82
+ override.ssh.private_key_path = aws_creds["AWSPrivateKeyPath"] || "PATH TO AWS KEYPAIR PRIVATE KEY"
83
+
84
+ aws.access_key_id = aws_creds["AWSAccessKeyId"] || "AWS ACCESS KEY"
85
+ aws.secret_access_key = aws_creds["AWSSecretKey"] || "AWS SECRET KEY"
86
+ aws.keypair_name = aws_creds["AWSKeyPairName"] || "AWS KEYPAIR NAME"
87
+ aws.ami = "<%= box_info[:aws][:ami] %>"
88
+ aws.region = "<%= box_info[:aws][:ami_region] %>"
89
+ aws.instance_type = "m3.large"
90
+ aws.tags = { "Name" => "<%= box_info[:instance_name] %>" }
91
+ aws.user_data = %{
92
+ #cloud-config
93
+
94
+ growpart:
95
+ mode: auto
96
+ devices: ['/']
97
+ runcmd:
98
+ - [ sh, -xc, "echo 'Defaults:<%= box_info[:aws][:ami_ssh_user] %> \!requiretty' >> /etc/sudoers"]
99
+ }
100
+ <% if [:centos6,:rhel6].include?(box_info[:os]) %>
101
+ aws.block_device_mapping = [
102
+ {
103
+ "DeviceName" => "/dev/sda",
104
+ "Ebs.VolumeSize" => <%= box_info[:aws][:ebs_volume_size] %>
105
+ }
106
+ ]
107
+ <% end %>
108
+ end
109
+
110
+ config.vm.provider :openstack do |os, override|
111
+ # You will need the latest vagrant-openstack-plugin
112
+ # https://github.com/cloudbau/vagrant-openstack-plugin
113
+
114
+ if gopath
115
+ override.vm.synced_folder gopath, "/data", disabled: true
116
+ end
117
+
118
+ os_creds_file = Pathname.new(File.expand_path("<%= box_info[:openstack_creds_file]%>"))
119
+ os_creds = os_creds_file.exist? ? Hash[*(File.open(os_creds_file.to_s).readlines.map{ |l| l.split('=') }.flatten.map{ |i| i.strip })] : {}
120
+
121
+ override.vm.box = "dummy"
122
+ override.vm.box_url = "https://github.com/cloudbau/vagrant-openstack-plugin/raw/master/dummy.box"
123
+ override.ssh.private_key_path = os_creds["OSPrivateKeyPath"] || "PATH TO OPENSTACK KEYPAIR PRIVATE KEY"
124
+
125
+ os.endpoint = os_creds["OSEndpoint"] || "OPENSTACK ENDPOINT URL"
126
+ os.tenant = os_creds["OSTenant"] || "OPENSTACK TENANT"
127
+ os.username = os_creds["OSUsername"] || "OPENSTACK USERNAME"
128
+ os.api_key = os_creds["OSAPIKey"] || "OPENSTACK PASSWORD"
129
+ os.flavor = "m1.large"
130
+ os.image = "<%= box_info[:openstack][:image] %>"
131
+ os.keypair_name = os_creds["OSKeyPairName"] || "OPENSTACK KEYPAIR NAME"
132
+ os.ssh_username = "<%= box_info[:openstack][:ssh_username] %>"
133
+ os.server_name = "<%= box_info[:instance_name] %>"
134
+ os.networks = []
135
+ os.user_data = %{
136
+ #cloud-config
137
+
138
+ growpart:
139
+ mode: auto
140
+ devices: ['/']
141
+ runcmd:
142
+ - [ sh, -xc, "echo 'Defaults:<%= box_info[:openstack][:ssh_username] %> \!requiretty' >> /etc/sudoers"]
143
+ }
144
+ end
145
+
146
+ config.vm.provision :openshift
147
+ config.vm.guest = :<%= box_info[:vagrant_guest]%>
148
+
149
+ # Domain zone under which application will be created. Eg: appname.namespace.example.com
150
+ config.openshift.cloud_domain = "example.com"
151
+
152
+ # Packages that are part of OpenShift Origin code but should not be compiled or installed
153
+ <% if box_info[:os] == :fedora %>
154
+ config.openshift.ignore_packages = []
155
+ <% else %>
156
+ config.openshift.ignore_packages = [
157
+ 'openshift-origin-util',
158
+ 'rubygem-openshift-origin-container-libvirt',
159
+ 'openshift-origin-cartridge-jbosseap',
160
+ 'openshift-origin-cartridge-jbossews',
161
+ 'openshift-origin-cartridge-jbossas',
162
+ 'avahi-cname-manager',
163
+ 'rubygem-openshift-origin-dns-avahi',
164
+ 'openshift-origin-cartridge-mariadb',
165
+ ]
166
+ <% end %>
167
+
168
+ # Any additional services on the machine which should be restarted after installing OpenShift packages
169
+ # config.openshift.additional_services = [
170
+ # ]
171
+
172
+ # Advanced settings to be copied into puppet manifest
173
+ # config.openshift.advanced_puppet_values = {
174
+ # }
175
+ end
@@ -0,0 +1,152 @@
1
+ ---
2
+ :centos6:
3
+ :os:
4
+ :virtualbox:
5
+ :box_name: centos_65_virtualbox_base
6
+ :box_url: http://mirror.openshift.com/pub/vagrant/boxes/centos_65_virtualbox_base.box
7
+ :vmware:
8
+ :box_name: centos_65_vmware_base
9
+ :box_url: http://mirror.openshift.com/pub/vagrant/boxes/centos_65_vmware_base.box
10
+ :aws:
11
+ :ami: ami-8f9d81e6
12
+ :ami_region: us-east-1
13
+ :ami_ssh_user: root
14
+ :machine_name: origin-centos-65-base
15
+ :ebs_volume_size: 25
16
+ :openstack:
17
+ :image: centos-6.5-20140117.0.x86_64
18
+ :ssh_username: cloud-user
19
+ :deps:
20
+ :virtualbox:
21
+ :box_name: centos_65_virtualbox_deps
22
+ :box_url: http://mirror.openshift.com/pub/vagrant/boxes/centos_65_virtualbox_deps.box
23
+ :vmware:
24
+ :box_name: centos_65_vmware_deps
25
+ :box_url: http://mirror.openshift.com/pub/vagrant/boxes/centos_65_vmware_deps.box
26
+ :aws:
27
+ :ami: ami-100ec478
28
+ :ami_tag_prefix: origin-centos-65-deps_
29
+ :ami_region: us-east-1
30
+ :ami_ssh_user: root
31
+ :machine_name: origin-centos-65-deps
32
+ :ebs_volume_size: 25
33
+ :openstack:
34
+ :image: n/a
35
+ :ssh_username: cloud-user
36
+ :inst:
37
+ :virtualbox:
38
+ :box_name: n/a
39
+ :box_url: n/a
40
+ :vmware:
41
+ :box_name: n/a
42
+ :box_url: n/a
43
+ :aws:
44
+ :ami: <AMI_ID>
45
+ :ami_region: us-east-1
46
+ :ami_ssh_user: root
47
+ :machine_name: <AMI_NAME>
48
+ :ebs_volume_size: 25
49
+ :openstack:
50
+ :image: n/a
51
+ :ssh_username: cloud-user
52
+ :fedora:
53
+ :os:
54
+ :virtualbox:
55
+ :box_name: fedora_base
56
+ :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_20_virtualbox_os.box
57
+ :vmware:
58
+ :box_name: fedora_base
59
+ :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_20_vmware_os.box
60
+ :aws:
61
+ :ami: ami-9c9376f4
62
+ :ami_region: us-east-1
63
+ :ami_ssh_user: fedora
64
+ :machine_name: openshift-fedora
65
+ :ebs_volume_size: 25
66
+ :ami_tag_prefix: openshift-fedora_
67
+ :openstack:
68
+ :image: "Fedora 20 official release"
69
+ :ssh_username: fedora
70
+ :deps:
71
+ :virtualbox:
72
+ :box_name: fedora_deps
73
+ :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_20_virtualbox_deps.box
74
+ :vmware:
75
+ :box_name: fedora_deps
76
+ :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_20_vmware_deps.box
77
+ :aws:
78
+ :ami: ami-a8a94fc0
79
+ :ami_region: us-east-1
80
+ :ami_ssh_user: fedora
81
+ :machine_name: devenv-fedora-base
82
+ :ebs_volume_size: 25
83
+ :ami_tag_prefix: devenv-fedora-base_
84
+ :openstack:
85
+ :image: n/a
86
+ :ssh_username: fedora
87
+ :inst:
88
+ :virtualbox:
89
+ :box_name: fedora_inst
90
+ :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_20_virtualbox_inst.box
91
+ :vmware:
92
+ :box_name: fedora_inst
93
+ :box_url: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_20_vmware_inst.box
94
+ :aws:
95
+ :ami: <AMI_ID>
96
+ :ami_region: us-east-1
97
+ :ami_ssh_user: fedora
98
+ :machine_name: <AMI_NAME>
99
+ :ebs_volume_size: 25
100
+ :ami_tag_prefix: devenv-fedora_
101
+ :openstack:
102
+ :image: n/a
103
+ :ssh_username: fedora
104
+ :rhel6:
105
+ :os:
106
+ :virtualbox:
107
+ :box_name: n/a
108
+ :box_url: n/a
109
+ :vmware:
110
+ :box_name: n/a
111
+ :box_url: n/a
112
+ :aws:
113
+ :ami: <AMI_ID>
114
+ :ami_region: us-east-1
115
+ :ami_ssh_user: root
116
+ :machine_name: <AMI_NAME>
117
+ :ebs_volume_size: 25
118
+ :openstack:
119
+ :image: rhel-guest-image-6.5-20140603.0
120
+ :ssh_username: cloud-user
121
+ :deps:
122
+ :virtualbox:
123
+ :box_name: n/a
124
+ :box_url: n/a
125
+ :vmware:
126
+ :box_name: n/a
127
+ :box_url: n/a
128
+ :aws:
129
+ :ami: <AMI_ID>
130
+ :ami_region: us-east-1
131
+ :ami_ssh_user: root
132
+ :machine_name: <AMI_NAME>
133
+ :ebs_volume_size: 25
134
+ :openstack:
135
+ :image: n/a
136
+ :ssh_username: cloud-user
137
+ :inst:
138
+ :virtualbox:
139
+ :box_name: n/a
140
+ :box_url: n/a
141
+ :vmware:
142
+ :box_name: n/a
143
+ :box_url: n/a
144
+ :aws:
145
+ :ami: <AMI_ID>
146
+ :ami_region: us-east-1
147
+ :ami_ssh_user: root
148
+ :machine_name: <AMI_NAME>
149
+ :ebs_volume_size: 25
150
+ :openstack:
151
+ :image: n/a
152
+ :ssh_username: cloud-user
@@ -0,0 +1,21 @@
1
+ #--
2
+ # Copyright 2013 Red Hat, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #++
16
+
17
+ module Vagrant
18
+ module Openshift
19
+ VERSION = "1.0.9"
20
+ end
21
+ end
@@ -0,0 +1,34 @@
1
+ #--
2
+ # Copyright 2013 Red Hat, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #++
16
+ require "vagrant-openshift/version"
17
+ require "pathname"
18
+
19
+ begin
20
+ require "vagrant"
21
+ rescue LoadError
22
+ raise "Not running in vagrant environment"
23
+ end
24
+
25
+ module Vagrant
26
+ module Openshift
27
+ plugin_path = Pathname.new(File.expand_path("#{__FILE__}/../vagrant-openshift/"))
28
+
29
+ autoload :CommandHelper, plugin_path + "helper/command_helper"
30
+ autoload :Constants, plugin_path + "constants"
31
+ end
32
+ end
33
+
34
+ require "vagrant-openshift/plugin"
@@ -0,0 +1,43 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #--
3
+ # Copyright 2013 Red Hat, Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #++
17
+
18
+ lib = File.expand_path('../lib', __FILE__)
19
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
20
+ require 'vagrant-openshift/version'
21
+
22
+ Gem::Specification.new do |gem|
23
+ gem.name = %q{vagrant-openshift}
24
+ gem.version = Vagrant::Openshift::VERSION
25
+ gem.authors = %q{Red Hat}
26
+ gem.email = %q{dev@lists.openshift.redhat.com}
27
+ gem.description = %q{Vagrant plugin to manage OpenShift Origin environments}
28
+ gem.summary = %q{Vagrant plugin to manage OpenShift Origin environments}
29
+ gem.homepage = %q{https://github.com/openshift/vagrant-openshift}
30
+
31
+ gem.files = `git ls-files`.split($/)
32
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
33
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
34
+ gem.require_paths = ["lib"]
35
+
36
+ gem.add_development_dependency("rake")
37
+ gem.add_development_dependency("thor")
38
+ gem.add_dependency("pry")
39
+ gem.add_dependency("fog")
40
+ gem.add_dependency("unf")
41
+ gem.add_dependency("xml-simple")
42
+ gem.add_dependency("vagrant-aws")
43
+ end
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-openshift
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.9
5
+ platform: ruby
6
+ authors:
7
+ - Red Hat
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: fog
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: unf
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: xml-simple
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: vagrant-aws
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Vagrant plugin to manage OpenShift Origin environments
112
+ email: dev@lists.openshift.redhat.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - .gitattributes
118
+ - .gitignore
119
+ - Gemfile
120
+ - LICENSE.txt
121
+ - README.asciidoc
122
+ - Rakefile
123
+ - lib/vagrant-openshift.rb
124
+ - lib/vagrant-openshift/action.rb
125
+ - lib/vagrant-openshift/action/build_geard.rb
126
+ - lib/vagrant-openshift/action/build_geard_broker.rb
127
+ - lib/vagrant-openshift/action/build_geard_console.rb
128
+ - lib/vagrant-openshift/action/build_geard_images.rb
129
+ - lib/vagrant-openshift/action/build_sources.rb
130
+ - lib/vagrant-openshift/action/checkout_repositories.rb
131
+ - lib/vagrant-openshift/action/checkout_tests.rb
132
+ - lib/vagrant-openshift/action/clean.rb
133
+ - lib/vagrant-openshift/action/clean_network_setup.rb
134
+ - lib/vagrant-openshift/action/clone_upstream_repositories.rb
135
+ - lib/vagrant-openshift/action/create_ami.rb
136
+ - lib/vagrant-openshift/action/create_bare_repo_placeholders.rb
137
+ - lib/vagrant-openshift/action/create_puppet_file.rb
138
+ - lib/vagrant-openshift/action/create_test_users.rb
139
+ - lib/vagrant-openshift/action/create_yum_repositories.rb
140
+ - lib/vagrant-openshift/action/download_artifacts.rb
141
+ - lib/vagrant-openshift/action/generate_template.rb
142
+ - lib/vagrant-openshift/action/idle_all_gears.rb
143
+ - lib/vagrant-openshift/action/install_build_dependencies.rb
144
+ - lib/vagrant-openshift/action/install_geard.rb
145
+ - lib/vagrant-openshift/action/install_geard_base_dependencies.rb
146
+ - lib/vagrant-openshift/action/install_geard_broker.rb
147
+ - lib/vagrant-openshift/action/install_geard_images.rb
148
+ - lib/vagrant-openshift/action/install_open_shift_dependencies.rb
149
+ - lib/vagrant-openshift/action/install_rhc.rb
150
+ - lib/vagrant-openshift/action/local_geard_checkout.rb
151
+ - lib/vagrant-openshift/action/local_repo_checkout.rb
152
+ - lib/vagrant-openshift/action/modify_ami.rb
153
+ - lib/vagrant-openshift/action/modify_instance.rb
154
+ - lib/vagrant-openshift/action/prepare_ssh_config.rb
155
+ - lib/vagrant-openshift/action/preserve_mcollective_logs.rb
156
+ - lib/vagrant-openshift/action/restart_geard.rb
157
+ - lib/vagrant-openshift/action/restart_geard_broker.rb
158
+ - lib/vagrant-openshift/action/restart_geard_console.rb
159
+ - lib/vagrant-openshift/action/run_geard_tests.rb
160
+ - lib/vagrant-openshift/action/run_tests.rb
161
+ - lib/vagrant-openshift/action/set_host_name.rb
162
+ - lib/vagrant-openshift/action/setup_bind_dns_key.rb
163
+ - lib/vagrant-openshift/action/setup_bind_host.rb
164
+ - lib/vagrant-openshift/action/setup_builder_files.rb
165
+ - lib/vagrant-openshift/action/setup_geard_broker.rb
166
+ - lib/vagrant-openshift/action/sync_local_repository.rb
167
+ - lib/vagrant-openshift/action/sync_upstream_repository.rb
168
+ - lib/vagrant-openshift/action/test_exit_code.rb
169
+ - lib/vagrant-openshift/action/uninstall_openshift_rpms.rb
170
+ - lib/vagrant-openshift/action/yum_update.rb
171
+ - lib/vagrant-openshift/command/build_geard.rb
172
+ - lib/vagrant-openshift/command/build_geard_base.rb
173
+ - lib/vagrant-openshift/command/build_geard_broker.rb
174
+ - lib/vagrant-openshift/command/build_geard_console.rb
175
+ - lib/vagrant-openshift/command/build_geard_images.rb
176
+ - lib/vagrant-openshift/command/build_origin_base.rb
177
+ - lib/vagrant-openshift/command/checkout_repositories.rb
178
+ - lib/vagrant-openshift/command/clone_upstream_repositories.rb
179
+ - lib/vagrant-openshift/command/create_ami.rb
180
+ - lib/vagrant-openshift/command/install_geard.rb
181
+ - lib/vagrant-openshift/command/install_geard_broker.rb
182
+ - lib/vagrant-openshift/command/install_rhc.rb
183
+ - lib/vagrant-openshift/command/local_geard_setup.rb
184
+ - lib/vagrant-openshift/command/local_repo_setup.rb
185
+ - lib/vagrant-openshift/command/modify_ami.rb
186
+ - lib/vagrant-openshift/command/modify_instance.rb
187
+ - lib/vagrant-openshift/command/openshift_init.rb
188
+ - lib/vagrant-openshift/command/repo_sync.rb
189
+ - lib/vagrant-openshift/command/repo_sync_geard.rb
190
+ - lib/vagrant-openshift/command/restart_geard.rb
191
+ - lib/vagrant-openshift/command/restart_geard_broker.rb
192
+ - lib/vagrant-openshift/command/restart_geard_console.rb
193
+ - lib/vagrant-openshift/command/setup_geard_broker.rb
194
+ - lib/vagrant-openshift/command/test.rb
195
+ - lib/vagrant-openshift/command/test_geard.rb
196
+ - lib/vagrant-openshift/command/test_geard_image.rb
197
+ - lib/vagrant-openshift/config.rb
198
+ - lib/vagrant-openshift/constants.rb
199
+ - lib/vagrant-openshift/helper/command_helper.rb
200
+ - lib/vagrant-openshift/plugin.rb
201
+ - lib/vagrant-openshift/provisioner.rb
202
+ - lib/vagrant-openshift/templates/builder/Rakefile
203
+ - lib/vagrant-openshift/templates/builder/lib/.gitkeep
204
+ - lib/vagrant-openshift/templates/builder/lib/rpm.rb
205
+ - lib/vagrant-openshift/templates/builder/lib/test.rb
206
+ - lib/vagrant-openshift/templates/builder/yum-listbuilddep
207
+ - lib/vagrant-openshift/templates/command/init-openshift/Vagrantfile.erb
208
+ - lib/vagrant-openshift/templates/command/init-openshift/box_info.yaml
209
+ - lib/vagrant-openshift/version.rb
210
+ - vagrant-openshift.gemspec
211
+ homepage: https://github.com/openshift/vagrant-openshift
212
+ licenses: []
213
+ metadata: {}
214
+ post_install_message:
215
+ rdoc_options: []
216
+ require_paths:
217
+ - lib
218
+ required_ruby_version: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - '>='
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ requirements: []
229
+ rubyforge_project:
230
+ rubygems_version: 2.1.11
231
+ signing_key:
232
+ specification_version: 4
233
+ summary: Vagrant plugin to manage OpenShift Origin environments
234
+ test_files: []