-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from mirceaulinic/develop
Release 2021.6.0
- Loading branch information
Showing
16 changed files
with
246 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Docker | ||
|
||
on: | ||
push: | ||
# Publish `develop` as Docker `latest` image. | ||
branches: | ||
- develop | ||
|
||
# Publish `v1.2.3` tags as releases. | ||
tags: | ||
- '*' | ||
|
||
# Run tests for any PRs. | ||
pull_request: | ||
|
||
env: | ||
IMAGE_NAME: salt-sproxy | ||
|
||
jobs: | ||
# Run tests. | ||
# See also https://docs.docker.com/docker-hub/builds/automated-testing/ | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run tests | ||
run: | | ||
if [ -f docker-compose.test.yml ]; then | ||
docker-compose --file docker-compose.test.yml build | ||
docker-compose --file docker-compose.test.yml run sut | ||
else | ||
docker build . --file Dockerfile | ||
fi | ||
# Push image to GitHub Packages. | ||
# See also https://docs.docker.com/docker-hub/builds/ | ||
push: | ||
# Ensure test job passes before pushing image. | ||
needs: test | ||
|
||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build image | ||
run: docker build . --file Dockerfile --tag $IMAGE_NAME | ||
|
||
- name: Log into GitHub Container Registry | ||
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Push image to GitHub Container Registry | ||
run: | | ||
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | ||
# Change all uppercase to lowercase | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
# Strip git ref prefix from version | ||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | ||
# Strip "v" prefix from tag name | ||
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') | ||
# Publish develop under the develop tag | ||
[ "$VERSION" == "develop" ] && VERSION=develop | ||
# Publish master under the latest tag | ||
[ "$VERSION" == "master" ] && VERSION=latest | ||
echo IMAGE_ID=$IMAGE_ID | ||
echo VERSION=$VERSION | ||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION | ||
docker push $IMAGE_ID:$VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. _release-2019.6.0: | ||
|
||
================ | ||
Release 2019.6.0 | ||
================ | ||
|
||
This is the initial release. Please explore the documentation and usage | ||
examples to get familiar with *salt-sproxy*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.. _release-2021.6.0: | ||
|
||
================ | ||
Release 2021.6.0 | ||
================ | ||
|
||
While this release doesn't bring any particularly new features, it provides | ||
several performance improvements which are easily noticeable, from an user | ||
perspective (when transitioning from a previous *salt-sproxy* version to | ||
2021.6.0): | ||
|
||
- Batch execution is no longer the default behaviour when targeting against | ||
running Proxy Minions (i.e., when using the ``--use-existing-proxy`` CLI | ||
option, or setting the configuration to ``use_existing_proxy: true`` into the | ||
Master config file). That is, when executing *salt-sproxy* in an environment | ||
where you have a Salt Master running and managing running Proxy or regular | ||
Minions, and your targeting expression matches some or all of those Minions, | ||
the execution is spread out to all the Minions at once. If you want to | ||
execute in batches, you will need to explicitly use the ``-b`` (or | ||
``--batch-size`` CLI argument). Note however, that for devices that don't | ||
have a (Proxy) Minion running, the batch continues to default to the number | ||
of CPUs available on the local machine. As always, for a quicker execution | ||
(yet more resource intensive) you may want to set a higher batch size value. | ||
|
||
- Whenever targeting against running (Proxy) Minions, in case you want to | ||
perform a survey against your Minions and determine which ones are alive, you | ||
can use the ``--test-ping`` CLI option (or set ``test_ping: true`` in the | ||
Master configuration file). Before this release, this option was the default | ||
behaviour. While this allows you to know in advance which Minions are going | ||
to reply, and which are unresponsive, it is more resource consuming, as it | ||
spreads an additional set of events, by executing a ``test.ping`` across your | ||
fleet. | ||
|
||
Among a few bug fixes, it's worth noting that extension modules you may have in | ||
your own environment should now be working well when :ref:`ssh`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-r requirements.txt | ||
tox==3.20.1 | ||
tox==3.21.4 | ||
black==19.10b0 | ||
pylint==2.6.0 | ||
SaltPylint==2020.9.28 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
msgpack<=0.6.2 | ||
salt | ||
progressbar2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.