server.pp 551 B

123456789101112131415161718192021222324252627
  1. # A description of what this class does
  2. #
  3. # @summary A short summary of the purpose of this class
  4. #
  5. # @example
  6. # include openldap::server
  7. class openldap::server (
  8. String $owner,
  9. String $group,
  10. String $server_package,
  11. Enum['olc', 'augeas'] $provider,
  12. )
  13. {
  14. class { 'openldap::server::install': }
  15. case $provider {
  16. 'augeas': {
  17. Class['openldap::server::install']
  18. -> Class['openldap::server']
  19. }
  20. 'olc': {
  21. }
  22. default: {
  23. fail 'Invalid config provider'
  24. }
  25. }
  26. }