Skip to content

Implement scoped parameters #115

@robparrott

Description

@robparrott

We want a user to be able to set a parameter on a provider, a cloudlet or specific blueprint, as well as the current options which are "global" and "this session".

Suggest command line looks like:

nepho parameter [--provider aws] set | get | unset key [value]
nepho parameter [--cloudlet my-cloudlet ]  set | get | unset key [value]
nepho parameter [--cloudlet my-cloudlet ]  [--blueprint my-blueprint] set | get | unset key [value]

I suggest implementing by structuring the parameters dictionary as

parameters:
  common:
       key1 : value1
       key2 : value2
  provider:
       aws:
         key1 : value1
         key2 : value2 
       vagrant:
         key : value
  cloudlet:
    cloudlet1:
      common:
        key1 : value1
        key2 : value2  
      blueprint1:
        key1 : value1
        key2 : value2 
    cloudlet2:
       .....

Given that YAML <----> dict() is robust, coding this up should be straightforward. We'll want to be sure to cleanup unneeded dicts()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions