Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Use stahnma/puppetlabs_yum and ploperations/puppetlabs_apt to handle Puppet repositories #37

Closed
juniorsysadmin opened this issue Jan 1, 2017 · 5 comments
Labels

Comments

@juniorsysadmin
Copy link
Member

Ideally this module should use stahnma/puppetlabs_yum and ploperations/puppetlabs_apt

@juniorsysadmin
Copy link
Member Author

@juniorsysadmin juniorsysadmin added the enhancement New feature or request label Jan 1, 2017
@vinzent
Copy link
Contributor

vinzent commented Feb 2, 2017

as commented in #20 (comment) the module should maybe better not provide the repo class as the person installing puppetserver with puppet very likely already has the puppetlabs repo configured or manages packages with internal repositories.

The README.md should point to the modules providing smooth repo integration for other users to be included in profiles.

@juniorsysadmin
Copy link
Member Author

juniorsysadmin commented Feb 3, 2017

$repo_class = '::puppetlabs_yum'

@vinzent
Copy link
Contributor

vinzent commented Feb 3, 2017

@juniorsysadmin repo_class ? do you mean passing repo_class to puppetserver::repository?

# example class
class puppetserver::repository( $repo_class = $puppetserver::params::repo_class )  { 
  include $repo_class
}

# profile
class { puppetserver::repository: repo_class => `::puppetlabs_yum` }
class { puppetserver: }

## versus

# profile
include ::puppetlabs_yum
include ::puppetserver

Class['puppetlabs_yum'] -> Class['puppetserver']

IMHO:

  • puppet-puppetserver shouldn't provide the repoository config because it changes and others provide modules to provide exactly this service
  • puppet-puppetserver shouldn't depend on the modules because when installing puppet-agent most people already have the repo configured and to install puppetserver with puppet one requires to install puppet before.
  • puppet-puppetserver shouldn't care about puppet3 anymore because we ware puppet 4 only we don't support puppet3 anymore. (https://voxpupuli.org/blog/2016/12/22/putting-down-puppet-3/)
  • puppet-puppetserver shouldn't depend on the modules because if installing puppetserver with puppet and I have only internal repositories I don't wan't to include puppet modules in my env which I will never use.
  • puppet-puppetserver should provide documentation howto configure puppet repo with 3rd party modules

@juniorsysadmin
Copy link
Member Author

@vinzent Actually that's better. Can't remember the reason for filing this issue other than removing the repository class code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants