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

IPv6 upstream members produce invalid configuration #1299

Closed
silkeh opened this issue Jan 18, 2019 · 0 comments · Fixed by #1300
Closed

IPv6 upstream members produce invalid configuration #1299

silkeh opened this issue Jan 18, 2019 · 0 comments · Fixed by #1300

Comments

@silkeh
Copy link
Contributor

silkeh commented Jan 18, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.8.3
  • Ruby: 2.3.3p222
  • Distribution: Debian
  • Module version: 0.15.0

How to reproduce (e.g Puppet code you use)

Define an upstream with an IPv6 address:

nginx::resource::upstream { 'example':
  members => {
    'ip6-localhost:8008' => {
      server => '::1',
      port   => 1234,
    }
  },
}

What are you seeing

Produced configuration is invalid, specifically:

 # MANAGED BY PUPPET
 upstream example {
  server ::1:1234;
 }

What behaviour did you expect instead

Valid configuration, specifically:

 # MANAGED BY PUPPET
 upstream example {
  server [::1]:1234;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant