diff --git a/app/controllers/api/v2/media_controller.rb b/app/controllers/api/v2/media_controller.rb index cb5bdf19325..94de764c436 100644 --- a/app/controllers/api/v2/media_controller.rb +++ b/app/controllers/api/v2/media_controller.rb @@ -10,7 +10,7 @@ class MediaController < V2::BaseController PATH_INFO = <<~EOS The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture). - for example http://mirror.centos.org/centos/$version/os/$arch + for example https://mirror.stream.centos.org/$version-stream/BaseOS/$arch/os where $arch will be substituted for the host\'s actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system. diff --git a/app/services/medium_providers/provider.rb b/app/services/medium_providers/provider.rb index aa0f2a6bd46..0e009e86edc 100644 --- a/app/services/medium_providers/provider.rb +++ b/app/services/medium_providers/provider.rb @@ -4,7 +4,7 @@ module MediumProviders # Example: # provider = MyMediumProvider.new(centos_host) # provider.medium_uri - # => # + # => # class Provider delegate :logger, :to => :Rails diff --git a/app/views/media/_form.html.erb b/app/views/media/_form.html.erb index b80155a9617..796d1e5f77a 100644 --- a/app/views/media/_form.html.erb +++ b/app/views/media/_form.html.erb @@ -15,7 +15,7 @@
<%= text_f f, :name %> <%= text_f f, :path, :size => "col-md-8", :help_block => _("The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture). - for example http://mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host's actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system. Solaris and Debian media may also use $release.").html_safe %> + for example https://mirror.stream.centos.org/$version-stream/BaseOS/$arch/os where $arch will be substituted for the host's actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system. Solaris and Debian media may also use $release.").html_safe %> > <%= text_f f, :media_path, :size => "col-md-8", :help_inline => _("The NFS path to the media.") %> <%= text_f f, :config_path, :size => "col-md-8", :help_inline => _("The NFS path to the jumpstart control files.") %> diff --git a/db/migrate/20240813141845_rename_centos_stream_mirror_to_centos.rb b/db/migrate/20240813141845_rename_centos_stream_mirror_to_centos.rb new file mode 100644 index 00000000000..2a12de64c76 --- /dev/null +++ b/db/migrate/20240813141845_rename_centos_stream_mirror_to_centos.rb @@ -0,0 +1,9 @@ +class RenameCentosStreamMirrorToCentos < ActiveRecord::Migration[6.1] + def up + Medium.unscoped.where(name: "CentOS Stream 9 mirror").update_all(name: "CentOS mirror") + end + + def down + Medium.unscoped.where(name: "CentOS mirror").update_all(name: "CentOS Stream 9 mirror") + end +end diff --git a/db/seeds.d/100-installation_media.rb b/db/seeds.d/100-installation_media.rb index 439123b5482..2dd969f6843 100644 --- a/db/seeds.d/100-installation_media.rb +++ b/db/seeds.d/100-installation_media.rb @@ -6,17 +6,7 @@ Medium.without_auditing do [ { - :name => "CentOS 7 mirror", - :os_family => "Redhat", - :path => "http://mirror.centos.org/centos/$major/os/$arch", - }, - { - :name => "CentOS Stream", - :os_family => "Redhat", - :path => "http://mirror.centos.org/centos/$major-stream/BaseOS/$arch/os", - }, - { - :name => "CentOS Stream 9 mirror", + :name => "CentOS mirror", :os_family => "Redhat", :path => "http://mirror.stream.centos.org/$major-stream/BaseOS/$arch/os", },