JustPaste.it

# Pillar file.

set_ntp:
  - ntp1.sth.netnod.se
  - ntp2.sth.netnod.se

 

# code

NTP={{salt['pillar.get']('set_ntp')}}

 

# output

NTP=['ntp1.sth.netnod.se', 'ntp2.sth.netnod.se']

 

# I get a lot of extra characters here that i dont want.

# This is how I want it to look:

NTP=ntp1.sth.netnod.se ntp2.sth.netnod.se