Merge pull request #125 from jkaplowitz/development

Fix list of tasks and their ordering
This commit is contained in:
Tiago Ilieve 2014-07-25 01:18:04 -03:00
commit e2a7887ebf
4 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import os
class RemoveDNSInfo(Task): class RemoveDNSInfo(Task):
description = 'Removing resolv.conf' description = 'Removing resolv.conf'
phase = phases.system_modification phase = phases.system_cleaning
@classmethod @classmethod
def run(cls, info): def run(cls, info):
@ -15,7 +15,7 @@ class RemoveDNSInfo(Task):
class RemoveHostname(Task): class RemoveHostname(Task):
description = 'Removing the hostname file' description = 'Removing the hostname file'
phase = phases.system_modification phase = phases.system_cleaning
@classmethod @classmethod
def run(cls, info): def run(cls, info):

View file

@ -1,7 +1,6 @@
from bootstrapvz.base import Task from bootstrapvz.base import Task
from bootstrapvz.common import phases from bootstrapvz.common import phases
from bootstrapvz.common.tasks import apt from bootstrapvz.common.tasks import apt
from bootstrapvz.common.tasks import network
from bootstrapvz.common.tools import sed_i from bootstrapvz.common.tools import sed_i
import os import os
@ -62,7 +61,6 @@ class ApplyPuppetManifest(Task):
description = 'Applying puppet manifest' description = 'Applying puppet manifest'
phase = phases.system_modification phase = phases.system_modification
predecessors = [CopyPuppetAssets] predecessors = [CopyPuppetAssets]
successors = [network.RemoveHostname, network.RemoveDNSInfo]
@classmethod @classmethod
def run(cls, info): def run(cls, info):

View file

@ -37,6 +37,7 @@ def resolve_tasks(taskset, manifest):
tasks.configuration.GatherReleaseInformation, tasks.configuration.GatherReleaseInformation,
tasks.host.DisableIPv6, tasks.host.DisableIPv6,
tasks.host.SetHostname,
tasks.boot.ConfigureGrub, tasks.boot.ConfigureGrub,
initd.InstallInitScripts, initd.InstallInitScripts,
ssh.AddSSHKeyGeneration, ssh.AddSSHKeyGeneration,

View file

@ -1,6 +1,7 @@
from bootstrapvz.base import Task from bootstrapvz.base import Task
from bootstrapvz.common import phases from bootstrapvz.common import phases
from bootstrapvz.common.tasks import apt from bootstrapvz.common.tasks import apt
from bootstrapvz.common.tasks import network
from bootstrapvz.common.tools import log_check_call from bootstrapvz.common.tools import log_check_call
import os import os
@ -8,7 +9,7 @@ import os
class SetPackageRepositories(Task): class SetPackageRepositories(Task):
description = 'Adding apt sources' description = 'Adding apt sources'
phase = phases.preparation phase = phases.preparation
successors = [apt.AddManifestSources] predecessors = [apt.AddManifestSources]
@classmethod @classmethod
def run(cls, info): def run(cls, info):
@ -39,7 +40,7 @@ class ImportGoogleKey(Task):
class CleanGoogleRepositoriesAndKeys(Task): class CleanGoogleRepositoriesAndKeys(Task):
description = 'Removing Google key and apt source files' description = 'Removing Google key and apt source files'
phase = phases.system_cleaning phase = phases.system_cleaning
successors = [apt.AptClean] successors = [apt.AptClean, network.RemoveDNSInfo]
@classmethod @classmethod
def run(cls, info): def run(cls, info):