Skip to content

Commit

Permalink
Fix #536: kickstart needs alias for files to be found (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin authored Jan 29, 2025
1 parent d5f53d1 commit bc4f268
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rsconf/component/rsconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
from rsconf import component
from urllib.parse import urlparse

_PASSWD_SECRET_JSON_F = "rsconf_auth.json"
PASSWD_SECRET_F = "rsconf_auth"
_KICKSTART_D = "kickstart"
_PASSWD_SECRET_JSON_F = "rsconf_auth.json"


class T(component.T):
Expand All @@ -31,6 +32,7 @@ def internal_build_compile(self):
srv_d=jc.rsconf_db.srv_d,
host_subdir=jc.rsconf_db.srv_host_d.basename,
kickstart_hosts=jc.rsconf.get("kickstart_hosts", []),
kickstart_root_d=jc.rsconf_db.host_run_d.join(_KICKSTART_D),
)

def internal_build_write(self):
Expand Down
1 change: 1 addition & 0 deletions rsconf/package_data/rsconf/nginx.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ server {
{% endfor %}

deny all;
alias {{ rsconf.kickstart_root_d }}
}
}

0 comments on commit bc4f268

Please sign in to comment.