guard against a nil gateway
merge conflict
use default attribute precedence for chef 11 compatibility