mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Merge pull request #415 from ashegedus/config-security
Added security field to packages.
This commit is contained in:
commit
7c8633036c
5 changed files with 16 additions and 4 deletions
|
@ -31,8 +31,12 @@ class BootstrapInformation(object):
|
||||||
# The default apt mirror
|
# The default apt mirror
|
||||||
self.apt_mirror = self.manifest.packages.get('mirror', 'http://deb.debian.org/debian/')
|
self.apt_mirror = self.manifest.packages.get('mirror', 'http://deb.debian.org/debian/')
|
||||||
|
|
||||||
|
# The default apt security mirror
|
||||||
|
self.apt_security = self.manifest.packages.get('security', 'http://security.debian.org/')
|
||||||
|
|
||||||
# Create the manifest_vars dictionary
|
# Create the manifest_vars dictionary
|
||||||
self.manifest_vars = self.__create_manifest_vars(self.manifest, {'apt_mirror': self.apt_mirror})
|
self.manifest_vars = self.__create_manifest_vars(self.manifest, {'apt_security': self.apt_security,
|
||||||
|
'apt_mirror': self.apt_mirror})
|
||||||
|
|
||||||
# Keep a list of apt sources,
|
# Keep a list of apt sources,
|
||||||
# so that tasks may add to that list without having to fiddle with apt source list files.
|
# so that tasks may add to that list without having to fiddle with apt source list files.
|
||||||
|
|
|
@ -84,6 +84,9 @@ properties:
|
||||||
mirror:
|
mirror:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
security:
|
||||||
|
type: string
|
||||||
|
format: uri
|
||||||
preferences:
|
preferences:
|
||||||
type: object
|
type: object
|
||||||
patternProperties:
|
patternProperties:
|
||||||
|
|
|
@ -64,9 +64,9 @@ class AddDefaultSources(Task):
|
||||||
if include_src:
|
if include_src:
|
||||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} ' + components)
|
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} ' + components)
|
||||||
if info.manifest.release != sid and info.manifest.release >= wheezy:
|
if info.manifest.release != sid and info.manifest.release >= wheezy:
|
||||||
info.source_lists.add('main', 'deb http://security.debian.org/ {system.release}/updates ' + components)
|
info.source_lists.add('main', 'deb {apt_security} {system.release}/updates ' + components)
|
||||||
if include_src:
|
if include_src:
|
||||||
info.source_lists.add('main', 'deb-src http://security.debian.org/ {system.release}/updates ' + components)
|
info.source_lists.add('main', 'deb-src {apt_security} {system.release}/updates ' + components)
|
||||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates ' + components)
|
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates ' + components)
|
||||||
if include_src:
|
if include_src:
|
||||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates ' + components)
|
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates ' + components)
|
||||||
|
|
|
@ -200,6 +200,9 @@ variety of sources.
|
||||||
- ``mirror``: The default aptitude mirror.
|
- ``mirror``: The default aptitude mirror.
|
||||||
``optional``
|
``optional``
|
||||||
Default: ``http://deb.debian.org/debian/``
|
Default: ``http://deb.debian.org/debian/``
|
||||||
|
- ``security``: The default security mirror.
|
||||||
|
``optional``
|
||||||
|
Default: ``http://security.debian.org/``
|
||||||
- ``sources``: A map of additional sources that should be added to
|
- ``sources``: A map of additional sources that should be added to
|
||||||
the aptitude sources list. The key becomes the filename in
|
the aptitude sources list. The key becomes the filename in
|
||||||
``/etc/apt/sources.list.d/`` (with ``.list`` appended to it), except
|
``/etc/apt/sources.list.d/`` (with ``.list`` appended to it), except
|
||||||
|
@ -243,6 +246,7 @@ Example:
|
||||||
- puppet
|
- puppet
|
||||||
install_standard: true
|
install_standard: true
|
||||||
mirror: http://cloudfront.debian.net/debian
|
mirror: http://cloudfront.debian.net/debian
|
||||||
|
security: http://security.debian.org/
|
||||||
sources:
|
sources:
|
||||||
puppet:
|
puppet:
|
||||||
- deb http://apt.puppetlabs.com wheezy main dependencies
|
- deb http://apt.puppetlabs.com wheezy main dependencies
|
||||||
|
|
|
@ -20,7 +20,8 @@ volume:
|
||||||
root:
|
root:
|
||||||
filesystem: ext4
|
filesystem: ext4
|
||||||
size: 1GB
|
size: 1GB
|
||||||
packages: {}
|
packages:
|
||||||
|
security: http://security.debian.org/
|
||||||
plugins:
|
plugins:
|
||||||
root_password:
|
root_password:
|
||||||
password: test
|
password: test
|
||||||
|
|
Loading…
Add table
Reference in a new issue