forked from nfagerlund/evil-made-manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilebucket_attribute_precedence.pp
22 lines (17 loc) · 1.04 KB
/
filebucket_attribute_precedence.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Is the implementation wart that you must set 'path' to false to use a remote filebucket still true? YES.
# That is, if you set a "server" attribute but don't set "path," it won't cause a change of behavior and will just use a local filebucket.
# If you don't set a 'server' attribute, will it use a default and go with a remote filebucket anyway? YES (assuming you set path to false).
# This manifest should be tested with:
# puppet master --verbose --debug --no-daemonize --manifest filebucket_attribute_precedence.pp
# puppet agent --server <server> --test --debug
# ...then change the content of the file a bunch of times while re-running the agent. You'll see debug messages when it buckets something.
# Make sure you have different bucketdir and clientbucketdir settings, as is the default. You can then use find <dir> | grep <md5> to see which one the content landed in.
filebucket {'main':
# path => false,
server => "magpie.lan",
}
File { backup => main, }
file {'/tmp/twiddler':
ensure => file,
content => "r,c.gpr,c.bkbkbkbkbk,.cgp",
}