Ask Your Question

Error while evaluating a Function Call, Could not find any files from

asked 2017-02-05 21:35:34 -0600

Chris Moreira gravatar image

Hi there,

I'm writing a module to install a package and configure it afterwards, the package installation is working fine, however, to add some custom configuration I need to restart the service and that isn't working, So the code below install the package, and supposed to, , finds the Service ID (it's different everytime it get's installed) and stop the service, however, I get this error, when I tried Puppet agent reports "Error: Evaluation Error: Error while evaluating a Function Call, Could not find any files from C:\Atlassian\JIRA.install4j\",

 package { "${jira::package_name} ${jira::version}":
    ensure          => "${jira::version}",
    allow_virtual   => false, 
    provider        => 'windows',
    source          => "${jira::extractdir}\\${file}",
    install_options => ['-q', '-varfile', $response_varfile]

  $jira_win_serviceid = file(" C:\Atlassian\JIRA\.install4j\")

   service { "${jira_win_serviceid}":
      ensure => 'stopped',
      enable => true,

I'm also trying via exec, but no lucky yet

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-06 07:59:22 -0600

DarylW gravatar image

You don't have any relationship specified in the above configuration. you would either need a 'notify' parameter on your config file pointing to Service["${jira_win_serviceid}"], or a 'subscribe' param on that service pointing to your config file.

See the example from

case $operatingsystem {
  centos, redhat: { $service_name = 'ntpd' }
  debian, ubuntu: { $service_name = 'ntp' }

package { 'ntp':
  ensure => installed,

service { 'ntp':
  name      => $service_name,
  ensure    => running,
  enable    => true,
  subscribe => File['ntp.conf'],

file { 'ntp.conf':
  path    => '/etc/ntp.conf',
  ensure  => file,
  require => Package['ntp'],
  source  => "puppet:///modules/ntp/ntp.conf",
  # This source file would be located on the Puppet master at
  # /etc/puppetlabs/code/modules/ntp/files/ntp.conf
edit flag offensive delete link more


Hi there, thank you for your help, so I don't think that will help in this case, unfortunately, the package that I'm installing creates a Win services with a Name+ Radom number

Chris Moreira gravatar imageChris Moreira ( 2017-02-13 05:51:22 -0600 )edit

What I want to do is install that pckge and then update the service, but that service is only created after the installation has finished, so not available when catalogue gets compiled. Is there a way to have a code that is only evaluated during execution, as that needed value will exist only then

Chris Moreira gravatar imageChris Moreira ( 2017-02-13 06:02:31 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-02-05 21:35:34 -0600

Seen: 734 times

Last updated: Feb 06 '17