Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ cat regex_case.pp 
case "Foo" {
    /foo/: { notify { "regex case-insensitive": } }
    /Foo/: { notify { "regex case-sensitive": } }
}

case "Bar" {
    "bar": { notify { "string case-insensitive": } }
    "Bar": { notify { "string case-sensitive": } }
}

$ puppet apply regex_case.pp 
notice: regex case-sensitive
notice: /Stage[main]//Notify[regex case-sensitive]/message: defined 'message' as 'regex case-sensitive'
notice: string case-insensitive
notice: /Stage[main]//Notify[string case-insensitive]/message: defined 'message' as 'string case-insensitive'
notice: Finished catalog run in 0.01 seconds