Defined Type: stingray::rule

Defined in:
manifests/rule.pp

Overview

Define: rule

Import a TrafficScript rule to the Stingray Traffic Manager catalog.

Parameters

name

The name to give the TrafficScript rule being imported to the catalog.

file

The file containing the rule

Examples

stingray::rule { 'My rule':
    file => 'puppet:///modules/stingray/rule.ts'
}

Authors

Faisal Memon <fmemon@riverbed.com>

Copyright 2013 Riverbed Technology

Parameters:

  • file (Any) (defaults to: '')


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'manifests/rule.pp', line 27

define stingray::rule(
    $file = '',

) {
    include stingray

    $path = $stingray::install_dir

    info ("Import rule ${name}")
    file { "${path}/zxtm/conf/rules/${name}":
        ensure => 'present',
        source => $file,
        notify => Exec['replicate_config']
    }
}