Skip to content

Commit

Permalink
Don't hardcode 127.0.0.1 in salt-api configuration
Browse files Browse the repository at this point in the history
Tomcat accesses the salt api using `localhost` but the salt-api is
configured to listen on `127.0.0.1`. This works fine until IPv4 is
disabled on the host or the `127.0.0.1` line is commented out in
`/etc/hosts`.

In order to make sure both sides are on the same page, use localhost in
the salt-api too (bsc#1230865).
  • Loading branch information
cbosdo committed Dec 13, 2024
1 parent 507460a commit 251f23e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spacewalk/setup/salt/susemanager.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Setup cherrypy
rest_cherrypy:
port: 9080
host: 127.0.0.1
host: localhost
collect_stats: false
expire_responses: false
ssl_crt: /etc/salt/pki/api/salt-api.crt
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Salt API should listen on localhost rather than 127.0.0.1 (bsc#1230865)

Check failure on line 1 in spacewalk/setup/spacewalk-setup.changes.cbosdo.5.0-salt-api-ip

View workflow job for this annotation

GitHub Actions / Changelog tests

Line exceeds 67 characters in file spacewalk/setup/spacewalk-setup.changes.cbosdo.5.0-salt-api-ip#L1

0 comments on commit 251f23e

Please sign in to comment.