Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting problems on the firewall on redhat 8 #1180

Open
ffquintella opened this issue Nov 29, 2023 · 0 comments
Open

Getting problems on the firewall on redhat 8 #1180

ffquintella opened this issue Nov 29, 2023 · 0 comments

Comments

@ffquintella
Copy link

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

  • Version 7.0.2

Additional Context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants