Sha256: 65569c2e7ac8c56f8ddfc5f615e6cb560ee5eadcfb9a5fb52d7aad4e82566657

Contents?: true

Size: 1.71 KB

Versions: 20

Compression:

Stored size: 1.71 KB

Contents

require 'spec_helper'
require 'json'

describe BeakerAnswers::Version20162 do
  let( :ver )         { '2016.2.0' }
  let( :options )     { StringifyHash.new }
  let( :basic_hosts ) { make_hosts( {'pe_ver' => ver } ) }
  let( :hosts ) { basic_hosts[0]['roles'] = ['master', 'agent']
                  basic_hosts[1]['roles'] = ['dashboard', 'agent']
                  basic_hosts[2]['roles'] = ['database', 'agent']
                  basic_hosts }
  let( :answers )     { BeakerAnswers::Answers.create(ver, hosts, options) }
  let( :answer_hash ) { answers.answers }

  context 'when generating a hiera config' do
    context 'for a monolithic install' do
      let( :basic_hosts ) { make_hosts( {'pe_ver' => ver }, 1 ) }
      let( :hosts ) { basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
                      basic_hosts }
      let( :gold_role_answers ) do
        {
          "console_admin_password" => default_password,
          "puppet_enterprise::use_application_services" => true,
          "puppet_enterprise::puppet_master_host" => basic_hosts[0].hostname,
        }
      end

      include_examples 'pe.conf'
      include_examples 'valid MEEP 1.0 pe.conf'
    end

    context 'for a split install' do
      let( :gold_role_answers ) do
        {
          "console_admin_password" => default_password,
          "puppet_enterprise::use_application_services" => true,
          "puppet_enterprise::puppet_master_host" => basic_hosts[0].hostname,
          "puppet_enterprise::console_host" => basic_hosts[1].hostname,
          "puppet_enterprise::puppetdb_host" => basic_hosts[2].hostname,
        }
      end

      include_examples 'pe.conf'
      include_examples 'valid MEEP 1.0 pe.conf'
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
beaker-answers-0.29.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.28.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.27.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.26.3 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.26.2 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.26.1 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.26.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.25.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.24.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.23.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.22.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.21.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.20.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.19.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.18.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.17.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.16.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.15.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.14.0 spec/beaker-answers/versions/version20162_spec.rb
beaker-answers-0.13.0 spec/beaker-answers/versions/version20162_spec.rb