authentication_database.pp 653 B

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