Issue #22931 has been updated by Josh Cooper. Description updated Status changed from Unreviewed to Needs More Information Assignee changed from Vasiliy Boulytchev to Jinpo huang Priority changed from High to Normal Target version deleted (3.x)
I am able to run your manifest without problems. With that said, you are deleting the script, so each time puppet runs, it will create the file and restart the service, which probably isn't what you intended. Have you tried specifying a custom `restart` command for your service instead <http://docs.puppetlabs.com/references/latest/type.html#service>? ---------------------------------------- Bug #22931: Invalid parameter provider for providers https://projects.puppetlabs.com/issues/22931#change-99288 * Author: Jinpo huang * Status: Needs More Information * Priority: Normal * Assignee: Jinpo huang * Category: * Target version: * Affected Puppet version: 3.2.2 * Keywords: Invalid parameter provider * Branch: ---------------------------------------- node1.pp: <pre> file {"/tmp/11.sh": content=>"service snmpd restart \n rm -rf /tmp/11.sh"; } exec { "service restart": timeout => 1800, provider => shell, #The line number: 16 command => "sh /tmp/11.sh", require => File["/tmp/11.sh"] } </pre> # puppet-master log: <pre> puppet-master[1109]: Invalid parameter provider at /etc/puppet/manifests/nodes/node1.pp:16 on node node1 </pre> puppet-agent log: <pre> puppet-agent[29079]: Retrieving plugin puppet-agent[29079]: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter provider at /etc/puppet/manifests/nodes/node1.pp:16 on node node1 puppet-agent[29079]: Not using cache on failed catalog puppet-agent[29079]: Could not retrieve catalog; skipping run </pre> I restart the puppetmaster service(service puppetmaster restart) is normal, but not specific to solve the above problems. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
