File: staticweb.pp

package info (click to toggle)
puppet-module-swift 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,400 kB
  • sloc: ruby: 9,593; python: 38; sh: 10; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# 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;
  }
}