-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] UFW rules not installed on ubuntu20 04 with salt 3001 #57712
Comments
@dmurphy18 do we install |
We don't, don't see salt.ufw as part of the install for Ubuntu 16.04, 18.04 and 20.04. If the steps work on Ubuntu 18.04, then that is probably the issue and need to get marked up and associated with issue #57541 |
I installed on an Ubuntu 18.04.4 LTS server today as well (as we have a mix of 20.04 and 18.04 and had to manually create the file on all servers. I was confused because of this : https://docs.saltstack.com/en/latest/topics/tutorials/firewall.html |
@JeremyHutchings Did this used to work for you, if so, can you provide a versions report on the machine that it did work. The file salt.ufw has not been shipped with Debian or Ubuntu systems that I recall from Salt. Note that the link you provided only discusses Redhat family of platforms (that includes SLES), there is no mention of Debian or Ubuntu support |
Did this used to work for you, if so, can you provide a versions report on the machine that it did work. @dmurphy18 I can't, as I have no memory or evidence of it ever working, I've always had to deal with the ports manually. So I expect installing the file on Ubuntu is an oversight. |
Changing this to a feature, since you are the first to bring it up in over 5 years. Add salt.ufw to Debian and Ubuntu packaging similar to it's provision with Redhat and Amazon platform families |
Noting that ufw-formula provides an almost identical file as a workaround. @dmurphy18 just because a bug hasn't been fixed for years doesn't make it not a bug. The documentation says this is supposed to happen, and it's clearly the intent of the source file that it gets installed, |
this feature has not been assigned and no work has been done for 3001.1 release, and likely would not have been as bugfix releases rarely contain features, but I realize this one is not well defined. Looking to get it assigned in the Magnesium release. |
As far as I can tell, we can just do:
In each of the debian tarballs. @dmurphy18 does that sound good ? Do we need to rename it to not have the .ufw on the end or is that fine? I think convention is to name the file the same as the package name. It looks like it would be accurate to the docs if we did it as I have above. |
I don't see salt.ufw in the spec file or the resulting packages for rhel8. I do see it in the sources folder. |
This will be in the RC and released with Magnesium saltstack/salt-pack-py3#243 |
This is missing from the release notes - https://docs.saltstack.com/en/latest/topics/releases/3002.html |
This is broken again:
System info:
|
@rousku This issue has been closed for almost 3 years. Can you open a new issue for it and quote this issue in the new issue, given the old issue concerned classic packaging, and this is happening with 'onedir' packaging on Ubuntu 22.04. Mention my name in the issue, since I don't think you can assign it to me, but mentioning me should get attention and it will be sent my way. |
Description
ufw rules (/etc/ufw/applications.d/salt.ufw) are not being installed on ubuntu 20.04 with salt version 3001
Setup
Default Ubuntu 20.04 LTS AWS image, then following the instructions here : https://repo.saltstack.com/#ubuntu
Steps to Reproduce the behaviour
root@salt-master:/home/ubuntu# ufw allow salt
ERROR: Could not find a profile matching 'salt'
root@salt-master:/home/ubuntu# salt-master --version
salt-master 3001
root@ip-10-3-1-220:/home/ubuntu# file /etc/ufw/applications.d/salt.ufw
/etc/ufw/applications.d/salt.ufw: cannot open `/etc/ufw/applications.d/salt.ufw' (No such file or directory)
Expected behaviour
That the file /etc/ufw/applications.d/salt.ufw would be created during install
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: