Module: Beaker::Answers::Version32

Defined in:
lib/beaker/answers/version32.rb

Class Method Summary collapse

Class Method Details

.answers(hosts, master_certname, options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/beaker/answers/version32.rb', line 6

def self.answers(hosts, master_certname, options)
  dashboard = only_host_with_role(hosts, 'dashboard')
  master = only_host_with_role(hosts, 'master')

  the_answers = Version30.answers(hosts, master_certname, options)
  if dashboard != master
    # in 3.2, dashboard needs the master certname
    the_answers[dashboard.name][:q_puppetmaster_certname] = master_certname
  end

  if options[:type] == :upgrade && dashboard != database
    # In a split configuration, there is no way for the upgrader
    # to know how much disk space is available for the database
    # migration. We tell it to continue on, because we're
    # awesome.
    the_answers[dashboard.name][:q_upgrade_with_unknown_disk_space] = 'y'
  end

  return the_answers
end