Skip to content

Commit 7df593d

Browse files
committed
(PUP-12057) Generate resource type references
Generated using `bundle exec rake references:type`
1 parent 1a9c881 commit 7df593d

14 files changed

+10036
-0
lines changed

references/type.md

+4,801
Large diffs are not rendered by default.

references/types/exec.md

+507
Large diffs are not rendered by default.

references/types/file.md

+936
Large diffs are not rendered by default.

references/types/filebucket.md

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
layout: default
3+
built_from_commit: 942adce0b1b70f696b0f09d7109ded7559f0fa33
4+
title: 'Resource Type: filebucket'
5+
canonical: "/puppet/latest/types/filebucket.html"
6+
---
7+
8+
# Resource Type: filebucket
9+
10+
> **NOTE:** This page was generated from the Puppet source code on 2024-08-28 16:45:59 -0700
11+
12+
13+
14+
## filebucket
15+
16+
* [Attributes](#filebucket-attributes)
17+
18+
### Description {#filebucket-description}
19+
20+
A repository for storing and retrieving file content by cryptographic checksum. Can
21+
be local to each agent node, or centralized on a primary Puppet server. All
22+
puppet servers provide a filebucket service that agent nodes can access
23+
via HTTP, but you must declare a filebucket resource before any agents
24+
will do so.
25+
26+
Filebuckets are used for the following features:
27+
28+
- **Content backups.** If the `file` type's `backup` attribute is set to
29+
the name of a filebucket, Puppet will back up the _old_ content whenever
30+
it rewrites a file; see the documentation for the `file` type for more
31+
details. These backups can be used for manual recovery of content, but
32+
are more commonly used to display changes and differences in a tool like
33+
Puppet Dashboard.
34+
35+
To use a central filebucket for backups, you will usually want to declare
36+
a filebucket resource and a resource default for the `backup` attribute
37+
in site.pp:
38+
39+
# /etc/puppetlabs/puppet/manifests/site.pp
40+
filebucket { 'main':
41+
path => false, # This is required for remote filebuckets.
42+
server => 'puppet.example.com', # Optional; defaults to the configured primary server.
43+
}
44+
45+
File { backup => main, }
46+
47+
Puppet Servers automatically provide the filebucket service, so
48+
this will work in a default configuration. If you have a heavily
49+
restricted Puppet Server `auth.conf` file, you may need to allow access to the
50+
`file_bucket_file` endpoint.
51+
52+
### Attributes {#filebucket-attributes}
53+
54+
<pre><code>filebucket { 'resource title':
55+
<a href="#filebucket-attribute-name">name</a> =&gt; <em># <strong>(namevar)</strong> The name of the...</em>
56+
<a href="#filebucket-attribute-path">path</a> =&gt; <em># The path to the _local_ filebucket; defaults to...</em>
57+
<a href="#filebucket-attribute-port">port</a> =&gt; <em># The port on which the remote server is...</em>
58+
<a href="#filebucket-attribute-server">server</a> =&gt; <em># The server providing the remote filebucket...</em>
59+
# ...plus any applicable <a href="https://puppet.com/docs/puppet/latest/metaparameter.html">metaparameters</a>.
60+
}</code></pre>
61+
62+
63+
#### name {#filebucket-attribute-name}
64+
65+
_(**Namevar:** If omitted, this attribute's value defaults to the resource's title.)_
66+
67+
The name of the filebucket.
68+
69+
([↑ Back to filebucket attributes](#filebucket-attributes))
70+
71+
72+
#### path {#filebucket-attribute-path}
73+
74+
The path to the _local_ filebucket; defaults to the value of the
75+
`clientbucketdir` setting. To use a remote filebucket, you _must_ set
76+
this attribute to `false`.
77+
78+
([↑ Back to filebucket attributes](#filebucket-attributes))
79+
80+
81+
#### port {#filebucket-attribute-port}
82+
83+
The port on which the remote server is listening.
84+
85+
This setting is _only_ consulted if the `path` attribute is set to `false`.
86+
87+
If this attribute is not specified, the first entry in the `server_list`
88+
configuration setting is used, followed by the value of the `serverport`
89+
setting if `server_list` is not set.
90+
91+
([↑ Back to filebucket attributes](#filebucket-attributes))
92+
93+
94+
#### server {#filebucket-attribute-server}
95+
96+
The server providing the remote filebucket service.
97+
98+
This setting is _only_ consulted if the `path` attribute is set to `false`.
99+
100+
If this attribute is not specified, the first entry in the `server_list`
101+
configuration setting is used, followed by the value of the `server` setting
102+
if `server_list` is not set.
103+
104+
([↑ Back to filebucket attributes](#filebucket-attributes))
105+
106+
107+
108+
109+

0 commit comments

Comments
 (0)