simple-framework / simple_grid_yaml_compiler

Generates the extended YAML output for an input site_level_configuration_file
Apache License 2.0
0 stars 9 forks source link

YAMALE schema generation #53

Open maany opened 5 years ago

maany commented 5 years ago

The simple_(base/wlcg)_schema.yaml need to be converted to a 'python yamale module' compatible schema.

var: {type: yamale_type(), required: true, use_default: false}

should become

var: yamale_type() 

for the entire schema file.

snehasi commented 5 years ago

Hey @maany What filename should the yamale compatible schema be stored as? For the last output schema, we were using command line flag -o for taking filename as user input, we could do it via another flag or have a pre-defined filename.

maany commented 5 years ago

Hey @snehasi , we could use a -s flag to specify the output file for the schema. I'd pass "augmented_site_level_schema.yaml" as the value to the -s flag via puppet.

maany commented 5 years ago

In Phase 7, we must dynamically change type field in lightweight_components from

lightweight_component:
    deploy: list(include('doms'))

to

lightweight_component:
    deploy: include('doms')

This is necessary to account for the fact that we split the lightweight_components in phase_6 based on the entries present in the deploy section of the site_level_config_file.