Re: [Puppet Users] Server side filebucket issue

2011-06-03 Thread Peter Meier

filebucket { puppet:
server = puppetmaster-cbr.it.csiro.au
}


you need to add path = false, as you're hitting a long outstanding bug. [1]

~pete

[1] http://projects.puppetlabs.com/issues/5362

--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Server side filebucket issue

2011-06-02 Thread LawrieC
I am having issues with filebucket. I have looked through the puppet
users  google groups with similar issues but have not found a solution
that works.

I am trying to setup a central filebucket on the puppetmaster server.
I am replacing the client's /etc/puppet/puppet.conf file with a
preconfigured version. The server delivers a copy of the puppet.conf
file to the client, but the backup puppet.conf file is stored in the
clients /var/lib/puppet/clientbucket directory.

I have defined a filebucket in the site.pp manifest, I have called the
backup directive in a class called client-conf.

Both files are listed below.



Can you help me  or point me to a solution please?

Cheers
LawrieC



site.pp contains

#Define server filebucket as destination for file backups.
#
filebucket { puppet:
server = puppetmaster-cbr.it.csiro.au
}

module client-conf contains

class client-conf {
# Class to replace client's puppet.conf file with a pre-configured
puppet.conf.

# Replace client's puppet.conf file with a pre-configured puppet.conf
file. Backup the clients existing puppet.conf file.
#
file { /etc/puppet/puppet.conf:
owner = root,
group = root,
mode = 0640,
source = puppet:///modules/client-conf/puppet.conf,
backup = puppet
  }
}


Below is an extract of the debug dialogue between the client and the
server.


debug: /Stage[main]/Client-conf/File[/etc/puppet/puppet.conf]/content:
Executing 'diff -u /etc/puppet/puppet.conf /tmp/puppet-
file20110530-21374-19v5hpf-0'
--- /etc/puppet/puppet.conf 2011-05-30 12:46:48.0 +0930
+++ /tmp/puppet-file20110530-21374-19v5hpf-02011-05-30
12:47:06.0 +0930
@@ -14,7 +14,7 @@

# Module path
# modulepath = /etc/puppet/modules
-   ##
+
 # Enable Pluginsync to make custom facts visible to client
machines
 pluginsync = true
 factpath = $vardir/lib/facter
debug: Finishing transaction 70040199723080
info: FileBucket adding /etc/puppet/puppet.conf as {md5}
a7cba91810e80edb9b72f3070e6809b4
info: /Stage[main]/Client-conf/File[/etc/puppet/puppet.conf]:
Filebucketed /etc/puppet/puppet.conf to puppet with sum
a7cba91810e80edb9b72f3070e6809b4
debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw
yaml; using pson
notice: /Stage[main]/Client-conf/File[/etc/puppet/puppet.conf]/
content: content changed '{md5}a7cba91810e80edb9b72f3070e6809b4' to
'{md5}c777f1c5a94ca961292e3ff03b4efa7b'

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.