diff --git a/states/syncthing/config_old.sls b/states/syncthing/config_old.sls deleted file mode 100644 index 74a38e9..0000000 --- a/states/syncthing/config_old.sls +++ /dev/null @@ -1,24 +0,0 @@ ---- -{%- from "syncthing/map.jinja" import syncthing with context %} -{%- set configdir=salt['user.info'](syncthing.user)['home'] + '/.config/syncthing' %} -#syncthing-config-dir: -# file.directory: -# - name: {{ configdir }} -# - makedirs: true - # - watch_in: - # - service: syncthing-service - -#syncthing-config-file: -# file.managed: -# - name: {{ configdir }}/config.xml -# - source: salt://syncthing/config.xml.j2 -# - user: root -# - group: root -# - template: jinja -# - watch_in: -# - service: syncthing-service - -{%- set config = salt['http.query'](url="http://localhost:8384/rest/system/config", header_dict={"X-API-Key":syncthing.apikey},decode=True, decode_type='json') %} -#{{ config['dict']['gui'] }} - -{%- do salt['http.query'](method='POST', url="http://localhost:8384/rest/system/config", header_dict={"X-API-Key":syncthing.apikey}, decode=True, decode_type='json', data=json.dumps(syncthing.config)) %} \ No newline at end of file diff --git a/states/syncthing/defaults.yaml b/states/syncthing/defaults.yaml index 726c186..d13b572 100644 --- a/states/syncthing/defaults.yaml +++ b/states/syncthing/defaults.yaml @@ -13,5 +13,5 @@ syncthing: config: gui: address: "0.0.0.0:8384" - user: "paul" - password: "$2a$10$NeZ3cfyOgZcdMGy9ixB7LOAP6z8tCOVjico6ZGLoK2QIQy734qPw." \ No newline at end of file + user: "username" + password: "$2a$10$NeZ3cfyOgZcdMGy9ixB7LOAP6z8tCOVjico6ZGLoK2QIQy734qPw." diff --git a/states/syncthing/kernelmap.yaml b/states/syncthing/kernelmap.yaml index e368b24..40943f2 100644 --- a/states/syncthing/kernelmap.yaml +++ b/states/syncthing/kernelmap.yaml @@ -1,3 +1,3 @@ --- Linux: - os: "linux" \ No newline at end of file + os: "linux" diff --git a/states/syncthing/osarchmap.yaml b/states/syncthing/osarchmap.yaml index c12e349..4bd82f8 100644 --- a/states/syncthing/osarchmap.yaml +++ b/states/syncthing/osarchmap.yaml @@ -18,4 +18,4 @@ armv7l: arch: "arm" armhf: - arch: "arm" \ No newline at end of file + arch: "arm"