Source

Implementation

Provisioner Type

Resource Type

Flavor

Tool

dns

The default dns provisioner just outputs localhost as the hostname every time. This is because without actual control of a dns resolver we can’t do any accurate routing on any other name. This can be replaced by a new provisioner in the future.

Outputs a *.localhost domain as the hostname.

type: dns
expected_outputs:
  - host

provisioners.yaml (view on GitHub) :

- uri: template://default-provisioners/dns
  type: dns
  description: Outputs a *.localhost domain as the hostname.
  init: |
    randomHostname: dns{{ randAlphaNum 6 | lower }}.localhost    
  state: |
    instanceHostname: {{ dig "instanceHostname" .Init.randomHostname .State | quote }}    
  outputs: |
    host: {{ .State.instanceHostname }}    
  expected_outputs:
    - host