modules/mu/config/schema_helpers.rb in cloud-mu-3.5.1 vs modules/mu/config/schema_helpers.rb in cloud-mu-3.6.3

- old
+ new

@@ -437,22 +437,50 @@ "us_only" => { "type" => "boolean", "description" => "For resources which span regions, restrict to regions inside the United States", "default" => false }, - "conditions" => { - "type" => "array", - "items" => { - "type" => "object", - "required" => ["name", "cloudcode"], - "description" => "CloudFormation-specific. Define Conditions as in http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html. Arguments must use the cloudCode() macro.", - "properties" => { - "name" => { "required" => true, "type" => "string" }, - "cloudcode" => { "required" => true, "type" => "string" }, + "generate_passwords" => { + "type" => "array", + "items" => { + "type" => "object", + "required" => ["itemname"], + "description" => "Generate a password-like string upon initial deployment and store it in the named item in this deploy's vault.", + "properties" => { + "itemname" => { + "type" => "string", + "description" => "The vault item into which this password should be injected" + }, + "username" => { + "type" => "string", + "description" => "Optional string to add to vault data under the +username+ field" + }, + "minlength" => { + "type" => "integer", + "description" => "The minimum length of the generated password", + "default" => 14 + }, + "safe_chars" => { + "type" => "string", + "descriptions" => "Characters (in addition to digits and latin letters) which should be considered for inclusion", + "default" => '~!@#%^&*_-+=`|(){}[]:;<>,.?' } } + } }, + "conditions" => { + "type" => "array", + "items" => { + "type" => "object", + "required" => ["name", "cloudcode"], + "description" => "CloudFormation-specific. Define Conditions as in http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html. Arguments must use the cloudCode() macro.", + "properties" => { + "name" => { "required" => true, "type" => "string" }, + "cloudcode" => { "required" => true, "type" => "string" }, + } + } + }, "parameters" => { "type" => "array", "items" => { "type" => "object", "title" => "parameter", @@ -462,9 +490,14 @@ "name" => { "required" => true, "type" => "string" }, "default" => { "type" => "string" }, "list_of" => { "type" => "string", "description" => "Treat the value as a comma-separated list of values with this key name, equivalent to CloudFormation's various List<> types. For example, set to 'subnet_id' to pass values as an array of subnet identifiers as the 'subnets' argument of a VPC stanza." + }, + "list" => { + "type" => "boolean", + "default" => false, + "description" => "Treat the value as a comma-separated list to be converted into an array of strings. This will be ignored if {list_of} is set." }, "prettyname" => { "type" => "string", "description" => "An alternative name to use when generating parameter fields in, for example, CloudFormation templates" },