EnvironmentsConfig should be serializable

Bug #614469 reported by Gustavo Niemeyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Medium
Kapil Thangavelu

Bug Description

We need a method like:

    data = EnvironmentsConfig(path).serialize_with_environment("environment-name")

This will generate a valid "environments.yaml" configuration, containing only the environment with the given name.

Internally, this option should call the environment's serialize() method, which in turn should call the serialize() method in the machine provider. This enables the machine provider to inject additional required options such as AWS keys (which may be retrieved from the env variables) and translate the authorized_keys_path option into an authorized_keys (this depends on bug #614447 being fixed).

This is needed by the ProvisioningAgent

Tags: spike

Related branches

description: updated
description: updated
Changed in ensemble:
importance: Undecided → Medium
status: New → Confirmed
Changed in ensemble:
milestone: none → 0.1
Changed in ensemble:
assignee: nobody → Kapil Thangavelu (hazmat)
status: Confirmed → In Progress
Changed in ensemble:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
description: updated
Changed in ensemble:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.