generate site alias link

This commit is contained in:
Leif Johansson 2018-09-24 18:30:08 +02:00
parent 67a6dbb52a
commit 551cb52a0a
2 changed files with 10 additions and 0 deletions

View file

@ -731,6 +731,9 @@ web-1.qa.sveidas.se:
autoupdate:
github_client_credential:
pages:
site_alias:
name: swedenconnect.se
alias: www.swedenconnect.se
sunet::frontend::register_sites:
sites:
'swedenconnect.se':

View file

@ -24,6 +24,13 @@ class infra_ca_rp {
node default {
}
class site_alias($alias) {
file { "/var/www/$alias":
ensure => link,
target => "/var/www/$name"
}
}
class common {
include sunet::tools
include sunet::motd