Closed sticky-note closed 4 years ago
@sticky-note Now that #45 is merged, we can look at adjusting the functionality -- please rebase this PR on top of the latest version of this formula.
If you want to replace pillar.get
here, then you'll need to reintroduce the block that was taken out of map.jinja
during #45. That's if you need the rest of the pillar merged into the map, meaning that the pillar lookup
is not enough to work properly here.
@sticky-note Just to be clear, if you also merge the rest of the pillar into the map, all of the Travis instances will fail but that's expected, because the yaml_dump
InSpec tests will need to be updated to mirror the new entries that are coming in from the pillar. If it doesn't make sense, just make the changes and I'll look at how the InSpec tests need to be updated accordingly.
@myii Do we need to do a breaking change then ?
@sticky-note Probably not. I've already identified some problems with the existing tests, which is why this PR didn't fail anything! I'll try to get back to you within the day.
@sticky-note OK, I've added some commits and force pushed this so that it uses the latest tests. One benefit is showing us how the files have changed before and after this PR.
dhcpd.conf
file changes after this PR, across all platformslookup
, which I added in 4baed92.map.jinja
have also been updated, since the pillar is now being merged in. Those changes can be seen in 174e8d2.Once we're finalised with this PR, we can look at rebasing #44 and then fixing all of the tests to confirm everything is working as defined by the tests.
@Myii I think ordering is okay
@myii I think ordering is okay
OK, merged.
In terms of #44, please go ahead and rebase -- look forward to all of the failing tests! Do you want to fix the tests yourself?
:tada: This PR is included in version 0.10.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
44 #45
Describe the changes you're proposing
Refactor templates to not use
pillar.get
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context