bstopp/puppet-aem

View on GitHub
docs/dispatcher/cache-rules/Grace-Period.md

Summary

Maintainability
Test Coverage
# Dispatcher - Cache Rules

### Grace Period Example

~~~ puppet
aem::dispatcher::farm { 'site' :
  docroot      => '/var/www/docroot',
  grace_period => '1',
}
~~~

This definition will create a file *dispatcher.site.any* with the following contents:

~~~
/anothersite {

  /clientheaders {
    "*"
  }

  /virtualhosts {
    "*"
  }

  /renders {
    /renderer0 {
      /hostname "localhost"
      /port "4503"
    }
  }

  /filter {
    /0 { /type "allow" /glob "*" }
  }

  /cache {

    /docroot "/var/www/docroot"

    /rules {
      /0 { /type "deny" /glob "*" }
    }

    /invalidate {
      /0 { /type "allow" /glob "*" }
    }

    /allowedClients {
      /0 { /type "allow" /glob "*" }
    }

    /gracePeriod "1"
  }
}
~~~