title: How to loop over Kannel config in Jinja2
body: <p>I have a config file for Kannel (open source WAP and SMS gateway) that has multiple entries that may change over time. The file looks like this:</p>
  
  <pre><code>group = smsc
  smsc = smpp
  smsc-id = my_smsc
  allowed-smsc-id = my_smsc
  host = 127.1.2.3
  port = 1234
  receive-port = 0
  smsc-username = User1
  smsc-password = FakePassword
  transceiver-mode = yes
  system-type = "SMPP"
  throughput = 50
  max-pending-submits = 10
  source-addr-ton = 0
  source-addr-npi = 0
  enquire-link-interval = 30
  </code></pre>
  
  <p>This block of config can be added numerous times in the same file to open multiple binds to increase throughput.</p>
  
  <p>I need to loop through a <code>sls</code> version of the file using Jinja2 in order to create a conf file on a container, using salt. </p>
  
  <p>But this post is just to gather any ideas of how to loop through such a file? Any help will be greatly appreciated!</p>
  
  <p>Thank YOU!</p>