update templates to support non-standard http port

The templates in the cookbook did not support elastic on a non-standard http port.