diff --git a/roles/apps/tasks/rtl.yml b/roles/apps/tasks/rtl.yml index ce6a8c7..ca2a27e 100644 --- a/roles/apps/tasks/rtl.yml +++ b/roles/apps/tasks/rtl.yml @@ -1,3 +1,11 @@ +--- + +- name: rtl - Create vol/rtl + ansible.builtin.file: + path: ~/vol/rtl + recurse: true + state: directory + tags: [apps,rtl] - name: rtl - Create Containers/rtl Dir ansible.builtin.file: diff --git a/roles/apps/templates/rtl/RTL-Config.json.j2 b/roles/apps/templates/rtl/RTL-Config.json.j2 new file mode 100644 index 0000000..f4212ef --- /dev/null +++ b/roles/apps/templates/rtl/RTL-Config.json.j2 @@ -0,0 +1,31 @@ +{ + "port": "3000", + "defaultNodeIndex": 1, + "dbDirectoryPath": "/root/database/node-1", + "SSO": { + "rtlSSO": 0, + "rtlCookiePath": "", + "logoutRedirectLink": "" + }, + "nodes": [ + { + "index": 1, + "lnNode": "Core Lightning Testnet # 1", + "lnImplementation": "CLN", + "Authentication": { + "runePath": "/RTL/.lightning/bitcoin" + }, + "Settings": { + "userPersona": "OPERATOR", + "themeMode": "DAY", + "themeColor": "PURPLE", + "bitcoindConfigPath": "", + "logLevel": "INFO", + "fiatConversion": false, + "unannouncedChannels": false, + "lnServerUrl": "https://127.0.0.1:3001" + } + } + ], + "multiPass": "n0xb0x" +} diff --git a/roles/apps/templates/rtl/rtl-node.container.j2 b/roles/apps/templates/rtl/rtl-node.container.j2 index 9bc1fd1..a804d34 100644 --- a/roles/apps/templates/rtl/rtl-node.container.j2 +++ b/roles/apps/templates/rtl/rtl-node.container.j2 @@ -6,6 +6,9 @@ Image={{ registry_url }}/rtl:{{ rtl_version }} PodmanArgs=--pod bitcoin-pod # Use volume +Volume=/home/{{ansible_user}}/vol/rtl/data:/RTL/data:Z +Volume=/home/{{ansible_user}}/vol/rtl/RTL-Config.json:/RTL/RTL-Config.json:Z +Volume=/home/{{ansible_user}}/vol/clightning:/RTL/:ro,Z [Service] # Restart service when sleep finishes