Fix #204, user_modification phase has been introduced

This commit is contained in:
Anders Ingemann 2015-05-02 12:29:55 +02:00
parent a23c9936b6
commit 2948badf47
5 changed files with 10 additions and 8 deletions

View file

@ -7,6 +7,7 @@ volume_mounting = Phase('Volume mounting', 'Mounting bootstrap volume')
os_installation = Phase('OS installation', 'Installing the operating system')
package_installation = Phase('Package installation', 'Installing software')
system_modification = Phase('System modification', 'Modifying configuration files, adding resources, etc.')
user_modification = Phase('User modification', 'Running user specified modifications')
system_cleaning = Phase('System cleaning', 'Removing sensitive data, temporary files and other leftovers')
volume_unmounting = Phase('Volume unmounting', 'Unmounting the bootstrap volume')
image_registration = Phase('Image registration', 'Uploading/Registering with the provider')
@ -19,6 +20,7 @@ order = [preparation,
os_installation,
package_installation,
system_modification,
user_modification,
system_cleaning,
volume_unmounting,
image_registration,

View file

@ -30,7 +30,7 @@ class AddPackages(Task):
class RunAnsiblePlaybook(Task):
description = 'Running ansible playbooks'
phase = phases.system_modification
phase = phases.user_modification
@classmethod
def run(cls, info):

View file

@ -37,8 +37,8 @@ def modify_path(info, path, entry):
class MkdirCommand(Task):
description = 'copy files into the image'
phase = phases.system_modification
description = 'Creating directories requested by user'
phase = phases.user_modification
@classmethod
def run(cls, info):
@ -51,8 +51,8 @@ class MkdirCommand(Task):
class FileCopyCommand(Task):
description = 'copy files into the image'
phase = phases.system_modification
description = 'Copying user specified files into the image'
phase = phases.user_modification
predecessors = [MkdirCommand]
@classmethod

View file

@ -3,8 +3,8 @@ from bootstrapvz.common import phases
class ImageExecuteCommand(Task):
description = 'Execute command in the image'
phase = phases.system_modification
description = 'Executing commands in the image'
phase = phases.user_modification
@classmethod
def run(cls, info):

View file

@ -57,7 +57,7 @@ class CopyPuppetAssets(Task):
class ApplyPuppetManifest(Task):
description = 'Applying puppet manifest'
phase = phases.system_modification
phase = phases.user_modification
predecessors = [CopyPuppetAssets]
@classmethod