Page MenuHomePhabricator

Puppet function: ipresolve: throw an error if lookup fails, refactor into wmflib
Closed, ResolvedPublic

Description

We have a custom Puppet function called ipresolve: modules/strongswan/lib/puppet/parser/functions/ipresolve.rb

  1. When an IP lookup fails, there is no output and also no error produced. In discussion in IRC, we agreed that it would be better to produce an error.
  1. Because this function is stored inside the strongswan module, Yuvi didn't notice it and talked about writing a "resolve" function in wmflib. We agreed that ipresolve should be refactored into wmflib.

Event Timeline

Gage raised the priority of this task from to Needs Triage.
Gage updated the task description. (Show Details)
Gage added subscribers: Gage, Joe, yuvipanda.
Gage triaged this task as Medium priority.May 20 2015, 9:13 PM
Gage set Security to None.

Change 212464 had a related patch set uploaded (by Yuvipanda):
wmflib: Move ipresolve function into wmflib

https://gerrit.wikimedia.org/r/212464

Change 212784 had a related patch set uploaded (by Yuvipanda):
wmflib: Add nameserver parameter to ipresolve function

https://gerrit.wikimedia.org/r/212784

Change 212464 merged by Yuvipanda:
wmflib: Move ipresolve function into wmflib

https://gerrit.wikimedia.org/r/212464

Change 212784 merged by Yuvipanda:
wmflib: Add nameserver parameter to ipresolve function

https://gerrit.wikimedia.org/r/212784

Change 215682 had a related patch set uploaded (by Yuvipanda):
wmflib: Make ipresolve throw an error if it can't resolve

https://gerrit.wikimedia.org/r/215682

Change 215682 merged by Yuvipanda:
wmflib: Make ipresolve throw an error if it can't resolve

https://gerrit.wikimedia.org/r/215682

Dzahn subscribed.

@yuvipanda looks like you resolved it?