mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
commit
611154a426
5 changed files with 25 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
from bootstrapvz.common import task_groups
|
||||
import tasks.apt
|
||||
import tasks.boot
|
||||
import tasks.configuration
|
||||
import tasks.image
|
||||
|
@ -25,6 +26,7 @@ def resolve_tasks(taskset, manifest):
|
|||
taskset.update(task_groups.get_standard_groups(manifest))
|
||||
|
||||
taskset.update([apt.AddBackports,
|
||||
apt.AddDefaultSources,
|
||||
loopback.AddRequiredCommands,
|
||||
loopback.Create,
|
||||
tasks.packages.DefaultPackages,
|
||||
|
@ -40,6 +42,7 @@ def resolve_tasks(taskset, manifest):
|
|||
ssh.AddSSHKeyGeneration,
|
||||
ssh.DisableSSHPasswordAuthentication,
|
||||
ssh.DisableRootLogin,
|
||||
tasks.apt.AddBaselineAptCache,
|
||||
image.MoveImage,
|
||||
tasks.image.CreateTarball,
|
||||
volume.Delete,
|
||||
|
|
16
bootstrapvz/providers/gce/tasks/apt.py
Normal file
16
bootstrapvz/providers/gce/tasks/apt.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from bootstrapvz.base import Task
|
||||
from bootstrapvz.common import phases
|
||||
from bootstrapvz.common.tasks import apt
|
||||
from bootstrapvz.common.tasks import network
|
||||
from bootstrapvz.common.tools import log_check_call
|
||||
|
||||
|
||||
class AddBaselineAptCache(Task):
|
||||
description = 'Add a baseline apt cache into the image.'
|
||||
phase = phases.system_cleaning
|
||||
predecessors = [apt.AptClean]
|
||||
successors = [network.RemoveDNSInfo]
|
||||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
log_check_call(['chroot', info.root, 'apt-get', 'update'])
|
|
@ -11,10 +11,11 @@ Debian 8 Jessie Package Notes:
|
|||
* cloud-utils and cloud-guest-utils are pulled in from backports as they provide a fixed version of growpart to safely grow the root partition on disks >2TB.
|
||||
* google-cloud-sdk is pulled from a Google Cloud repository.
|
||||
* google-compute-engine is pulled from a Google Cloud repository.
|
||||
* google-compute-engine-init is pulled from a Google Cloud repository.
|
||||
* google-config is pulled from a Google Cloud repository.
|
||||
|
||||
jessie-minimal Notes:
|
||||
The only additions are the necessary google-compute-engine and google-config packages. This image is not published on GCE however the manifest is provided here for those wishing a minimal GCE Debian image.
|
||||
The only additions are the necessary google-compute-engine, google-compute-engine-init, and google-config packages. This image is not published on GCE however the manifest is provided here for those wishing a minimal GCE Debian image.
|
||||
|
||||
Note: Debian 7 Wheezy and Backports Debian 7 Wheezy are deprecated images on GCE and are no longer supported.
|
||||
These manifests are provided here for historic purposes.
|
||||
|
|
|
@ -20,11 +20,13 @@ volume:
|
|||
filesystem: ext4
|
||||
size: 10GiB
|
||||
packages:
|
||||
include-source-type: true
|
||||
sources:
|
||||
google-cloud:
|
||||
- deb http://packages.cloud.google.com/apt google-cloud-compute-{system.release} main
|
||||
install:
|
||||
- google-compute-engine-{system.release}
|
||||
- google-compute-engine-init-{system.release}
|
||||
- google-config-{system.release}
|
||||
plugins:
|
||||
google_cloud_repo:
|
||||
|
|
|
@ -20,6 +20,7 @@ volume:
|
|||
filesystem: ext4
|
||||
size: 10GiB
|
||||
packages:
|
||||
include-source-type: true
|
||||
sources:
|
||||
google-cloud:
|
||||
- deb http://packages.cloud.google.com/apt cloud-sdk-{system.release} main
|
||||
|
@ -29,6 +30,7 @@ packages:
|
|||
- cloud-utils
|
||||
- google-cloud-sdk
|
||||
- google-compute-engine-{system.release}
|
||||
- google-compute-engine-init-{system.release}
|
||||
- google-config-{system.release}
|
||||
- python-crcmod
|
||||
- screen
|
||||
|
|
Loading…
Add table
Reference in a new issue