Initial commit
This commit is contained in:
commit
f62a675faf
23
do_juju_sync.sh
Normal file
23
do_juju_sync.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt -y update
|
||||
sudo apt -y install simplestreams
|
||||
|
||||
IMAGE_SRC=https://streams.canonical.com/juju/tools/
|
||||
IMAGE_DIR=/var/www/html/juju/tools
|
||||
|
||||
sudo sstream-mirror -U $IMAGE_SRC $IMAGE_DIR \
|
||||
'arch=amd64' 'release~(xenial|bionic|focal|jammy)' 'version~^(2.8.*|2.9.*|3.0.*)' --progress
|
||||
|
||||
files="index.json index2.json index.sjson index2.sjson com.ubuntu.juju-released-agents.sjson com.ubuntu.juju-released-agents.json"
|
||||
|
||||
for file in ${files}
|
||||
do
|
||||
wget -qO ${IMAGE_DIR}/streams/v1/${file} ${IMAGE_SRC}/streams/v1/${file}
|
||||
done
|
||||
|
||||
#GUI_SRC=https://streams.canonical.com/juju/gui/
|
||||
#GUI_DIR=/var/www/html/juju/gui
|
||||
#
|
||||
#sudo sstream-mirror -U $GUI_SRC $GUI_DIR \
|
||||
# 'content_id~(released)' 'juju-version~(2|3)' --progress
|
13
do_lxd_sync.sh
Normal file
13
do_lxd_sync.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt -y update
|
||||
sudo apt -y install simplestreams
|
||||
|
||||
KEYRING_FILE=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
|
||||
IMAGE_SRC=https://cloud-images.ubuntu.com/releases
|
||||
IMAGE_DIR=/var/www/html/lxd/
|
||||
|
||||
sudo sstream-mirror --keyring=$KEYRING_FILE --path streams/v1/index.json \
|
||||
$IMAGE_SRC $IMAGE_DIR \
|
||||
'arch=amd64' 'release~(bionic|focal|jammy)' --max=1 --progress
|
||||
|
21
do_maas_sync.sh
Normal file
21
do_maas_sync.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt -y update
|
||||
sudo apt -y install simplestreams
|
||||
|
||||
KEYRING_FILE=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
|
||||
IMAGE_SRC=https://images.maas.io/ephemeral-v3/stable
|
||||
IMAGE_DIR=/var/www/html/maas/images/ephemeral-v3/stable
|
||||
|
||||
# Do the Ubuntu releases
|
||||
# LTS supported releases, and all releases from the latest LTS
|
||||
sudo sstream-mirror --keyring=$KEYRING_FILE $IMAGE_SRC $IMAGE_DIR \
|
||||
'arch=amd64' 'release~(xenial|bionic|focal|jammy)' --max=1 --progress
|
||||
|
||||
# CentOS 7 and 8
|
||||
sudo sstream-mirror --keyring=$KEYRING_FILE $IMAGE_SRC $IMAGE_DIR \
|
||||
'arch=amd64' 'release~(centos|8)' --max=1 --progress
|
||||
|
||||
# Bootloaders
|
||||
sudo sstream-mirror --keyring=$KEYRING_FILE $IMAGE_SRC $IMAGE_DIR \
|
||||
'os~(grub*|pxelinux)' --max=1 --progress
|
77
mirror.list
Normal file
77
mirror.list
Normal file
@ -0,0 +1,77 @@
|
||||
############# config ##################
|
||||
#
|
||||
set base_path /mnt/apt-mirror
|
||||
#
|
||||
# set mirror_path $base_path/mirror
|
||||
# set skel_path $base_path/skel
|
||||
# set var_path $base_path/var
|
||||
# set cleanscript $var_path/clean.sh
|
||||
set defaultarch amd64
|
||||
# set postmirror_script $var_path/postmirror.sh
|
||||
# set run_postmirror 0
|
||||
set nthreads 2
|
||||
set _tilde 0
|
||||
#
|
||||
############# end config ##############
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu bionic main main/debian-installer restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu focal main main/debian-installer restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
|
||||
|
||||
#deb http://archive.ubuntu.com/ubuntu jammy main main/debian-installer restricted universe multiverse
|
||||
#deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
|
||||
#deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
|
||||
#deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
|
||||
|
||||
deb http://ppa.launchpad.net/telegraf-devs/ppa/ubuntu bionic main
|
||||
deb http://ppa.launchpad.net/telegraf-devs/ppa/ubuntu focal main
|
||||
deb http://ppa.launchpad.net/telegraf-devs/ppa/ubuntu jammy main
|
||||
|
||||
deb https://arif-ali:<snip>@private-ppa.launchpad.net/ubuntu-advantage/security-benchmarks/ubuntu bionic main
|
||||
deb https://arif-ali:<snip>@private-ppa.launchpad.net/ubuntu-advantage/security-benchmarks/ubuntu focal main
|
||||
|
||||
deb http://ppa.launchpad.net/landscape/19.10/ubuntu bionic main
|
||||
|
||||
deb https://artifacts.elastic.co/packages/6.x/apt stable main
|
||||
|
||||
# some 3rd-party ones that I use regularly
|
||||
#deb http://repo.saltstack.com/py3/ubuntu/18.04/amd64/latest bionic main
|
||||
#deb http://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest focal main
|
||||
|
||||
#deb http://apt.insync.io/ubuntu bionic non-free contrib
|
||||
#deb http://apt.insync.io/ubuntu focal non-free contrib
|
||||
|
||||
#deb http://dl.google.com/linux/chrome/deb stable main
|
||||
#deb https://brave-browser-apt-release.s3.brave.com stable main
|
||||
#deb https://packages.microsoft.com/repos/ms-teams stable main
|
||||
|
||||
# arm stuff
|
||||
deb-arm64 http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
|
||||
deb-arm64 http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse
|
||||
deb-arm64 http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
|
||||
deb-arm64 http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
|
||||
|
||||
# all the repos that could potentially be cleaned, if the packages don't exist anymore
|
||||
clean http://archive.ubuntu.com/ubuntu
|
||||
clean http://gb.archive.ubuntu.com/ubuntu
|
||||
clean http://ports.ubuntu.com/ubuntu-ports
|
||||
clean https://esm.ubuntu.com/ubuntu
|
||||
clean http://ppa.launchpad.net/telegraf-devs/ppa/ubuntu
|
||||
clean https://arif-ali:<snip>@private-ppa.launchpad.net/ubuntu-advantage/security-benchmarks/ubuntu
|
||||
clean http://ports.ubuntu.com/ubuntu-ports
|
||||
clean http://ppa.launchpad.net/landscape/19.10/ubuntu
|
||||
clean https://artifacts.elastic.co/packages/5.x/apt
|
||||
clean https://artifacts.elastic.co/packages/6.x/apt
|
||||
clean http://repo.saltstack.com/py3/ubuntu/18.04/amd64/latest
|
||||
clean http://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest
|
||||
clean http://apt.insync.io/ubuntu
|
||||
clean http://dl.google.com/linux/chrome/deb
|
||||
clean https://brave-browser-apt-release.s3.brave.com
|
||||
clean https://packages.microsoft.com/repos/ms-teams
|
||||
|
Loading…
x
Reference in New Issue
Block a user