Hi, I want to exec something with a variable. If found the following link and tried to implement:
https://stackoverflow.com/questions/33557093/puppet-notify-a-class-with-parameters file { "${apacheConfPath}/conf-available/${file}": mode => '0640', owner => $rootUID, group => $rootGID, source => "puppet:///modules/my_apache/${operatingsystem}/${apacheConfPath}/conf.d/${file}", # notify => a2enmod["$file"], # notify => a2enmod['99-status.conf'], } exec { "a2enconf_${title}": path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin', refreshonly => true, command => "a2enconf ${title}", # subscribe => File['99-status.conf'], subscribe => File["$file"], } Error: Failed to apply catalog: Could not find dependency File[99-status.conf] for Exec[a2enconf_my_apache::config_files] at /etc/puppetlabs/code/modules/my_apache/manifests/config_files.pp:130 Can someone point me to the right direction? Thank you! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/xn0lixerc48gqno000%40news.gmane.org. For more options, visit https://groups.google.com/d/optout.