-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Publishing salt-server-list.rst back to psf-salt onchanges #300
Comments
I think a variant of this idea might be best:
I don't think we can use Rather, we could potentially publish files over HTTP from the salt-master that we want to fetch. Similar to the way that we have the salt-master respond to LetsEncrypt acme-challenges in Lines 60 to 81 in 24fae9b
Then our scheduled GitHub Action can access the files via HTTP, see if they've changed, and use the create-pull-request action to open a PR when they do. |
This is complete. #343 |
One possible avenue to publish any changes in
salt-server-list.rst
back to ourpython/psf-salt
repository is to:force_reset
parameter to be set to True, allowing it to always stay up to date with the remote repository.file.managed
state would be used to ensure thatsalt-server-list.rst
is present in the local copy of the repository and it's contents are up to date with its source file.git.latest
state, and tracking your file usingfile.managed
you could then use git.push to push any changes to the remote repository.It's important to note that the
user
parameter must have necessary permissions to access the repository. Could possibly create an automated Salt user with limited permissions for the purposes of running these commands and states.Another avenue may to be establish a githib workflow that runs on a scheduled
cron
interval, pulls changes from salt usingsalt-cp
, and creates a pull request using create-pull-request action.The text was updated successfully, but these errors were encountered: