Preparing for 14.0-RELEASE

It looks like 14.0-RELEASE will be with us this month, so I'd appreciate any advice on planning an upgrade/installation.

Specifically, I don't want to download the upgrade on every system I have. Is there a suggested way of downloading the upgrade centrally and upgrading from there, or does the upgrade depend on which patchlevel a system is currently on?

In addition, is there any way of automating the upgrade without user intervention ?
 
I have a caching proxy set up, changed ServerName in /etc/freebsd-update.conf and pointed to my proxy. The proxy caches the files, so only the first system actually downloads the updates from upstream. Other servers get most of it from the local cache. Speeds up updates/upgrades significantly.

In addition, is there any way of automating the upgrade without user intervention ?
You don't want to do this. You can get a bunch of merge issues to resolve. The reason it leaves this to the user is because it couldn't automatically do it.
 
So, how do you set up such a proxy I hear you ask?

Configuration for nginx:
Code:
    server {
      listen 192.168.1.1:80;
      server_name fbsd-update.example.com;

      root /var/cache/fbsd-update;

      access_log /var/log/nginx/proxy-access.log;

      location / {
        proxy_cache fbsdupdate_cache;
        proxy_cache_lock on;
        proxy_buffering on;
        proxy_http_version 1.1;
        proxy_cache_revalidate  on;
        proxy_cache_valid      200  7d;
        expires max;
        add_header X-Proxy-Cache $upstream_cache_status;

        proxy_pass http://update.freebsd.org;
      }

Or for Apache:
Code:
<VirtualHost *:80>
  ServerAdmin info@example.com
  ServerName fbsd-update.example.com

  ProxyRequests Off
  ProxyPreserveHost Off

  <Proxy *>
    Require all granted
  </Proxy>

  ProxyPass / http://update.freebsd.org/

  <Location />
    ProxyPassReverse /
    Require all granted
  </Location>

  <IfModule cache_module>
    <IfModule cache_disk_module>
      CacheEnable disk /
      CacheRoot /var/cache/fbsd-update/
    </IfModule>
  </IfModule>

</VirtualHost>

I have an internal DNS that will resolve fbsd-update.example.com correctly. Then set in /etc/freebsd-update.conf ServerName fbsd-update.example.com.
 
Back
Top