generate site alias link

This commit is contained in:
Leif Johansson 2018-09-24 18:32:23 +02:00
parent dec03706c0
commit 09d65bbe1a
2 changed files with 4 additions and 4 deletions

View file

@ -733,7 +733,7 @@ web-1.qa.sveidas.se:
pages:
site_alias:
name: swedenconnect.se
alias: www.swedenconnect.se
alias_name: www.swedenconnect.se
sunet::frontend::register_sites:
sites:
'swedenconnect.se':

View file

@ -24,10 +24,10 @@ class infra_ca_rp {
node default {
}
class site_alias($alias) {
file { "/var/www/$alias":
class site_alias($alias_name) {
file { "/var/www/$alias_name":
ensure => link,
target => "/var/www/$name"
target => "/var/www/$title"
}
}