Skip to content

Cannot add both IPv4 and IPv6 for same host #52

@qdii

Description

@qdii

Describe the Bug

It is not possible to have two entries for the same host (one in IPv4 and one in IPv6)

Expected Behavior

When writing the following entries:

host { 'foo-v4':
  ensure => 'present',
  name   => 'foo.bar.com',
  ip     => '80.1.2.3',
}
host { 'foo-v6':
  ensure => 'present',
  name   => 'foo.bar.com',
  ip     => '2a01::1',
}

I expect the following entries to be created:

foo.bar.com 80.1.2.3
foo.bar.com 2a01::1

Instead I get an error:

Cannot alias Host[foo-v6] to ["foo.bar.com"] at (file: /etc/puppetlabs/code/environments/production/.../init.pp, line: 504); resource ["Host", "foo.bar.com"] already declared…

Steps to Reproduce

See above

Environment

  • Version 7.27.0
  • Platform Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions