diff --git a/states/ipfs/config.sls b/states/ipfs/config.sls index 070943e..cc8c0b9 100644 --- a/states/ipfs/config.sls +++ b/states/ipfs/config.sls @@ -9,7 +9,7 @@ ipfs-set-storagemax: ipfs-set-headers-1: cmd.run: - - name: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' + - name: /usr/local/sbin/ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' - runas: ipfs - cwd: /var/lib/ipfs - watch-in: @@ -18,7 +18,7 @@ ipfs-set-headers-1: ipfs-set-headers-2: cmd.run: #- name: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:8888", "http://127.0.0.1:5001", "https://webui.ipfs.io"]' - - name: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' + - name: /usr/local/sbin/ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' - runas: ipfs - cwd: /var/lib/ipfs - watch-in: diff --git a/states/ipfs/defaults.yaml b/states/ipfs/defaults.yaml index 38d9413..3b9dad5 100644 --- a/states/ipfs/defaults.yaml +++ b/states/ipfs/defaults.yaml @@ -3,7 +3,7 @@ ipfs: enabled: true install_dir: /usr/local/apps release_dir: /usr/local/apps/releases - mirror: https://dl.google.com/go/ - version: 1.15.5 + mirror: "https://github.com/ipfs/go-ipfs/releases/download" + version: 0.7.0 os: linux arch: amd64 diff --git a/states/ipfs/service.sls b/states/ipfs/service.sls index 8a5c212..7cdd5de 100644 --- a/states/ipfs/service.sls +++ b/states/ipfs/service.sls @@ -2,7 +2,7 @@ ipfs-service-file: file.managed: - name: /etc/systemd/system/ipfs.service - - source: salt://ipfs/ipfs.service + - source: salt://ipfs/ipfs.service.j2 - watch-in: - service: ipfs-service