opsmgr-cgfrost 0.35.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LEGAL.txt +13 -0
- data/README.md +123 -0
- data/lib/opsmgr.rb +12 -0
- data/lib/opsmgr/api/client.rb +116 -0
- data/lib/opsmgr/api/http_client.rb +399 -0
- data/lib/opsmgr/api/results.rb +280 -0
- data/lib/opsmgr/api/version20/endpoints.rb +121 -0
- data/lib/opsmgr/bosh_command_runner.rb +84 -0
- data/lib/opsmgr/cmd/bosh_command.rb +189 -0
- data/lib/opsmgr/cmd/ops_manager.rb +142 -0
- data/lib/opsmgr/environments.rb +106 -0
- data/lib/opsmgr/errand_runner.rb +62 -0
- data/lib/opsmgr/log.rb +70 -0
- data/lib/opsmgr/product_upload_wrapper.rb +71 -0
- data/lib/opsmgr/renderer.rb +23 -0
- data/lib/opsmgr/renderer/aws.rb +148 -0
- data/lib/opsmgr/renderer/noop.rb +21 -0
- data/lib/opsmgr/settings/microbosh/installation_settings.rb +84 -0
- data/lib/opsmgr/settings/microbosh/job.rb +56 -0
- data/lib/opsmgr/settings/microbosh/job_list.rb +27 -0
- data/lib/opsmgr/settings/microbosh/network.rb +21 -0
- data/lib/opsmgr/settings/microbosh/product.rb +90 -0
- data/lib/opsmgr/settings/microbosh/product_list.rb +27 -0
- data/lib/opsmgr/settings/microbosh/property.rb +33 -0
- data/lib/opsmgr/settings/microbosh/property_list.rb +27 -0
- data/lib/opsmgr/tasks.rb +16 -0
- data/lib/opsmgr/tasks/bosh.rake +104 -0
- data/lib/opsmgr/tasks/destroy.rake +42 -0
- data/lib/opsmgr/tasks/info.rake +19 -0
- data/lib/opsmgr/tasks/opsmgr.rake +205 -0
- data/lib/opsmgr/tasks/product.rake +82 -0
- data/lib/opsmgr/ui_helpers/add_first_user_spec.rb +25 -0
- data/lib/opsmgr/ui_helpers/config_helper.rb +38 -0
- data/lib/opsmgr/ui_helpers/delete_installation_spec.rb +41 -0
- data/lib/opsmgr/ui_helpers/delete_product_if_present_spec.rb +37 -0
- data/lib/opsmgr/ui_helpers/delete_product_spec.rb +39 -0
- data/lib/opsmgr/ui_helpers/export_installation_spec.rb +31 -0
- data/lib/opsmgr/ui_helpers/get_latest_install_log_spec.rb +29 -0
- data/lib/opsmgr/ui_helpers/import_stemcell_spec.rb +30 -0
- data/lib/opsmgr/ui_helpers/microbosh/configure_microbosh_spec.rb +32 -0
- data/lib/opsmgr/ui_helpers/post_import_configuration_spec.rb +31 -0
- data/lib/opsmgr/ui_helpers/revert_staged_changes_spec.rb +39 -0
- data/lib/opsmgr/ui_helpers/settings_helper.rb +132 -0
- data/lib/opsmgr/ui_helpers/trigger_install_spec.rb +35 -0
- data/lib/opsmgr/ui_helpers/ui_spec_runner.rb +122 -0
- data/lib/opsmgr/ui_helpers/uncheck_errands_spec.rb +29 -0
- data/lib/opsmgr/ui_helpers/upload_and_add_product_spec.rb +27 -0
- data/lib/opsmgr/ui_helpers/upload_and_upgrade_product_spec.rb +36 -0
- data/lib/opsmgr/version.rb +11 -0
- data/sample_env_files/aws.yml +95 -0
- data/sample_env_files/vsphere.yml +87 -0
- metadata +392 -0
@@ -0,0 +1,132 @@
|
|
1
|
+
require 'capybara/webkit'
|
2
|
+
require 'capybara/dsl'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
module SettingsHelper
|
6
|
+
def product_path
|
7
|
+
ENV.fetch('PRODUCT_PATH')
|
8
|
+
end
|
9
|
+
|
10
|
+
def product_name
|
11
|
+
ENV.fetch('PRODUCT_NAME')
|
12
|
+
end
|
13
|
+
|
14
|
+
def export_destination_path
|
15
|
+
ENV.fetch('EXPORT_DESTINATION')
|
16
|
+
end
|
17
|
+
|
18
|
+
def import_file_path
|
19
|
+
ENV.fetch('IMPORT_FILE')
|
20
|
+
end
|
21
|
+
|
22
|
+
def stemcell_file_path
|
23
|
+
ENV.fetch('STEMCELL_FILE')
|
24
|
+
end
|
25
|
+
|
26
|
+
def om_version
|
27
|
+
ENV.fetch('OM_VERSION')
|
28
|
+
end
|
29
|
+
|
30
|
+
def install_timeout
|
31
|
+
ENV.fetch('INSTALL_TIMEOUT').to_i
|
32
|
+
end
|
33
|
+
|
34
|
+
def delete_timeout
|
35
|
+
Integer(ENV.fetch('DELETE_TIMEOUT'))
|
36
|
+
end
|
37
|
+
|
38
|
+
def errand_names
|
39
|
+
JSON.parse(ENV.fetch('ERRAND_NAMES'))
|
40
|
+
end
|
41
|
+
|
42
|
+
def poll_interval
|
43
|
+
ENV.fetch('POLL_INTERVAL').to_i
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
def ops_manager_driver
|
48
|
+
fail 'Include OpsManagerUiDrivers::PageHelpers' unless respond_to? :fetch_environment_settings
|
49
|
+
|
50
|
+
configure_capybara(fetch_environment_settings['ops_manager']['url'])
|
51
|
+
ops_manager_url = fetch_environment_settings['ops_manager']['url']
|
52
|
+
case om_version
|
53
|
+
when '1.4'
|
54
|
+
om_1_4(ops_manager_url)
|
55
|
+
when '1.5'
|
56
|
+
om_1_5(ops_manager_url)
|
57
|
+
when '1.6'
|
58
|
+
om_1_6(ops_manager_url)
|
59
|
+
when '1.7'
|
60
|
+
om_1_7(ops_manager_url)
|
61
|
+
when '1.8'
|
62
|
+
om_1_8(ops_manager_url)
|
63
|
+
else
|
64
|
+
fail "Unsupported Ops Manager Version #{om_version.inspect}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def ops_manager_api_driver
|
69
|
+
fail 'Include OpsManagerUiDrivers::PageHelpers' unless respond_to? :fetch_environment_settings
|
70
|
+
|
71
|
+
env_settings = fetch_environment_settings
|
72
|
+
case om_version
|
73
|
+
when '1.4'
|
74
|
+
api_1_4(
|
75
|
+
host: env_settings['ops_manager']['url'],
|
76
|
+
username: env_settings['ops_manager']['username'],
|
77
|
+
password: env_settings['ops_manager']['password'],
|
78
|
+
)
|
79
|
+
when '1.5'
|
80
|
+
api_1_5(
|
81
|
+
host: env_settings['ops_manager']['url'],
|
82
|
+
username: env_settings['ops_manager']['username'],
|
83
|
+
password: env_settings['ops_manager']['password'],
|
84
|
+
)
|
85
|
+
when '1.6'
|
86
|
+
api_1_6(
|
87
|
+
host: env_settings['ops_manager']['url'],
|
88
|
+
username: env_settings['ops_manager']['username'],
|
89
|
+
password: env_settings['ops_manager']['password'],
|
90
|
+
)
|
91
|
+
when '1.7'
|
92
|
+
api_1_7(
|
93
|
+
host: env_settings['ops_manager']['url'],
|
94
|
+
username: env_settings['ops_manager']['username'],
|
95
|
+
password: env_settings['ops_manager']['password'],
|
96
|
+
)
|
97
|
+
when '1.8'
|
98
|
+
api_1_8(
|
99
|
+
host: env_settings['ops_manager']['url'],
|
100
|
+
username: env_settings['ops_manager']['username'],
|
101
|
+
password: env_settings['ops_manager']['password'],
|
102
|
+
)
|
103
|
+
else
|
104
|
+
fail "Unsupported Ops Manager Version #{om_version.inspect}"
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
def environment_name
|
109
|
+
ENV.fetch('ENVIRONMENT_NAME')
|
110
|
+
end
|
111
|
+
|
112
|
+
def fetch_environment_settings
|
113
|
+
Opsmgr::Environments.for(environment_name).settings
|
114
|
+
end
|
115
|
+
|
116
|
+
def configure_capybara(ops_manager_url)
|
117
|
+
Capybara.configure do |c|
|
118
|
+
c.default_driver = :webkit
|
119
|
+
end
|
120
|
+
|
121
|
+
begin
|
122
|
+
Capybara::Webkit.configure do |c|
|
123
|
+
c.allow_url(ops_manager_url)
|
124
|
+
c.ignore_ssl_errors
|
125
|
+
end
|
126
|
+
rescue
|
127
|
+
# Capybara says, "All configuration must take place before the driver starts"
|
128
|
+
end
|
129
|
+
|
130
|
+
page.current_window.resize_to(1024, 3000) # avoid overlapping footer spec failures
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require_relative 'config_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Triggering Install', order: :defined do
|
4
|
+
let!(:current_ops_manager) { ops_manager_driver }
|
5
|
+
let!(:env_settings) { fetch_environment_settings }
|
6
|
+
|
7
|
+
it 'creates the admin user and logs in' do
|
8
|
+
poll_up_to_mins(10) do
|
9
|
+
current_ops_manager.setup_page.setup_or_login(
|
10
|
+
user: env_settings['ops_manager']['username'],
|
11
|
+
password: env_settings['ops_manager']['password'],
|
12
|
+
)
|
13
|
+
|
14
|
+
expect(page).to have_content('Installation Dashboard')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'installs' do
|
19
|
+
current_ops_manager.product_dashboard.apply_updates
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'waits for a successful installation' do
|
23
|
+
poll_up_to_mins(install_timeout, poll_interval) do
|
24
|
+
expect(current_ops_manager.state_change_progress).to be_state_change_success
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# Copyright (c) 2014-2015 Pivotal Software, Inc.
|
29
|
+
# All rights reserved.
|
30
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
31
|
+
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
32
|
+
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
33
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
34
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
35
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,122 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
|
3
|
+
class UiSpecRunner
|
4
|
+
def initialize(environment:, om_version:)
|
5
|
+
raise 'No Environment Name provided' if environment.nil? || environment.empty?
|
6
|
+
raise 'No Ops Manager Version provided' if om_version.nil? || om_version.empty?
|
7
|
+
|
8
|
+
ENV['ENVIRONMENT_NAME'] = environment
|
9
|
+
ENV['OM_VERSION'] = om_version
|
10
|
+
end
|
11
|
+
|
12
|
+
def add_first_user
|
13
|
+
run_spec([spec_path + '/add_first_user_spec.rb'])
|
14
|
+
end
|
15
|
+
|
16
|
+
def configure_microbosh
|
17
|
+
run_spec([microbosh_spec_path + '/configure_microbosh_spec.rb'])
|
18
|
+
end
|
19
|
+
|
20
|
+
def trigger_install(install_timeout, poll_interval)
|
21
|
+
ENV['INSTALL_TIMEOUT'] = install_timeout
|
22
|
+
ENV['POLL_INTERVAL'] = poll_interval
|
23
|
+
|
24
|
+
run_spec([spec_path + '/trigger_install_spec.rb'])
|
25
|
+
end
|
26
|
+
|
27
|
+
def get_latest_install_log
|
28
|
+
run_spec([spec_path + '/get_latest_install_log_spec.rb'])
|
29
|
+
end
|
30
|
+
|
31
|
+
def upload_and_add_product(product_path, product_name)
|
32
|
+
ENV['PRODUCT_PATH'] = product_path
|
33
|
+
ENV['PRODUCT_NAME'] = product_name
|
34
|
+
|
35
|
+
run_spec([spec_path + '/upload_and_add_product_spec.rb'])
|
36
|
+
end
|
37
|
+
|
38
|
+
def upload_and_upgrade_product(product_path, product_name)
|
39
|
+
ENV['PRODUCT_PATH'] = product_path
|
40
|
+
ENV['PRODUCT_NAME'] = product_name
|
41
|
+
|
42
|
+
run_spec([spec_path + '/upload_and_upgrade_product_spec.rb'])
|
43
|
+
end
|
44
|
+
|
45
|
+
def export_installation(export_destination)
|
46
|
+
ENV['EXPORT_DESTINATION'] = export_destination
|
47
|
+
|
48
|
+
run_spec([spec_path + '/export_installation_spec.rb'])
|
49
|
+
end
|
50
|
+
|
51
|
+
def post_import_configuration
|
52
|
+
run_spec([spec_path + '/post_import_configuration_spec.rb'])
|
53
|
+
end
|
54
|
+
|
55
|
+
def delete_installation
|
56
|
+
run_spec([spec_path + '/delete_installation_spec.rb'])
|
57
|
+
end
|
58
|
+
|
59
|
+
def delete_product(product_name, timeout, poll_interval)
|
60
|
+
ENV['PRODUCT_NAME'] = product_name
|
61
|
+
ENV['DELETE_TIMEOUT'] = timeout
|
62
|
+
ENV['POLL_INTERVAL'] = poll_interval
|
63
|
+
|
64
|
+
run_spec([spec_path + '/delete_product_spec.rb'])
|
65
|
+
end
|
66
|
+
|
67
|
+
def delete_product_if_present(product_name, timeout, poll_interval)
|
68
|
+
ENV['PRODUCT_NAME'] = product_name
|
69
|
+
ENV['DELETE_TIMEOUT'] = timeout
|
70
|
+
ENV['POLL_INTERVAL'] = poll_interval
|
71
|
+
|
72
|
+
run_spec([spec_path + '/delete_product_if_present_spec.rb'])
|
73
|
+
end
|
74
|
+
|
75
|
+
def import_stemcell(stemcell_file, product_name)
|
76
|
+
ENV['STEMCELL_FILE'] = stemcell_file
|
77
|
+
ENV['PRODUCT_NAME'] = product_name
|
78
|
+
|
79
|
+
run_spec([spec_path + '/import_stemcell_spec.rb'])
|
80
|
+
end
|
81
|
+
|
82
|
+
def uncheck_errands(product_name, errand_names)
|
83
|
+
require 'json'
|
84
|
+
|
85
|
+
ENV['PRODUCT_NAME'] = product_name
|
86
|
+
ENV['ERRAND_NAMES'] = JSON.generate(errand_names)
|
87
|
+
|
88
|
+
run_spec([spec_path + '/uncheck_errands_spec.rb'])
|
89
|
+
end
|
90
|
+
|
91
|
+
def revert_staged_changes
|
92
|
+
run_spec([spec_path + '/revert_staged_changes_spec.rb'])
|
93
|
+
end
|
94
|
+
|
95
|
+
private
|
96
|
+
|
97
|
+
def spec_path
|
98
|
+
File.dirname(__FILE__)
|
99
|
+
end
|
100
|
+
|
101
|
+
def microbosh_spec_path
|
102
|
+
File.join(spec_path, 'microbosh')
|
103
|
+
end
|
104
|
+
|
105
|
+
def run_spec(spec_to_run)
|
106
|
+
RSpecExiter.exit_rspec(RSpec::Core::Runner.run(spec_to_run))
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
module RSpecExiter
|
111
|
+
def self.exit_rspec(exit_code)
|
112
|
+
exit exit_code
|
113
|
+
end
|
114
|
+
end
|
115
|
+
# Copyright (c) 2014-2015 Pivotal Software, Inc.
|
116
|
+
# All rights reserved.
|
117
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
118
|
+
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
119
|
+
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
120
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
121
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
122
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'config_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Unchecking Errands', order: :defined do
|
4
|
+
let!(:current_ops_manager) { ops_manager_driver }
|
5
|
+
let!(:env_settings) { fetch_environment_settings }
|
6
|
+
|
7
|
+
it 'logs in' do
|
8
|
+
current_ops_manager.setup_page.setup_or_login(
|
9
|
+
user: env_settings['ops_manager']['username'],
|
10
|
+
password: env_settings['ops_manager']['password'],
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'unchecks the errands provided for the given product' do
|
15
|
+
product_errands_driver = current_ops_manager.product(product_name).product_errands
|
16
|
+
|
17
|
+
errand_names.each do |errand_name|
|
18
|
+
product_errands_driver.disable_errand(errand_name)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
# Copyright (c) 2014-2015 Pivotal Software, Inc.
|
23
|
+
# All rights reserved.
|
24
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
25
|
+
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
26
|
+
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
27
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
28
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
29
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require_relative 'config_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Uploading and Adding a Product', order: :defined do
|
4
|
+
let!(:current_ops_manager) { ops_manager_driver }
|
5
|
+
let(:env_settings) { fetch_environment_settings }
|
6
|
+
|
7
|
+
it 'logs in' do
|
8
|
+
current_ops_manager.setup_page.setup_or_login(
|
9
|
+
user: env_settings['ops_manager']['username'],
|
10
|
+
password: env_settings['ops_manager']['password'],
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'adds the product' do
|
15
|
+
expect do
|
16
|
+
current_ops_manager.available_products.add_product_to_install(product_name)
|
17
|
+
end.not_to raise_error
|
18
|
+
end
|
19
|
+
end
|
20
|
+
# Copyright (c) 2014-2015 Pivotal Software, Inc.
|
21
|
+
# All rights reserved.
|
22
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
23
|
+
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
24
|
+
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
25
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
26
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
27
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require_relative 'config_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Uploading and Upgrading a Product', order: :defined do
|
4
|
+
let!(:current_ops_manager) { ops_manager_driver }
|
5
|
+
let!(:env_settings) { fetch_environment_settings }
|
6
|
+
|
7
|
+
it 'logs in' do
|
8
|
+
current_ops_manager.setup_page.setup_or_login(
|
9
|
+
user: env_settings['ops_manager']['username'],
|
10
|
+
password: env_settings['ops_manager']['password'],
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'uploads the product' do
|
15
|
+
current_ops_manager.product_dashboard.import_product_from(product_path)
|
16
|
+
if (flash_error = all('.flash-message.error').first)
|
17
|
+
fail flash_error.text
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'upgrades the product' do
|
22
|
+
current_ops_manager.product_dashboard.upgrade_product(product_name)
|
23
|
+
|
24
|
+
expect(
|
25
|
+
current_ops_manager.available_products.product_added?(product_name)
|
26
|
+
).to eq(true)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
# Copyright (c) 2014-2015 Pivotal Software, Inc.
|
30
|
+
# All rights reserved.
|
31
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
32
|
+
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
33
|
+
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
34
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
35
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
36
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Opsmgr
|
2
|
+
VERSION = '0.35.9'.freeze
|
3
|
+
end
|
4
|
+
# Copyright (c) 2014-2015 Pivotal Software, Inc.
|
5
|
+
# All rights reserved.
|
6
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
7
|
+
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
8
|
+
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
9
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
10
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
11
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,95 @@
|
|
1
|
+
name: ugli
|
2
|
+
iaas_type: aws
|
3
|
+
vm_shepherd:
|
4
|
+
env_config:
|
5
|
+
stack_name: ugli
|
6
|
+
aws_access_key: _ACCESS_KEY_
|
7
|
+
aws_secret_key: _SECRET_KEY_
|
8
|
+
region: us-west-1
|
9
|
+
json_file: config/ert_cloudformation.json
|
10
|
+
parameters:
|
11
|
+
01NATKeyPair: _AWS_SSH_KEY_NAME_
|
12
|
+
05RdsUsername: pivotalcf
|
13
|
+
06RdsPassword: pivotalcf
|
14
|
+
07SSLCertificateARN: arn:aws:iam::_CERT_ID_:server-certificate/ugli
|
15
|
+
outputs:
|
16
|
+
ssh_key_name: {{ssh_key_pair_name}}
|
17
|
+
security_group: {{ops_manager_security_group_id}}
|
18
|
+
public_subnet_id: {{public_subnet_id}}
|
19
|
+
private_subnet_id: {{private_subnet_id}}
|
20
|
+
s3_bucket_names:
|
21
|
+
- {{ ops_manager_s3_bucket_name }}
|
22
|
+
- {{ ert_s3_buildpacks_bucket_name }}
|
23
|
+
- {{ ert_s3_droplets_bucket_name }}
|
24
|
+
- {{ ert_s3_packages_bucket_name }}
|
25
|
+
- {{ ert_s3_resources_bucket_name }}
|
26
|
+
vm_configs:
|
27
|
+
- vm_name: Ugli OpsManager
|
28
|
+
vm_ip_address: _OM_IP_ADDRESS_
|
29
|
+
|
30
|
+
ops_manager:
|
31
|
+
url: https://pcf.ugli.cf-app.com/
|
32
|
+
username: _OM_USERNAME_
|
33
|
+
password: _OM_PASSWORD_
|
34
|
+
ntp_servers: 0.amazon.pool.ntp.org
|
35
|
+
availability_zones:
|
36
|
+
- iaas_identifier: us-west-1b
|
37
|
+
|
38
|
+
aws:
|
39
|
+
aws_access_key: {{iam_aws_access_key_id}}
|
40
|
+
aws_secret_key: {{iam_aws_secret_access_key}}
|
41
|
+
vpc_id: {{vpc}}
|
42
|
+
security_group: {{vms_security_group_name}}
|
43
|
+
security_group_id: {{vms_security_group_id}}
|
44
|
+
key_pair_name: {{ssh_key_pair_name}}
|
45
|
+
region: {{region}}
|
46
|
+
ssh_key: _KEY_
|
47
|
+
|
48
|
+
networks:
|
49
|
+
- name: first-network
|
50
|
+
identifier: {{ private_subnet_id }}
|
51
|
+
subnet: 10.0.16.0/20
|
52
|
+
reserved_ips: 10.0.16.2-10.0.16.4
|
53
|
+
dns: 10.0.0.2
|
54
|
+
gateway: 10.0.16.1
|
55
|
+
subnets:
|
56
|
+
- identifier: {{ private_subnet_id }}
|
57
|
+
cidr: 10.0.16.0/20
|
58
|
+
reserved_ips: 10.0.16.2-10.0.16.4
|
59
|
+
dns: 10.0.0.2
|
60
|
+
gateway: 10.0.16.1
|
61
|
+
|
62
|
+
elastic_runtime:
|
63
|
+
name: cf
|
64
|
+
system_domain: ugli.cf-app.com
|
65
|
+
apps_domain: ugli.cf-app.com
|
66
|
+
elb_name: ugli-pcf-elb
|
67
|
+
elb_dns_name: {{ ert_elb_dns_name }}
|
68
|
+
ssh_elb_name: ugli-pcf-ssh-elb
|
69
|
+
ssh_elb_dns_name: {{ ert_ssh_elb_dns_name }}
|
70
|
+
file_storage:
|
71
|
+
endpoint: https://s3-us-west-1.amazonaws.com
|
72
|
+
bucket: {{ ert_s3_buildpacks_bucket_name }}
|
73
|
+
buildpacks_bucket: {{ ert_s3_buildpacks_bucket_name }}
|
74
|
+
droplets_bucket: {{ ert_s3_droplets_bucket_name }}
|
75
|
+
packages_bucket: {{ ert_s3_packages_bucket_name }}
|
76
|
+
resources_bucket: {{ ert_s3_resources_bucket_name }}
|
77
|
+
access_key: {{iam_aws_access_key_id}}
|
78
|
+
secret_key: {{iam_aws_secret_access_key}}
|
79
|
+
rds:
|
80
|
+
host: {{rds_address}}
|
81
|
+
port: {{rds_port}}
|
82
|
+
username: {{rds_username}}
|
83
|
+
password: {{rds_password}}
|
84
|
+
smtp:
|
85
|
+
from: identitystaging@mailinator.com
|
86
|
+
address: smtp.sendgrid.net
|
87
|
+
port: 587
|
88
|
+
credentials:
|
89
|
+
identity: _USERNAME_
|
90
|
+
password: _PASSWORD_
|
91
|
+
enable_starttls_auto: true
|
92
|
+
smtp_auth_mechanism: plain
|
93
|
+
trust_self_signed_certificates: true
|
94
|
+
ssl_certificate: _CERT_
|
95
|
+
ssl_private_key: _KEY_
|