Made btcd and lnd arch changeable.
authorLuke Hoersten <luke@hoersten.org>
Sun, 03 May 2020 15:55:50 -0500
changeset 2 0556e208fbee
parent 1 d3ef4e0b4baa
child 3 74f60cd1440b
Made btcd and lnd arch changeable.
btcd/defaults/main.yaml
lnd/defaults/main.yaml
node/conf/tasks/main.yaml
node/install/tasks/main.yaml
--- a/btcd/defaults/main.yaml	Fri May 01 17:00:59 2020 -0500
+++ b/btcd/defaults/main.yaml	Sun May 03 15:55:50 2020 -0500
@@ -2,7 +2,8 @@
 
 btcd_user: "{{node_user}}"
 btcd_version: "v0.20.1-beta"
-btcd_tar_name: "btcd-linux-armv7-{{btcd_version}}"
+btcd_arch: "armv7"
+btcd_tar_name: "btcd-linux-{{btcd_arch}}-{{btcd_version}}"
 btcd_tar: "{{btcd_tar_name}}.tar.gz"
 btcd_url: "https://github.com/btcsuite/btcd/releases/download/{{btcd_version}}/{{btcd_tar}}"
 btcd_enable_txindex: true
--- a/lnd/defaults/main.yaml	Fri May 01 17:00:59 2020 -0500
+++ b/lnd/defaults/main.yaml	Sun May 03 15:55:50 2020 -0500
@@ -1,8 +1,9 @@
 ---
 
 lnd_user: "{{node_user}}"
-lnd_version: "v0.10.0-beta.rc5"
-lnd_tar_name: "lnd-linux-armv7-{{lnd_version}}"
+lnd_version: "v0.10.0-beta"
+lnd_arch: "armv7"
+lnd_tar_name: "lnd-linux-{{lnd_arch}}-{{lnd_version}}"
 lnd_tar: "{{lnd_tar_name}}.tar.gz"
 lnd_url: "https://github.com/lightningnetwork/lnd/releases/download/{{lnd_version}}/{{lnd_tar}}"
 
--- a/node/conf/tasks/main.yaml	Fri May 01 17:00:59 2020 -0500
+++ b/node/conf/tasks/main.yaml	Sun May 03 15:55:50 2020 -0500
@@ -20,7 +20,7 @@
     dest: "{{node_conf_dir}}/{{node_type}}.conf"
     owner: "{{node_user}}"
     group: "{{node_user}}"
-    mode: "0770"
+    mode: "0644"
   notify: restart node
 
 - name: install node service
--- a/node/install/tasks/main.yaml	Fri May 01 17:00:59 2020 -0500
+++ b/node/install/tasks/main.yaml	Sun May 03 15:55:50 2020 -0500
@@ -14,5 +14,10 @@
 
 - name: install node
   become: yes
-  shell: "install -m 0755 -o {{node_install_user}} -g {{node_install_user}} -t /usr/local/bin /tmp/{{node_install_tar_name}}/*"
-  changed_when: false
+  copy:
+    src: "/tmp/{{node_install_tar_name}}/"
+    dest: "/usr/local/bin/"
+    remote_src: yes
+    owner: "root"
+    group: "root"
+    mode: "0755"