Create a PuppetDB version selector similar to puppet_major_version (say puppetdb_major_version?) for use selecting the major version of puppetdb to be configured by puppet.
Also consider a selector for package variant to be used (puppetlabs, debian, etc.)