Skip to content

Commit

Permalink
add backend serveraliases to debian vhosts
Browse files Browse the repository at this point in the history
deb.tfm.o (and friends) do not point to our host these days, but to a
CDN, thus, using deb.tfm.o as the vhost name is a tad wrong.

this change introduces sets the primary name to deb-backend.${fqdn}
with an alias of deb.tfm.o

This has the benefit that the right vhost is reachable without any
tricks, and will allow us to switch the CDN config to a "more correct"
naming scheme, later dropping deb.tfm.o from the vhost here totally.

(This has the side-benefit that deb.tfm LE requests go via the CDN and
only then hit our box, which is confusing to say the least and that
would stop)
  • Loading branch information
evgeni authored and ehelms committed Nov 18, 2024
1 parent 73c7a03 commit 0cadf0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions puppet/modules/freight/manifests/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
include apache::mod::mime

web::vhost { $vhost:
servername => "${vhost}-backend.${facts['networking']['fqdn']}",
serveraliases => [ "${vhost}.theforeman.org" ],
docroot => $webdir,
docroot_owner => $user,
docroot_group => $user,
Expand Down

0 comments on commit 0cadf0e

Please sign in to comment.