Generating puppet manifest failed #346

Open
Finchster opened this Issue Jan 20, 2013 · 7 comments

Comments

Projects
None yet
6 participants
@Finchster

Tried to generate a puppet manifest with the below command on a rpm created by FPM -

fpm -s rpm -t puppet --verbose --debug rpm-1.0-1.x86_64.rpm

Error:

Setting attribute {"file":"fpm/command.rb","method":"execute","rpm_sign?":null,"line":"307","level":"debug"}
/usr/lib64/ruby/gems/1.8/gems/fpm-0.4.26/lib/fpm/package/rpm.rb:190:in input': undefined methoddirectories' for #RPM::File:0x2b0d4b9d06d8 (NoMethodError)
from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.26/lib/fpm/command.rb:316:in execute' from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.26/lib/fpm/command.rb:315:ineach'
from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.26/lib/fpm/command.rb:315:in execute' from /usr/lib64/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:64:inrun'
from /usr/lib64/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:126:in run' from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.26/bin/fpm:8 from /usr/bin/fpm:19:inload'
from /usr/bin/fpm:19

@Finchster

This comment has been minimized.

Show comment Hide comment
@Finchster

Finchster Jan 20, 2013

I just tried to create a basic manifest with the latest FPM version as a test and i'm failing with a different error - maybe a separate bug:

fpm --verbose --debug -s dir -t puppet -n sshpuppet .ssh

Converting dir to puppet {:file=>"fpm/package.rb", :method=>"convert", :line=>"188", :level=>:info}
Cleaning up staging path {:file=>"fpm/package.rb", :method=>"cleanup_staging", :line=>"272", :level=>:debug, :path=>"/tmp/package-puppet-staging20130120-1822-1w12vci"}
/usr/lib64/ruby/gems/1.8/gems/fpm-0.4.27/lib/fpm/package.rb:241:in output': FPM::Package::Puppet does not yet support creating puppet packages (NotImplementedError) from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.27/lib/fpm/command.rb:408:inexecute'
from /usr/lib64/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:64:in run' from /usr/lib64/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:126:inrun'
from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.27/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19

I just tried to create a basic manifest with the latest FPM version as a test and i'm failing with a different error - maybe a separate bug:

fpm --verbose --debug -s dir -t puppet -n sshpuppet .ssh

Converting dir to puppet {:file=>"fpm/package.rb", :method=>"convert", :line=>"188", :level=>:info}
Cleaning up staging path {:file=>"fpm/package.rb", :method=>"cleanup_staging", :line=>"272", :level=>:debug, :path=>"/tmp/package-puppet-staging20130120-1822-1w12vci"}
/usr/lib64/ruby/gems/1.8/gems/fpm-0.4.27/lib/fpm/package.rb:241:in output': FPM::Package::Puppet does not yet support creating puppet packages (NotImplementedError) from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.27/lib/fpm/command.rb:408:inexecute'
from /usr/lib64/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:64:in run' from /usr/lib64/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:126:inrun'
from /usr/lib64/ruby/gems/1.8/gems/fpm-0.4.27/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19

@xavpaice

This comment has been minimized.

Show comment Hide comment
@xavpaice

xavpaice Aug 8, 2013

Same deal, with newer fpm and clamp. Do we need a newer Ruby to make it work?

$ fpm -s dir -t puppet -n 'sonar' -v 3.6.2 sonar-3.6.2
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.42/lib/fpm/package.rb:242:in output': FPM::Package::Puppet does not yet support creating puppet packages (NotImplementedError) from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.42/lib/fpm/command.rb:391:inexecute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in run' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:inrun'
from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.42/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19

xavpaice commented Aug 8, 2013

Same deal, with newer fpm and clamp. Do we need a newer Ruby to make it work?

$ fpm -s dir -t puppet -n 'sonar' -v 3.6.2 sonar-3.6.2
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.42/lib/fpm/package.rb:242:in output': FPM::Package::Puppet does not yet support creating puppet packages (NotImplementedError) from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.42/lib/fpm/command.rb:391:inexecute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:67:in run' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:inrun'
from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.42/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19

@hatt

This comment has been minimized.

Show comment Hide comment
@hatt

hatt Aug 8, 2013

Contributor

Does Puppet work at all in FPM? From looking at the code, everything gets passed back to package.rb as not implemented in puppet.rb (or at least, convert_from, input, and output aren't). The end result is that puppet modules cannot be created or converted from that I can tell. The syntax in puppet.rb for namespacing looks to be severely deprecated too, FPM::Target no longer exists even.

Contributor

hatt commented Aug 8, 2013

Does Puppet work at all in FPM? From looking at the code, everything gets passed back to package.rb as not implemented in puppet.rb (or at least, convert_from, input, and output aren't). The end result is that puppet modules cannot be created or converted from that I can tell. The syntax in puppet.rb for namespacing looks to be severely deprecated too, FPM::Target no longer exists even.

@jordansissel

This comment has been minimized.

Show comment Hide comment
@jordansissel

jordansissel Aug 8, 2013

Owner

It's likely that puppet support was removed accidentally in the refactor that happened in fpm 0.4.0. I don't think anyone's noticed until now ;)

We should add it back in.

Owner

jordansissel commented Aug 8, 2013

It's likely that puppet support was removed accidentally in the refactor that happened in fpm 0.4.0. I don't think anyone's noticed until now ;)

We should add it back in.

@bitthegeek

This comment has been minimized.

Show comment Hide comment
@bitthegeek

bitthegeek Jan 8, 2014

Same issue here. I'll wait until the feature is back again. Fpm sure helped me a lot and would rock a lot if it can handle puppet again.

Same issue here. I'll wait until the feature is back again. Fpm sure helped me a lot and would rock a lot if it can handle puppet again.

@nicobrevin

This comment has been minimized.

Show comment Hide comment
@nicobrevin

nicobrevin Jan 12, 2017

Contributor

Is there still interest in this feature? And am I right in saying that it used to build a puppet manifest/module from a package?

Contributor

nicobrevin commented Jan 12, 2017

Is there still interest in this feature? And am I right in saying that it used to build a puppet manifest/module from a package?

@jordansissel

This comment has been minimized.

Show comment Hide comment
@jordansissel

jordansissel Jan 13, 2017

Owner
Owner

jordansissel commented Jan 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment