mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Fix Vagrant issue with Salt
Package manager "dnf" does not work correctly with Salt (cf https://github.com/saltstack/salt/issues/31001) It causes Salt to consider that some packages (python, git, curl, etc.) are not installed, which breaks the Vagrant Kubernetes setup. Updating dnf and dnf-plugins-core to their latest version solves the issue. Additionally, I've added the "fastestmirror" to dnf, which is useful if a RPM mirror is broken or very slow. (In my case, dnf used a broken mirror which froze the Kubernetes setup).
This commit is contained in:
@@ -14,6 +14,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
function prepare-package-manager() {
|
||||
echo "Prepare package manager"
|
||||
|
||||
# Useful if a mirror is broken or slow
|
||||
echo "fastestmirror=True" >> /etc/dnf/dnf.conf
|
||||
|
||||
# In Fedora 23, installed version does not work with Salt
|
||||
# Cf. https://github.com/saltstack/salt/issues/31001
|
||||
dnf update -y dnf dnf-plugins-core
|
||||
}
|
||||
|
||||
function write-salt-config() {
|
||||
local role="$1"
|
||||
|
||||
|
Reference in New Issue
Block a user