-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(formula): align to template-formula & improve ci #283
refactor(formula): align to template-formula & improve ci #283
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
7b1b09d
to
53a679f
Compare
168d70b
to
61d3646
Compare
Added support for Archlinux (CI/CD) with HTTPS/SSL and modules. |
61d3646
to
e46878b
Compare
FEATURE: Archlinux support FEATURE: Windows support FEATURE: Enhanced CI/CD FEATURE: modular states BREAKING CHANGE: 'apache.sls' converted to new style 'init.ssl' BREAKING CHANGE: "logrotate.sls" became "config/logrotate.sls" BREAKING CHANGE: "debian_full.sls" became "config/debian_full.sls" BREAKING CHANGE: "flags.sls" became "config/flags.sls" BREAKING CHANGE: "manage_security" became "config/manage_security.sls" BREAKING CHANGE: "mod_*.sls" became "config/mod_*.sls" BREAKING CHANGE: "no_default_host.sls" became "config/no_default_host.sls" BREAKING CHANGE: "own_default_host.sls" became "config/own_default_host.sls" BREAKING CHANGE: "register_site.sls" became "config/register_site.sls" BREAKING CHANGE: "server_status.sls" became "config/server_status.sls" BREAKING CHANGE: "vhosts/" became "config/vhosts/" BREAKING CHANGE: "mod_security/" became "config/mod_security/" NOT-BREAKING CHANGE: 'config.sls' became 'config/init.sls' NOT-BREAKING CHANGE: 'uninstall.sls' symlinked to 'clean.sls'
e46878b
to
47818fc
Compare
I discussed this PR with @myii and because it's too big to review I'll selfie-merge on the following basis:
Pillar data is unchanged. The primary change is state-names were refactored as part of the alignment with template-formula. |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@noelmcloughlin Nice work, the breaking changes listed in the changelog make things so much easier to follow -- appreciate it. |
Just a little note for posterity. I wasn't able to error: Updating the following directories would lose untracked files in them:
apache/vhosts Was able to check the problem using $ git clean -xdfn
...
Would remove apache/vhosts/.cleanup.sls.un~
Would remove apache/vhosts/.minimal.tmpl.un~
Would remove apache/vhosts/.proxy.tmpl.un~
Would remove apache/vhosts/.redirect.tmpl.un~
Would remove apache/vhosts/.standard.tmpl.un~
... So the main point is that making modifications to the directory structure could lead to issues with certain files being present in the directories that are being moved (i.e. those covered by This is more so a point of awareness, there's not much we could do about this. |
Standardised this implementation with 7dc0ece. @noelmcloughlin It looks like you're using an older version of |
BREAKING CHANGE: Module .sls files are moved to /config/modules/ subdirectory.
template-formula alignment may introduce a breaking change. See README for states.
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
?YES
Related issues and/or pull requests
Includes #225 and #259
Fixes #79, #238, #258, #262, #265, #266
Describe the changes you're proposing
While using this formula I saw various issues and inconsistencies.
This PR is an attempt to improve formula quality while keeping the same functionality.
state: enabled
andenabled: true
. #79, modules.sls: order breaks some modules #238, GID 0 is named "wheel" on BSD Unix-family operating systems #258, custom error/access log does not create folder on filesystem #262, modules section does not affect settings #265, execute purge after uninstall #266I'm sorry the PR is so big but there is no easy way to improve feature/test coverage without restructuring.
The CI/CD is passing for all platforms except:
Further work is required to address remaining open issues.
There may be better ways of processing modules but this PR relies on the existing solutions.
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