Skip to content

Adding new vhosts throws errors #415

@evancauwenberg

Description

@evancauwenberg

Hello

I have provisioned my server succesfully with this module but if i want to add vhosts to it i receive some errors.

Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type concat at /data/devops/puppet/modules/nginx/manifests/resource/vhost.pp:474 on node dev01
Wrapped exception:
Invalid resource type concat
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type concat at /data/devops/puppet/modules/nginx/manifests/resource/vhost.pp:474 on node dev01

My pp file:
    class { 'nginx': }

    # a fuller example, including permissions and ownership
    file { "/var/www/evert.be":
        ensure => "directory",
        owner  => "evancauwenberg",
        group  => "www-data",
        mode   => 750,
    }

    nginx::resource::vhost { 'evert.be':
      ensure   => present,
      owner                  => 'evancauwenberg',
      group                  => 'www-data',
      mode                   => '0755',
      access_log            => '/var/log/nginx/evert_access.log',
      error_log             => '/var/log/nginx/evert_error.log',
      www_root => '/var/www/evert.be',
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions