Sorry for the somewhat late response. No is was not a direct cut and paste, i left out some personal information and accidentally cut the ending double quote as well. I sent this log as an example.
I get the error on any file I want to replace/keep is a certain state. Like a simple module to keep the issue file the way we want: class issue { file { "/etc/issue": owner => "root", group => "root", mode => "644", source => "puppet://$puppetmaster/modules/issue/ issue"; } ends in a similar way: info: Applying configuration version '1301906526' debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson debug: /File[/etc/issue.net]/content: Executing 'diff -u /etc/ issue.net /tmp/puppet-file20110404-27227-u2uokh-0' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:341: [BUG] Segmentation fault ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] Aborted (core dumped) It seems like the execution of a system command from within the ruby script fails, but I'm not to good with ruby. The modules are used without problems on systems with SLES11 and CentOS 5.5 - John On Apr 1, 9:36 pm, Frank Sweetser <f...@wpi.edu> wrote: > On 4/1/2011 5:15 AM, JohnW wrote: > > > > > Hello > > > I have been using puppet for a while now, more or less successfully on > > SLES 11 and CentOS 5.5 > > currently I am using puppet 2.6.6 > > > I now am trying it out on redhat 6, and now i run into an problem with > > even the simplest of modules/classes > > > The error I get is : > > > debug: /Stage[main]/Motd/File[/etc/motd]/content: Executing 'diff -u / > > etc/motd /tmp/puppet-file20110401-3455-malx7x-0' > > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:341: [BUG] Segmentation > > fault > > ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] > > > my motd module is like this: > > > class motd { > > > $ascii = generate('/bin/sh', '-c', "/bin/echo OS: > > $operatingsystem ) > > Is this a direct cut and paste? Because if so, you're missing a closing > double > quote here. > > -- > Frank Sweetser fs at wpi.edu | For every problem, there is a solution that > WPI Senior Network Engineer | is simple, elegant, and wrong. - HL Mencken > GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC -- 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.