Added electrs-init.sh to start with proper arguments for listening
typo in cockpit-storage name removed task for linger as need to find another way to do it
This commit is contained in:
parent
8f424db147
commit
249e80e70e
4
hosts
4
hosts
@ -34,12 +34,14 @@ bitcoin_rpcpassword=rVhfmriXjB8uFekmn7sLvnUiY610JaOx
|
|||||||
electrs_version=0.10.2
|
electrs_version=0.10.2
|
||||||
zerotier_network=
|
zerotier_network=
|
||||||
#Update wariness - 1 = very reluctant to update, 0 = eager to update
|
#Update wariness - 1 = very reluctant to update, 0 = eager to update
|
||||||
|
#timezone - which timezone update schedule is in
|
||||||
#days - which days to update (its a list)
|
#days - which days to update (its a list)
|
||||||
#starttime - 24hr time format of when updates are permitted
|
#starttime - 24hr time format of when updates are permitted
|
||||||
#length - how long is update window open
|
#length - how long is update window open
|
||||||
update_wariness=0.75
|
update_wariness=0.75
|
||||||
|
update_schedule_timezone="America/Eastern"
|
||||||
update_schedule_days=['Sat']
|
update_schedule_days=['Sat']
|
||||||
update_schedule_starttime="02:00"
|
update_schedule_starttime="03:00"
|
||||||
update_schedule_length=60
|
update_schedule_length=60
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
9
roles/apps/files/electrs/electrs-init.sh
Normal file
9
roles/apps/files/electrs/electrs-init.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# electrs-init.sh
|
||||||
|
#
|
||||||
|
# Distributed under terms of the MIT license.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
/bin/electrs --log-filters INFO --db-dir /db --electrum-rpc-addr="0.0.0.0:50001"
|
||||||
@ -25,6 +25,11 @@
|
|||||||
dest: ~/Containers/electrs/Containerfile
|
dest: ~/Containers/electrs/Containerfile
|
||||||
notify: rebuild_electrs
|
notify: rebuild_electrs
|
||||||
|
|
||||||
|
- name: electrs - Copy electrs-init.sh
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: electrs/electrs-init.sh
|
||||||
|
dest: ~/Containers/electrs/electrs-init.sh
|
||||||
|
|
||||||
- name: electrs - Copy build script
|
- name: electrs - Copy build script
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: electrs/build.sh.j2
|
src: electrs/build.sh.j2
|
||||||
|
|||||||
@ -25,6 +25,10 @@ RUN microdnf update -y && microdnf clean all
|
|||||||
|
|
||||||
COPY --from=builder /build/target/release/electrs /bin/electrs
|
COPY --from=builder /build/target/release/electrs /bin/electrs
|
||||||
|
|
||||||
|
COPY electrs-init.sh /bin/electrs-init.sh
|
||||||
|
|
||||||
|
RUN chmod +x /bin/electrs-init.sh
|
||||||
|
|
||||||
# Electrum RPC Mainnet
|
# Electrum RPC Mainnet
|
||||||
EXPOSE 50001
|
EXPOSE 50001
|
||||||
# Electrum RPC Testnet
|
# Electrum RPC Testnet
|
||||||
@ -39,4 +43,4 @@ STOPSIGNAL SIGINT
|
|||||||
|
|
||||||
HEALTHCHECK CMD curl -fSs http://localhost:4224/ || exit 1
|
HEALTHCHECK CMD curl -fSs http://localhost:4224/ || exit 1
|
||||||
|
|
||||||
ENTRYPOINT [ "electrs" ]
|
ENTRYPOINT [ "/bin/electrs-init.sh" ]
|
||||||
|
|||||||
@ -89,12 +89,12 @@
|
|||||||
state: stopped
|
state: stopped
|
||||||
masked: true
|
masked: true
|
||||||
|
|
||||||
- name: Set {{ ansible_user }} user to linger
|
#- name: Set {{ ansible_user }} user to linger
|
||||||
become: yes
|
#become: yes
|
||||||
become_method: sudo
|
#become_method: sudo
|
||||||
command: loginctl enable-linger {{ ansible_user }}
|
#command: loginctl enable-linger {{ ansible_user }}
|
||||||
args:
|
#args:
|
||||||
creates: /var/lib/systemd/linger/{{ ansible_user }}
|
#creates: /var/lib/systemd/linger/{{ ansible_user }}
|
||||||
|
|
||||||
- name: Set update zincati wariness to {{update_wariness}}
|
- name: Set update zincati wariness to {{update_wariness}}
|
||||||
become: yes
|
become: yes
|
||||||
@ -114,6 +114,9 @@
|
|||||||
[updates]
|
[updates]
|
||||||
strategy = "periodic"
|
strategy = "periodic"
|
||||||
|
|
||||||
|
[updates.periodic]
|
||||||
|
time_zone={{ update_schedule_timezone }}
|
||||||
|
|
||||||
[[updates.periodic.window]]
|
[[updates.periodic.window]]
|
||||||
days = {{ update_schedule_days }}
|
days = {{ update_schedule_days }}
|
||||||
start_time = {{ update_schedule_starttime }}
|
start_time = {{ update_schedule_starttime }}
|
||||||
|
|||||||
@ -35,9 +35,9 @@
|
|||||||
- telnet
|
- telnet
|
||||||
- cockpit
|
- cockpit
|
||||||
- cockpit-networkmanager
|
- cockpit-networkmanager
|
||||||
- cockpit-storage
|
|
||||||
- cockpit-ostree
|
- cockpit-ostree
|
||||||
- cockpit-podman
|
- cockpit-podman
|
||||||
|
- cockpit-storaged
|
||||||
- zerotier-one
|
- zerotier-one
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- smartmontools
|
- smartmontools
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user