Skip to content

Release 1.7#95

Merged
epcim merged 28 commits intomasterfrom
develop
Oct 2, 2020
Merged

Release 1.7#95
epcim merged 28 commits intomasterfrom
develop

Conversation

@epcim
Copy link
Copy Markdown
Member

@epcim epcim commented Oct 2, 2020

After all since 2018 there are some changes worth of 1.7 release.

Features:

  • support for .yaml along with .yml
  • support to use current node parameters as references in class name

and few but important fixes

would not be possible without contribution of @AndrewPickford @bbinet @pranavgupta1234 and few others on a list below. Thanks.

maljub01 and others added 26 commits November 8, 2018 11:31
Fixes: #77

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Fixed typo in settings definitions.
Fix a typo: Canot -> Cannot
…written_missing_reference

Fix ignore_overwritten_missing_reference default
added support for .yaml along with .yml
…Error

These are parent classes for other error classes which all pass the
msg parameter as an optional parameter.
…me or node file path

By default a class mapping will match against the name of a node:

class_mappings:
  - test*        alpha

This will match all nodes names starting with test.

A possibly unintended side effect of the original implementation allowed
for matches against the path of the node file. So for a node file
'test/node1.yml' a match:

class_mappings:
  - test/*        alpha

would work. A reworking of the class mappings implementation ment this
matching stopped working. The type of matching done by the class mapping
is now controlled by the configuration option class_mappings_match_path.
If false (the default) the match is done against the node name and if true
the match is done again the path.
Fix doc for ignore_class_notfound_regexp
…regression

allow class mappings to match on node name or node path
…rect data

With two indentical inventory queries, one with the AllEnvs flag and
one without both queries return the data from the query with the AllEnvs
flag set.

This fix adds a test to the invitem class when assembling the inventory
query result to check that the node environments match or that the
query has the AllEnvs flag set.
…riting

Fix identical inventory queries with different flags returning incorrect data
so that with the following reclass config:

```
=> /etc/reclass/nodes/mynode.yml
classes:
  - common
parameters:
  project: myproject

=> /etc/reclass/classes/common.yml
class:
  - ${project}

=> /etc/reclass/classes/myproject.yml
parameters:
  some:
    project: parameters
```

The mynode parameters would be merged successfully by reclass and we will
get the following result for the parameters:

```
parameters:
  project: myproject
  some:
    project: parameters
```

Without this patch, this would result in the following error:

```
Failed to load ext_pillar reclass: ext_pillar.reclass: -> mynode
	In yaml_fs:///etc/reclass/classes/common.yml
	Class name ${project} not resolvable
```
so that we avoid side effect of list elements being merged twice in the
same list.

This commit adds a new "scalar_parameters" reclass config option
(defaults to False) used to indicate where to find scalar parameters in
node parameters dict.
Add support to use current node parameters as references in class name
@epcim epcim changed the title Release 2.0 Release 1.8 Oct 2, 2020
@epcim epcim changed the title Release 1.8 Release 1.7 Oct 2, 2020
Petr Michalec and others added 2 commits October 2, 2020 18:00
Signed-off-by: Petr Michalec <epcim@apealive.net>
@epcim epcim merged commit 974efed into master Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants