Files
puppet-swift/manifests/proxy/staticweb.pp
Takashi Kajinami 109cd356de Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I4c0a9357fcc4184df852024e1f6f36c0ed2e1440
2023-03-02 14:47:43 +09:00

36 lines
748 B
Puppet

#
# Configure swift staticweb, see documentation for Swift staticweb middleware
# to understand more about configuration.
#
# == Dependencies
#
# == Examples
#
# include 'swift::proxy::staticweb'
#
# == Parameters
#
# [*url_base*]
# (optional) The URL scheme and/or the host name used to generate redirects.
# Defaults to $facts['os_service_default'].
#
# == Authors
#
# Mehdi Abaakouk <sileht@sileht.net>
#
# == Copyright
#
# Copyright 2012 eNovance licensing@enovance.com
#
class swift::proxy::staticweb(
$url_base = $facts['os_service_default']
) {
include swift::deps
swift_proxy_config {
'filter:staticweb/use': value => 'egg:swift#staticweb';
'filter:staticweb/url_base': value => $url_base;
}
}