updated syncthing state
This commit is contained in:
parent
ffa1e0a1aa
commit
c69475655f
@ -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)) %}
|
|
@ -13,5 +13,5 @@ syncthing:
|
|||||||
config:
|
config:
|
||||||
gui:
|
gui:
|
||||||
address: "0.0.0.0:8384"
|
address: "0.0.0.0:8384"
|
||||||
user: "paul"
|
user: "username"
|
||||||
password: "$2a$10$NeZ3cfyOgZcdMGy9ixB7LOAP6z8tCOVjico6ZGLoK2QIQy734qPw."
|
password: "$2a$10$NeZ3cfyOgZcdMGy9ixB7LOAP6z8tCOVjico6ZGLoK2QIQy734qPw."
|
Loading…
Reference in New Issue
Block a user