puppetlabs-apache icon indicating copy to clipboard operation
puppetlabs-apache copied to clipboard

Error no parameter named 'create_empty_file' in concat

Open d1nuc0m opened this issue 1 year ago • 1 comments

Describe the Bug

I'm trying to run a vhost on port 8080, as port 80 is in use by another program, but there is an error related to concat

Expected Behavior

Being able to create a vhost

Steps to Reproduce

Code sample

  class { 'apache': }
  apache::vhost { "vhost.example.com":
    port          => 8080,
    docroot       => '/var/www/vhost',
    docroot_owner => 'www-data',
    docroot_group => 'www-data',
    ssl_reload_on_change => true,
    logroot => "/var/log/httpd/vhost.log",
    use_optional_includes => true,
  }

Result

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'create_empty_file' (file: /etc/puppetlabs/code/environments/production/modules/concat/manifests/init.pp, line: 126) on Concat_file[/etc/httpd/conf/ports.conf] (file: /etc/puppetlabs/code/environments/production/modules/concat/manifests/init.pp, line: 126) on node example.com

Environment

  • Version 12.0.2
  • Platform AlmaLinux 9.3

Additional Context

Complete environment

forge 'forge.puppetlabs.com'
mod 'puppet-archive', '7.1.0'
mod 'puppet-firewalld', '5.0.0'
mod 'puppet-selinux', '4.1.0'
mod 'puppetlabs-apache', '12.0.2'
mod 'puppetlabs-concat', '9.0.2'
mod 'puppetlabs-stdlib', '9.4.1'

d1nuc0m avatar Jan 31 '24 16:01 d1nuc0m

On the Puppet server puppet generate types --environment (my_environment_name) seemed to fix it

Kudos to https://www.reddit.com/r/Puppet/comments/15ejlf7/puppetdb_configuration_with/

d1nuc0m avatar Feb 08 '24 12:02 d1nuc0m