init.sls 720 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Basic Freifunk related information
  3. #
  4. /etc/freifunk:
  5. file.directory:
  6. - user: root
  7. - group: root
  8. - mode: 755
  9. - makedirs: True
  10. # Generate /etc/freifunk/roles file with all roles configured on the node,
  11. # one on each line.
  12. /etc/freifunk/roles:
  13. file.managed:
  14. - source: salt://ffinfo/list.tmpl
  15. - template: jinja
  16. list: {{ salt['pillar.get']('nodes:' ~ grains['id'] ~ ':roles', []) }}
  17. # Generate /etc/freifunk/sites file with all sites configured on the node,
  18. # one on each line. Empty if no sites configured.
  19. /etc/freifunk/sites:
  20. file.managed:
  21. - source: salt://ffinfo/list.tmpl
  22. - template: jinja
  23. list: {{ salt['pillar.get']('nodes:' ~ grains['id'] ~ ':sites', []) }}