Puppet tasks fix commit

* fixed an issue where apt sources get written before the 
  InstallPuppetlabsPC1ReleaseKey task is performed. added a successor
  to the task.
* tox is green
This commit is contained in:
Hugo Antonio Sepulveda Manriquez 2017-08-11 16:09:29 +02:00
parent fc04baba44
commit 390b59b22b

View file

@ -1,6 +1,7 @@
import os import os
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.exceptions import TaskError from bootstrapvz.common.exceptions import TaskError
from bootstrapvz.common.releases import jessie, wheezy from bootstrapvz.common.releases import jessie, wheezy
from bootstrapvz.common.tools import sed_i, log_check_call, rel_path from bootstrapvz.common.tools import sed_i, log_check_call, rel_path
@ -59,6 +60,7 @@ class CheckManifestPath(Task):
class InstallPuppetlabsPC1ReleaseKey(Task): class InstallPuppetlabsPC1ReleaseKey(Task):
description = 'Install puppetlabs PC1 Release key into the keyring' description = 'Install puppetlabs PC1 Release key into the keyring'
phase = phases.package_installation phase = phases.package_installation
successors = [apt.WriteSources]
@classmethod @classmethod
def run(cls, info): def run(cls, info):