generate site alias link
This commit is contained in:
parent
67a6dbb52a
commit
551cb52a0a
2 changed files with 10 additions and 0 deletions
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue