[Puppet Users] Re: filebucket retrieval

Jason Rojas
Wed, 11 Feb 2009 08:01:28 -0000

On Feb 10, 2009, at 9:17 PM, Geoff Crompton wrote:

>
> Hi,
>
> While at LCA this year I was talking to James Turnbull, and I think he
> said it was possible to
>  a) pull files off a puppet client to the puppet master
>  b) push those files out to other puppet clients
>
> I''ve been reading up on FileBucket and I don''t understand
how I can
> achieve that, or if I''m on the right track. Whats at
> http://reductivelabs.com/trac/puppet/wiki/TypeReference#filebucket
> suggests that I''m not on the right track.
>
> Can anyone suggest of the right way to use filebucket to do this, or
> if
> there is something else I should be reading up on.
>
> My end goal for this is to build a /var/lib/misc/passwd.db and
> group.db
> on the puppet master (using nss_updatedb, from ldap), and then push
> out
> those .db files to the puppet clients.
>

You can do this a number of ways that don''t necessarily need a file
bucket.

class foo {

filebucket { main: server => puppet }

	file {
		"/var/lib/misc/passwd.db":
			source  => "puppet://file_server/path/passwd.db",
			backup => main;
	}
}

Just make sure your file server is configured correctly and the passwd/
group db files work, and you should be set to go.

What that file type above will do, since I defined the file bucket and
the backup, is it will backup the OLD /var/lib/misc/passwd.db to the
puppetmaster server under the "filebucket/md5hash" directory.

Make sense?
-Jason

> Thanks!
>
> --
> +-Geoff Crompton
> +--Debian System Administrator
> +---Trinity College
>
>
> >
>