puppetlabs / puppetlabs-firewall

Puppet Firewall Module
http://forge.puppetlabs.com/puppetlabs/firewall
Apache License 2.0
271 stars 455 forks source link

Getting problems on the firewall on redhat 8 #1180

Open ffquintella opened 10 months ago

ffquintella commented 10 months ago

Describe the Bug

I´m getting the followin error and checked the code and in fact it passes a hash

Error: Failed to apply catalog: Parameter command failed on Exec[/usr/bin/systemctl daemon-reload]: Command must be a String, got value of class Array (file: /etc/puppetlabs/code/environments/homolog/modules/firewall/manifests/linux/redhat.pp, line: 79)

this is the block with problems

if $ensure == 'running' {
  $running_command = ['/usr/bin/systemctl', 'daemon-reload']

  exec { '/usr/bin/systemctl daemon-reload':
    command     => $running_command,
    require     => Package[$package_name],
    before      => Service[$service_name, $service_name_v6],
    subscribe   => Package[$package_name],
    refreshonly => true,
  }
}

Expected Behavior

it should rund without errors

Steps to Reproduce

just use the module on redhat

Environment

Additional Context

Add any other context about the problem here.