summaryrefslogtreecommitdiffstats
path: root/examples/code/snippets/dirchmod
blob: dc2cc89499f8cf389b63dd7be0728d1b61ce8ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# $Id$

file {
    "/tmp/dirchmodtesta": ensure => directory;
    "/tmp/dirchmodtesta/testing": ensure => file
}

file { "/tmp/dirchmodtesta":
    mode => 644, recurse => true
}

file {
    "/tmp/dirchmodtestb": ensure => directory;
    "/tmp/dirchmodtestb/testing": ensure => file
}

file { "/tmp/dirchmodtestb":
    mode => 600, recurse => true
}