filebucket retrieval

2 views
Skip to first unread message

Geoff Crompton

unread,
Feb 11, 2009, 12:17:45 AM2/11/09
to puppet...@googlegroups.com
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.

Thanks!

--
+-Geoff Crompton
+--Debian System Administrator
+---Trinity College

Jason Rojas

unread,
Feb 11, 2009, 3:01:28 AM2/11/09
to puppet...@googlegroups.com
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

James Turnbull

unread,
Feb 11, 2009, 3:09:45 AM2/11/09
to puppet...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
>

Not file buckets - Exported Resources.

Have a look at:

http://reductivelabs.com/trac/puppet/wiki/ExportedResources

Regards

James Turnbull

- --
Author of:
* Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
* Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
* Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJkofI9hTGvAxC30ARAkl5AJ9Z7Hvlo5d7/T+ak09X/dz1sp2bbACeNMF/
AF/rjSgs6ExLYbgLX2rWFF8=
=U4i5
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages