def _generate_1_0_data
      pe_conf = {}
      ns = "puppet_enterprise"

      master = the_host_with_role('master')
      puppetdb = the_host_with_role('database')
      console = the_host_with_role('dashboard')

      pe_conf["#{ns}::puppet_master_host"] = master.hostname

      # Monolithic installs now only require the puppet_master_host, so only
      # pass in the console and puppetdb host if it is a split install
      if [master, puppetdb, console].uniq.length != 1
        pe_conf["#{ns}::console_host"] = console.hostname
        pe_conf["#{ns}::puppetdb_host"] = puppetdb.hostname
      end

      if the_host_with_role('pe_postgres', raise_error=false)
        pe_conf["#{ns}::database_host"] = the_host_with_role('pe_postgres', raise_error=false).hostname
        if options[:pe_postgresql_options]
          if options[:pe_postgresql_options][:security] == 'cert'
            postgres_cert_answers(pe_conf, '1.0')
          elsif options[:pe_postgresql_options][:security] == 'password'
            postgres_password_answers(pe_conf, '1.0')
          end
        else
          postgres_password_answers(pe_conf, '1.0')
        end
      end

      pe_conf
    end
def _generate_1_0_data
      pe_conf = {}
      ns = "puppet_enterprise"

      master = the_host_with_role('master')
      puppetdb = the_host_with_role('database')
      console = the_host_with_role('dashboard')

      pe_conf["#{ns}::puppet_master_host"] = master.hostname

      # Monolithic installs now only require the puppet_master_host, so only
      # pass in the console and puppetdb host if it is a split install
      if [master, puppetdb, console].uniq.length != 1
        pe_conf["#{ns}::console_host"] = console.hostname
        pe_conf["#{ns}::puppetdb_host"] = puppetdb.hostname
      end

      if the_host_with_role('pe_postgres', raise_error=false)
        pe_conf["#{ns}::database_host"] = the_host_with_role('pe_postgres', raise_error=false).hostname
        if options[:pe_postgresql_options]
          if options[:pe_postgresql_options][:security] == 'cert'
            postgres_cert_answers(pe_conf, '1.0')
          elsif options[:pe_postgresql_options][:security] == 'password'
            postgres_password_answers(pe_conf, '1.0')
          end
        else
          postgres_password_answers(pe_conf, '1.0')
        end
      end

      pe_conf
    end
Relies on a :master, :puppetdb and :console host having been passed
 in the options.