Skip to content

Commit

Permalink
virtualhost: Lookup the user and group from hiera.
Browse files Browse the repository at this point in the history
That way, if the username is not prosody, it only has to be specified once.
  • Loading branch information
NiklausHofer committed Sep 19, 2021
1 parent 0dd50d4 commit 970f161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/virtualhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Optional[Stdlib::Absolutepath] $ssl_key = undef,
Optional[Stdlib::Absolutepath] $ssl_cert = undef,
Boolean $ssl_copy = true,
Optional[String] $user = undef,
Optional[String] $group = undef,
Optional[String] $user = lookup('prosody::user'),
Optional[String] $group = lookup('prosody::group'),
Hash $components = {},
Array[String[1]] $disco_items = [],
Stdlib::Absolutepath $config_directory = lookup('prosody::config::config_directory'),
Expand Down

0 comments on commit 970f161

Please sign in to comment.