Issue #4557 has been updated by Jordan Sissel.

FYI, I set priority to high since I'm somewhat blocked now in my masterless 
deployment on 2.6. Feel free to change.
----------------------------------------
Bug #4557: File serving breaks in masterless operation
http://projects.puppetlabs.com/issues/4557

Author: Jordan Sissel
Status: Unreviewed
Priority: High
Assigned to: 
Category: 
Target version: 
Affected version: 2.6.0
Keywords: 
Branch: 


In puppet 2.6, masterless fileserving does not work. I rolled back to 0.25.5 
and tested the same manifest+configuration and it works.

# Example with 0.25.5 that works.
nightfall(~/test) % sudo gem install --no-ri --no-rdoc --local 
./puppet-0.25.5.gem
nightfall(~/test) !1! % puppet --verbose --modulepath ./modules 
manifests/site.pp
info: Autoloaded module foo
info: Applying configuration version '1282080308'
notice: //foo/File[/tmp/footest]/ensure: content changed 
'{md5}f0ef7081e1539ac00ef5b761b4fb01b3' to 
'{md5}f0ef7081e1539ac00ef5b761b4fb01b3'

# Now with 2.6 and does not work
nightfall(~/test) % sudo gem install --no-ri --no-rdoc --local 
./puppet-2.6.0.gem
Successfully installed puppet-2.6.0
1 gem installed
nightfall(~/test) % puppet apply --verbose --modulepath ./modules 
manifests/site.pp
info: Automatically imported foo from foo into production
info: Applying configuration version '1282080353'
err: /Stage[main]/Foo/File[/tmp/footest]: Could not evaluate: Connection 
refused - connect(2) Could not retrieve file metadata for 
puppet:///modules/foo/footest: Connection refused - connect(2) at 
/home/jls/test/./modules/foo/manifests/init.pp:6

In 2.6, it tries to talk to 'puppet' (--server default value). Setting --server 
to localhost does not work. A work around includes running 'puppet master' on 
each node and 'puppet apply --server=localhost'. It
is a lame work around.

It's possible I've missed a config flag somewhere that enables proper 
masterless puppeting, but I'm not seeing it. For this test case, I have no 
/etc/puppet/puppet.conf (file does not exist).

Here's my reproduce case:

nightfall(~/test) % find modules manifests 
modules
modules/foo
modules/foo/files
modules/foo/files/footest
modules/foo/manifests
modules/foo/manifests/init.pp
manifests
manifests/site.pp


manifests/site.pp:
node default {
  include foo
}


modules/foo/manifests/init.pp:
class foo {
  file {
    "/tmp/footest":
      ensure => file,
      source => "puppet:///modules/foo/footest";
  }
}

I've attached a tarball of this.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to