~bladernr/maas-cert-server/foo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Just a quick explanation of what's in this project:

Contents
--------
README
- This document

network
- Script for setting up the networking (NAT, etc) so that nodes can talk to the
- internet
** NEEDS A LOT OF WORK, taken directly from lp:micro-cluster and not originally
   meant for this.

setup.sh
- Skeleton of a setup script.  Doesn't do much currently.  The idea is 
  eventually a "Run this script to install everything" kind of script.  That or
  we'll do some real packaging.

update-library
- Script to run to manually update parts, or all of the various things mirrored
  for this project.  This includes:
  - archive.ubuntu.com
  - maas ephemeral images
  - ISO images of various types
  - ports.ubuntu.com
  - cloud archive stuff

etc/
 apt/
  cloud-archive-mirror.list
  ports-mirror.list
  ubuntu-mirror.list
- These are the files apt-mirror uses to actually do the mirroring.

preseed/
 curtin_userdata (installs cert tools automagically)
 dev_ppa-preseed-generic (d-i preseed, deprecated)  
 stable-preseed-generic (d-i preseed, deprecated) 
 

BASIC INSTALLATION
------------------
Essentialy just copy all this to /srv after you have mounted your external HDD
(or not if your HDD is large enough) to /srv on the MAAS server to be used.
the mirror files CAN go into /etc/apt if you wish, but you'll need to edit 
update-library to reflect this.

create the directories /srv/var /srv/skel /sev/mirror
then run sudo ./update-libraries --all

and patiently wait a few days if you're on a slow internet connection like my
10Mb/s DSL line.  At the least, even on a fast connection you're likely to wait
overnight as it downloads somewhere between 350 and 500GB of data initially.