vagrant-pe_build 0.11.0 → 0.12.0

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: 60203f10382b8165bd7ed0cb6719bfa64e26f72d
4
- data.tar.gz: 523aae2be9317ea18ab6169ba68a098be1f17c65
3
+ metadata.gz: bd7aed48459e1704609d04c6530ba8ab70fd43a1
4
+ data.tar.gz: 994dcf14bf43b75f159dc45372d1b3900e736b6f
5
5
  SHA512:
6
- metadata.gz: 4b695d95bde3f22905e42215aff2b049c258adbfbd0d42fe5c5fa7e2dea13cb18bef4da860dcf165f301b1794c0537ba1587ef5331c0bc32755d5d004bb5d06e
7
- data.tar.gz: 190db868e4a29c6e438fcdc3d8977f44e49b458a4499942451e8375936850ea6d3c4e6c6eea7c26ef4d8dbae4ddeb72b8463c9ea2647d8bc9a31e1f5f13ee9c8
6
+ metadata.gz: 6928c7749225819794f26be8265c0b52255827df2e44916c55e8189dd3b6bb46e49cb6d2b061c74a1ae17f30a97048cc93fd3f1151bc4437b683183ed103c036
7
+ data.tar.gz: 53faafebffffb6aec6053cf9ababe1ca5cce902620fe033085affeee9951a5d97a8f612f04e5db5b6d112b6d558f7a8381546196b9396ba61a54fa82f48670bb
data/CHANGELOG CHANGED
@@ -1,6 +1,25 @@
1
1
  vagrant-pe_build
2
2
  ================
3
3
 
4
+ 0.12.0
5
+ ------
6
+
7
+ 2015-09-24
8
+
9
+ This is a backwards compatible feature release.
10
+
11
+ * (GH-89) Support 2015.2.x master platforms and Windows
12
+ This release adds support for all 2015.x.2 master platforms:
13
+
14
+ - Enterprise Linux: 6, 7
15
+ - Ubuntu: 12.04, 14.04
16
+ - SLES: 11, 12
17
+
18
+ Tarball installers are no longer available for other agent platforms, so
19
+ support for those is currently pending. Windows installation is still
20
+ supported.
21
+
22
+
4
23
  0.11.0
5
24
  ------
6
25
 
@@ -0,0 +1,45 @@
1
+ shared_examples 'provider/provisioner/pe_bootstrap/2015x' do |provider, options|
2
+ if !File.file?(options[:box])
3
+ raise ArgumentError,
4
+ "A box file must be downloaded for provider: #{provider}. Try: rake acceptance:setup"
5
+ end
6
+
7
+ include_context 'acceptance'
8
+
9
+ let(:extra_env) do
10
+ vars = options[:env_vars].dup
11
+ vars['PE_BUILD_DOWNLOAD_ROOT'] = options[:archive_path]
12
+
13
+ vars
14
+ end
15
+
16
+ before(:each) do
17
+ # The skelton sets up a Vagrantfile which expects the OS under test to be
18
+ # available as `box`.
19
+ environment.skeleton('2015x_acceptance')
20
+ assert_execute('vagrant', 'box', 'add', 'box', options[:box])
21
+ end
22
+
23
+ after(:each) do
24
+ # Ensure any VMs that survived tests are cleaned up.
25
+ assert_execute('vagrant', 'destroy', '--force', log: false)
26
+ end
27
+
28
+ context 'when installing PE 2015.2.0' do
29
+ it 'provisions with pe_build' do
30
+ result = assert_execute('vagrant', 'up', "--provider=#{provider}", 'pe-201520-master', 'pe-201520-agent')
31
+ end
32
+ end
33
+
34
+ context 'when installing PE 2015.2.1' do
35
+ it 'provisions with pe_build' do
36
+ assert_execute('vagrant', 'up', "--provider=#{provider}", 'pe-201521-master', 'pe-201521-agent')
37
+ end
38
+ end
39
+
40
+ context 'when installing PE 2015.latest' do
41
+ it 'provisions with pe_build' do
42
+ assert_execute('vagrant', 'up', "--provider=#{provider}", 'pe-2015latest-master', 'pe-2015latest-agent')
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,94 @@
1
+ def set_resources box, max_ram=512, max_cpu=1
2
+ box.vm.provider :virtualbox do |vb|
3
+ vb.customize ["modifyvm", :id, "--cpus", max_cpu]
4
+ vb.customize ["modifyvm", :id, "--memory", max_ram]
5
+ end
6
+ end
7
+
8
+ Vagrant.configure('2') do |config|
9
+ config.pe_build.download_root = ENV['PE_BUILD_DOWNLOAD_ROOT']
10
+ # This is the box name used by the setup helpers in the acceptance tests.
11
+ config.vm.box = 'box'
12
+ config.vm.provision :shell, :inline => 'service iptables stop'
13
+
14
+ config.vm.define 'pe-201520-master' do |node|
15
+ node.vm.hostname = 'pe-201520-master.pe-bootstrap.vlan'
16
+ # All-in-one master nodes need a generous amount of RAM for all the Java.
17
+ set_resources node, 4096, 1
18
+
19
+ node.vm.network 'private_network', :ip => '10.20.1.100'
20
+ node.vm.provision :shell, :inline => 'echo "10.20.1.101 pe-201520-agent.pe-bootstrap.vlan" >> /etc/hosts'
21
+
22
+ node.vm.provision :pe_bootstrap do |p|
23
+ p.version = '2015.2.0'
24
+ p.role = :master
25
+ end
26
+ end
27
+
28
+ config.vm.define 'pe-201520-agent' do |node|
29
+ node.vm.hostname = 'pe-201520-agent.pe-bootstrap.vlan'
30
+
31
+ node.vm.network 'private_network', :ip => '10.20.1.101'
32
+ node.vm.provision :shell, :inline => 'echo "10.20.1.100 pe-201520-master.pe-bootstrap.vlan" >> /etc/hosts'
33
+
34
+ node.vm.provision :pe_bootstrap do |p|
35
+ p.version = '2015.2.0'
36
+ p.role = :agent
37
+ p.master = 'pe-201520-master.pe-bootstrap.vlan'
38
+ end
39
+ end
40
+
41
+ config.vm.define 'pe-201521-master' do |node|
42
+ node.vm.hostname = 'pe-201521-master.pe-bootstrap.vlan'
43
+ # All-in-one master nodes need a generous amount of RAM for all the Java.
44
+ set_resources node, 4096, 1
45
+
46
+ node.vm.network 'private_network', :ip => '10.20.1.102'
47
+ node.vm.provision :shell, :inline => 'echo "10.20.1.103 pe-201521-agent.pe-bootstrap.vlan" >> /etc/hosts'
48
+
49
+ node.vm.provision :pe_bootstrap do |p|
50
+ p.version = '2015.2.1'
51
+ p.role = :master
52
+ end
53
+ end
54
+
55
+ config.vm.define 'pe-201521-agent' do |node|
56
+ node.vm.hostname = 'pe-201521-agent.pe-bootstrap.vlan'
57
+
58
+ node.vm.network 'private_network', :ip => '10.20.1.103'
59
+ node.vm.provision :shell, :inline => 'echo "10.20.1.102 pe-201521-master.pe-bootstrap.vlan" >> /etc/hosts'
60
+
61
+ node.vm.provision :pe_bootstrap do |p|
62
+ p.version = '2015.2.1'
63
+ p.role = :agent
64
+ p.master = 'pe-201521-master.pe-bootstrap.vlan'
65
+ end
66
+ end
67
+
68
+ config.vm.define 'pe-2015latest-master' do |node|
69
+ node.vm.hostname = 'pe-2015latest-master.pe-bootstrap.vlan'
70
+ # All-in-one master nodes need a generous amount of RAM for all the Java.
71
+ set_resources node, 4096, 1
72
+
73
+ node.vm.network 'private_network', :ip => '10.20.1.104'
74
+ node.vm.provision :shell, :inline => 'echo "10.20.1.105 pe-2015latest-agent.pe-bootstrap.vlan" >> /etc/hosts'
75
+
76
+ node.vm.provision :pe_bootstrap do |p|
77
+ p.version_file = 'LATEST'
78
+ p.role = :master
79
+ end
80
+ end
81
+
82
+ config.vm.define 'pe-2015latest-agent' do |node|
83
+ node.vm.hostname = 'pe-2015latest-agent.pe-bootstrap.vlan'
84
+
85
+ node.vm.network 'private_network', :ip => '10.20.1.105'
86
+ node.vm.provision :shell, :inline => 'echo "10.20.1.104 pe-2015latest-master.pe-bootstrap.vlan" >> /etc/hosts'
87
+
88
+ node.vm.provision :pe_bootstrap do |p|
89
+ p.version_file = 'LATEST'
90
+ p.role = :agent
91
+ p.master = 'pe-2015latest-master.pe-bootstrap.vlan'
92
+ end
93
+ end
94
+ end
@@ -37,7 +37,8 @@ module PEBuild
37
37
  require 'pe_build/release/3_3'
38
38
  require 'pe_build/release/3_7'
39
39
  require 'pe_build/release/3_8'
40
+ require 'pe_build/release/2015_2'
40
41
 
41
- LATEST_VERSION = '3.8.2'
42
+ LATEST_VERSION = '2015.2.1'
42
43
  end
43
44
  end
@@ -0,0 +1,37 @@
1
+ require 'pe_build/release'
2
+
3
+ module PEBuild::Release
4
+
5
+ twentyfifteen_two_x = newrelease do
6
+
7
+ # PE 2015.2.x supports many more platforms, but the pe_bootstrap
8
+ # provisioner can only work with tarball installers --- which are now only
9
+ # available for the following master platforms:
10
+ add_release :el, '6'
11
+ add_release :el, '7'
12
+
13
+ add_release :sles, '11'
14
+ add_release :sles, '12'
15
+
16
+ add_release :ubuntu, '12.04'
17
+ add_release :ubuntu, '14.04'
18
+
19
+ # Nothing has changed for installation of Windows agents.
20
+
21
+ add_release :windows, '2003'
22
+ add_release :windows, '2003R2'
23
+ add_release :windows, '2008'
24
+ add_release :windows, '2008R2'
25
+ add_release :windows, '7'
26
+ add_release :windows, '2012'
27
+ add_release :windows, '2012R2'
28
+ add_release :windows, '8'
29
+ add_release :windows, '8.1'
30
+
31
+ set_answer_file :master, File.join(PEBuild.template_dir, 'answers', 'master-2015.x.txt.erb')
32
+ set_answer_file :agent, File.join(PEBuild.template_dir, 'answers', 'agent-2015.x.txt.erb')
33
+ end
34
+
35
+ @releases['2015.2.0'] = twentyfifteen_two_x
36
+ @releases['2015.2.1'] = twentyfifteen_two_x
37
+ end
@@ -1,3 +1,3 @@
1
1
  module PEBuild
2
- VERSION = '0.11.0'
2
+ VERSION = '0.12.0'
3
3
  end
@@ -0,0 +1,19 @@
1
+ # Agent answers for 2015.x
2
+ # Cobbled together from split install examples.
3
+ q_install=y
4
+ q_vendor_packages_install=y
5
+ q_puppet_symlinks_install=y
6
+ q_verify_packages=y
7
+
8
+ # Disable all infrastructure components
9
+ q_all_in_one_install=n
10
+ q_puppetmaster_install=n
11
+ q_puppetdb_install=n
12
+ q_puppet_enterpriseconsole_install=n
13
+
14
+ # Configure agent installation
15
+ q_puppetagent_install=y
16
+ q_puppetagent_certname=<%= machine_hostname %>
17
+ q_puppetagent_server=<%= @config.master %>
18
+ q_skip_master_verification=n
19
+ q_fail_on_unsuccessful_master_lookup=y
@@ -0,0 +1,33 @@
1
+ # Stock all-in-one answers for 2015.x
2
+ q_install=y
3
+ q_vendor_packages_install=y
4
+ q_puppetmaster_install=y
5
+ q_all_in_one_install=y
6
+
7
+
8
+ q_puppetagent_certname=<%= machine_hostname %>
9
+ q_puppetmaster_certname=<%= machine_hostname %>
10
+ q_puppetmaster_dnsaltnames=<%= machine_hostname %>,puppet
11
+
12
+ q_puppet_enterpriseconsole_httpd_port=443
13
+ q_puppet_enterpriseconsole_auth_password=puppetlabs
14
+
15
+ q_database_install=y
16
+ q_puppetdb_database_name=pe-puppetdb
17
+ q_puppetdb_database_password=strongpassword1748
18
+ q_puppetdb_database_user=pe-puppetdb
19
+
20
+ q_exit_for_nc_migrate=n
21
+
22
+
23
+ # Use Vagrant configuration instead of DNS
24
+ q_database_host=<%= machine_hostname %>
25
+ q_puppetdb_hostname=<%= machine_hostname %>
26
+ q_puppet_enterpriseconsole_master_hostname=<%= machine_hostname %>
27
+ q_puppetmaster_enterpriseconsole_hostname=<%= machine_hostname %>
28
+ q_puppetca_hostname=<%= machine_hostname %>
29
+ q_puppetagent_server=<%= machine_hostname %>
30
+
31
+
32
+ # Additional customization
33
+ q_pe_check_for_updates=n
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-pe_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: progressbar
@@ -81,9 +81,11 @@ files:
81
81
  - LICENSE
82
82
  - README.markdown
83
83
  - Rakefile
84
+ - acceptance/pe_build/pe_bootstrap_2015x_spec.rb
84
85
  - acceptance/pe_build/pe_bootstrap_3x_spec.rb
85
86
  - acceptance/pe_build/pe_bootstrap_latest_spec.rb
86
87
  - acceptance/pe_build/pe_build_cli_spec.rb
88
+ - acceptance/skeletons/2015x_acceptance/Vagrantfile
87
89
  - acceptance/skeletons/pe_build/Vagrantfile
88
90
  - doc/answers/README.markdown
89
91
  - doc/answers/agent.txt
@@ -126,6 +128,7 @@ files:
126
128
  - lib/pe_build/provisioner/pe_bootstrap/post_install.rb
127
129
  - lib/pe_build/release.rb
128
130
  - lib/pe_build/release/1_2.rb
131
+ - lib/pe_build/release/2015_2.rb
129
132
  - lib/pe_build/release/2_0.rb
130
133
  - lib/pe_build/release/2_5.rb
131
134
  - lib/pe_build/release/2_6.rb
@@ -161,10 +164,12 @@ files:
161
164
  - templates/answers/agent-1.x.txt.erb
162
165
  - templates/answers/agent-2.0.x.txt.erb
163
166
  - templates/answers/agent-2.x.txt.erb
167
+ - templates/answers/agent-2015.x.txt.erb
164
168
  - templates/answers/agent-3.x.txt.erb
165
169
  - templates/answers/master-1.x.txt.erb
166
170
  - templates/answers/master-2.0.x.txt.erb
167
171
  - templates/answers/master-2.x.txt.erb
172
+ - templates/answers/master-2015.x.txt.erb
168
173
  - templates/answers/master-3.x.txt.erb
169
174
  - templates/locales/en.yml
170
175
  - vagrant-pe_build.gemspec
@@ -194,4 +199,3 @@ signing_key:
194
199
  specification_version: 4
195
200
  summary: Vagrant provisioner for installing Puppet Enterprise
196
201
  test_files: []
197
- has_rdoc: