Skip to content

Commit

Permalink
bmxd: define version in config.jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
cremesk committed Jan 7, 2024
1 parent 64fa1dd commit 9478cc0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 1 addition & 3 deletions salt/freifunk/base/bmxd/init.sls
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{# FFDD Batmand Network #}
{% from 'config.jinja' import freifunk_dl_url, nodeid, ddmesh_registerkey %}
{% set bmxd_version = '1.4-06cc61a82822f4dc98410fef1e00b81f' %}
{% from 'config.jinja' import freifunk_dl_url, nodeid, ddmesh_registerkey, bmxd_version %}
{% if salt['cmd.shell']("dpkg-query -W -f='${Version}' bmxd || true") != bmxd_version %}
bmxd_pkg_removed:
Expand Down
20 changes: 11 additions & 9 deletions salt/freifunk/base/config.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
{# ffip for Hotspot-NAT #}
{% set ffddip = '157.90.5.163' %}

{# define bmxd version #}
{% set bmxd_version = '1.4-06cc61a82822f4dc98410fef1e00b81f' %}

{# define wg_accept_cgi Version #}
{% set wg_accept_cgi_version = 'v1.2.3' %}
{% set wg_accept_cgi_sha1_hash = 'A7D33B3785BD6DE81E939F3C6967246356ACF13F' %}


{% set install_dir = '/srv/ffdd-server' %}

{% set freifunk_dl_url = 'http://download.freifunk-dresden.de/server/packages' %}
Expand Down Expand Up @@ -32,21 +40,15 @@
{% set apache_ddos_prevent = salt['cmd.shell']('/usr/local/sbin/uci -qX get ffdd.sys.apache_ddos_prevent || true') %}


{# check hostnamectl #}
{% set chassis = salt['cmd.shell']("hostnamectl status | awk '/Chassis/ {print $2}'") %}

{# ctime - used for crontab minutes #}
{% if nodeid != '' and nodeid != '-' %}
{%- set ctime = salt['cmd.shell']('expr '~ nodeid ~' % 60 || true') %}
{% else %}
{% set ctime = '1' %}
{% endif %}


{# check hostnamectl #}
{% set chassis = salt['cmd.shell']("hostnamectl status | awk '/Chassis/ {print $2}'") %}

{# wg_accept_cgi Version #}
{% set wg_accept_cgi_version = 'v1.2.3' %}
{% set wg_accept_cgi_sha1_hash = 'A7D33B3785BD6DE81E939F3C6967246356ACF13F' %}


{# set ffl_nodeid_list (vpn gateways) for apache serveralias #}
{% set ffl_nodeid_list = ['51020', '51026'] %}

0 comments on commit 9478cc0

Please sign in to comment.