authentication_database.pp 651 B

12345678910111213141516171819202122232425
  1. # Define for setting IcingaWeb2 Authentication
  2. #
  3. define icingaweb2::config::authentication_database (
  4. $auth_resource = undef,
  5. $auth_section = undef,
  6. ) {
  7. Ini_Setting {
  8. ensure => present,
  9. require => File["${::icingaweb2::config_dir}/authentication.ini"],
  10. path => "${::icingaweb2::config_dir}/authentication.ini",
  11. }
  12. ini_setting { "icingaweb2 authentication ${title} resource":
  13. section => $auth_section,
  14. setting => 'resource',
  15. value => "\"${auth_resource}\"",
  16. }
  17. ini_setting { "icingaweb2 authentication ${title} backend":
  18. section => $auth_section,
  19. setting => 'backend',
  20. value => '"db"',
  21. }
  22. }