Sha256: 5f851391eb2fe6daf9b1e339f70ee46cd34efbb3d42d27d02ae8bd0d239ef2db

Contents?: true

Size: 1.06 KB

Versions: 29

Compression:

Stored size: 1.06 KB

Contents

require 'beaker/answers/version30'

module Beaker
  module Answers
    module Version32
      def self.answers(hosts, master_certname, options)
        dashboard = only_host_with_role(hosts, 'dashboard')
        database = only_host_with_role(hosts, 'database')
        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
        hosts.each do |h|
          h[:answers] = the_answers[h.name]
        end
        return the_answers
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
beaker-1.19.1 lib/beaker/answers/version32.rb
beaker-1.19.0 lib/beaker/answers/version32.rb
beaker-1.18.0 lib/beaker/answers/version32.rb
beaker-1.17.7 lib/beaker/answers/version32.rb
beaker-1.17.6 lib/beaker/answers/version32.rb
beaker-1.17.5 lib/beaker/answers/version32.rb
beaker-1.17.4 lib/beaker/answers/version32.rb
beaker-1.17.3 lib/beaker/answers/version32.rb
beaker-1.17.2 lib/beaker/answers/version32.rb
beaker-1.17.1 lib/beaker/answers/version32.rb
beaker-1.17.0 lib/beaker/answers/version32.rb
beaker-1.16.0 lib/beaker/answers/version32.rb
beaker-1.15.0 lib/beaker/answers/version32.rb
beaker-1.14.1 lib/beaker/answers/version32.rb
beaker-1.14.0 lib/beaker/answers/version32.rb
beaker-1.13.1 lib/beaker/answers/version32.rb
beaker-1.13.0 lib/beaker/answers/version32.rb
beaker-1.12.2 lib/beaker/answers/version32.rb
beaker-1.12.1 lib/beaker/answers/version32.rb
beaker-1.12.0 lib/beaker/answers/version32.rb