Skip to content

Commit

Permalink
lxd/config: Add ubuntu-minimal and ubuntu-minimal-daily remotes
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin authored and tomponline committed Sep 26, 2023
1 parent 33e7e4b commit b365672
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions lxc/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,39 @@ var UbuntuDailyRemote = Remote{
Protocol: "simplestreams",
}

// UbuntuMinimalRemote is the Ubuntu minimal image server (over simplestreams).
var UbuntuMinimalRemote = Remote{
Addr: "https://cloud-images.ubuntu.com/minimal/releases/",
Static: true,
Public: true,
Protocol: "simplestreams",
}

// UbuntuMinimalDailyRemote is the Ubuntu daily minimal image server (over simplestreams).
var UbuntuMinimalDailyRemote = Remote{
Addr: "https://cloud-images.ubuntu.com/minimal/daily/",
Static: true,
Public: true,
Protocol: "simplestreams",
}

// StaticRemotes is the list of remotes which can't be removed.
var StaticRemotes = map[string]Remote{
"local": LocalRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"local": LocalRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"ubuntu-minimal": UbuntuMinimalRemote,
"ubuntu-minimal-daily": UbuntuMinimalDailyRemote,
}

// DefaultRemotes is the list of default remotes.
var DefaultRemotes = map[string]Remote{
"images": ImagesRemote,
"local": LocalRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"images": ImagesRemote,
"local": LocalRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"ubuntu-minimal": UbuntuMinimalRemote,
"ubuntu-minimal-daily": UbuntuMinimalDailyRemote,
}

// DefaultConfig returns the default configuration.
Expand Down

0 comments on commit b365672

Please sign in to comment.