Thank you for quick reply. On Wednesday, May 24, 2017 at 1:52:44 PM UTC-4, Nick Lewis wrote: > > > > On Wed, May 24, 2017 at 10:41 AM ggun <[email protected] <javascript:>> > wrote: > >> Writing puppet provider and type : >> 1. I am trying to write my module with provider and type and every time I >> run the module. I get the error 'Error: Could not find a suitable provider >> ssm' >> >> Please find attached module. Every time I run 'puppet apply -e 'include >> storagemanagement' I get above error. I have written simple print commands >> in provider but still getting that error. >> >> >> > It looks like your provider probably has incorrect `confine` statements. > You have `confine :ssm => '/usr/bin/ssm'`, which will only match if there > is a fact called 'ssm' with the value '/usr/bin/ssm'. I think what you're > looking for is `commands :ssm => '/usr/bin/ssm'` (commands vs. confine), > which will restrict the provider to only nodes where that command exists. > It will also create a helper method called 'ssm' that will run that command. > > >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-dev/9698eb69-d7d6-462e-840c-da2dfc375c87%40googlegroups.com >> >> <https://groups.google.com/d/msgid/puppet-dev/9698eb69-d7d6-462e-840c-da2dfc375c87%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >
-- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/ea491af8-51e7-475e-a4f8-09e43ecbd691%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
