summaryrefslogtreecommitdiff
path: root/templates/sources.list.ubuntu.tmpl
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-07-19 14:46:14 -0400
committerScott Moser <smoser@ubuntu.com>2016-07-19 14:46:14 -0400
commit5bd3493d732e5b1902872958e8681f17cbc81ce5 (patch)
tree91a1a56a27c47a72902749efc5ed3875604785c7 /templates/sources.list.ubuntu.tmpl
parent8a49d355cb142eae6e882890616c3a5ead17f2ab (diff)
downloadcloud-init-5bd3493d732e5b1902872958e8681f17cbc81ce5.tar.gz
mcollective: add tests, cleanups and bug fix when no config in /etc.
Things here: - restart rather than 'start' the service, to pick up a config change that we would have written. - update the config and write cert files whether or not the file existed on the system. Previously it would only write the cert files if /etc/mcollective/server.cfg already existed. - improve test coverage
Diffstat (limited to 'templates/sources.list.ubuntu.tmpl')
-rw-r--r--templates/sources.list.ubuntu.tmpl55
1 files changed, 55 insertions, 0 deletions
diff --git a/templates/sources.list.ubuntu.tmpl b/templates/sources.list.ubuntu.tmpl
index d8799726..a0b350df 100644
--- a/templates/sources.list.ubuntu.tmpl
+++ b/templates/sources.list.ubuntu.tmpl
@@ -43,6 +43,61 @@ deb-src {{mirror}} {{codename}}-updates multiverse
deb {{mirror}} {{codename}}-backports main restricted universe multiverse
deb-src {{mirror}} {{codename}}-backports main restricted universe multiverse
+##
+## "entries" are mega things that can get rendered into sources.list format.
+## pocket_aliases allow for 'release' or 'updates' rather than
+## {{codename}} and {{codename}}-released
+##
+##
+## one thing not done here is that for 'entry' rendering
+## the components cannot vary per pocket.
+## ie, each pocket (release or updates) will have the same
+## list of components
+apt:
+ pocket_aliases:
+ release: {{codename}}
+ updates: {{codename}}-updates
+ proposed: {{codename}}-proposed
+ backports: {{codename}}-backports
+ security: {{codename}}-security
+ sources:
+ main:
+ path: "/etc/apt/sources.list"
+ # if entries is present, then we render each of the entries defined.
+ entries: [primary, security]
+ key: yourkey
+ my-repo2.list:
+ # use source as it would before (supporting templates there)
+ # and entries can be in their rendering namespace
+ source: deb $primary.mirror $RELEASE multiverse
+
+ entries:
+ primary:
+ mirrors:
+ - arches: [i386, amd64]
+ mirror: http://archive.ubuntu.com/ubuntu
+ search:
+ - http://%(ec2_region)s.ec2.archive.ubuntu.com/ubuntu
+ - http://%(availability_zone)s.clouds.archive.ubuntu.com/ubuntu
+ - http://%(region)s.clouds.archive.ubuntu.com/ubuntu
+ - arches: [default]
+ mirror: http://ports.ubuntu.com/ubuntu-ports
+ search: []
+ pockets: [release, updates, proposed, backports]
+ components: [main, restricted, universe, multiverse]
+ types: [deb, deb-src]
+
+ security:
+ mirrors:
+ - arches: [default]
+ mirror: http://archive.ubuntu.com/ubuntu
+ pockets: [securityrelease, updates, proposed, backports]
+ components: [main, restricted, universe]
+ types: [deb, deb-src]
+
+ primary:
+ mirror
+
deb {{security}} {{codename}}-security main restricted
deb-src {{security}} {{codename}}-security main restricted
deb {{security}} {{codename}}-security universe