```ruby
test_config = PuppetDBExtensions.config
os = test_config[:os_families][database.name]


if (test_config[:install_type] == :package)

  step "Add development repository on PuppetDB server" do
    case os
    when :debian
      apt_url = "#{test_config[:package_repo_url]}/debian"

      # TODO: this could be (maybe?) ported over to use the puppetlabs-apt module.
      on database, "echo deb #{apt_url} $(lsb_release -sc) main >> /etc/apt/sources.list"
      on database, "curl #{apt_url}/pubkey.gpg |apt-key add -"
      on database, "apt-get update"
    when :redhat
      create_remote_file database, '/etc/yum.repos.d/puppetlabs-prerelease.repo', <<-REPO
[puppetlabs-development]
name=Puppet Labs Development - $basearch
baseurl=#{test_config[:package_repo_url]}/el/$releasever/products/$basearch
enabled=1
gpgcheck=0
      REPO
    else
      raise ArgumentError, "Unsupported OS '#{os}'"
    end
  end
end
```

Add logging to show the yum repo definition
user
```ruby
test_config = PuppetDBExtensions.config
os = test_config[:os_families][database.name]


if (test_config[:install_type] == :package)

  step "Add development repository on PuppetDB server" do
    case os
    when :debian
      apt_url = "#{test_config[:package_repo_url]}/debian"

      # TODO: this could be (maybe?) ported over to use the puppetlabs-apt module.
      on database, "echo deb #{apt_url} $(lsb_release -sc) main >> /etc/apt/sources.list"
      on database, "curl #{apt_url}/pubkey.gpg |apt-key add -"
      on database, "apt-get update"
    when :redhat
      yum_repo = <<-REPO
[puppetlabs-development]
name=Puppet Labs Development - $basearch
baseurl=#{test_config[:package_repo_url]}/el/$releasever/products/$basearch
enabled=1
gpgcheck=0
      REPO
      Log.notify("Yum repo definition.\n\n#{yum_repo}\n\n")
      create_remote_file database, '/etc/yum.repos.d/puppetlabs-prerelease.repo', yum_repo
    else
      raise ArgumentError, "Unsupported OS '#{os}'"
    end
  end
end
```
assistant