Skip to content

Commit 6d7a1a4

Browse files
authored
Merge pull request #517 from plus3it/develop
Releases watchmaker 0.9.0
2 parents a2d330c + 26b6198 commit 6d7a1a4

36 files changed

+442
-6031
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ before_deploy:
6565
(set -x; python $TRAVIS_BUILD_DIR/ci/travis_set_build.py --skip "$TRAVIS_TAG")
6666
elif [ "$TRAVIS_BRANCH" = "master" ]
6767
then
68-
VERSION=$(grep "version = " $TRAVIS_BUILD_DIR/setup.cfg | sed "s/version = //")
69-
(set -x; git tag -a $VERSION -m $VERSION)
68+
WAM_VERSION=$(grep "version = " $TRAVIS_BUILD_DIR/setup.cfg | sed "s/version = //")
69+
export WAM_VERSION
70+
(set -x; git tag -a $WAM_VERSION -m $WAM_VERSION)
7071
fi
7172
deploy:
7273
- provider: pypi
@@ -92,6 +93,7 @@ deploy:
9293
repo: plus3it/watchmaker
9394
condition: '"$TOXENV" == *"py27"*'
9495
- provider: releases
96+
tag_name: $WAM_VERSION
9597
draft: true
9698
skip_cleanup: true
9799
api_key:

CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
## Changelog
22

3+
### 0.9.0
4+
5+
**Commit Delta**: [Change from 0.8.0 release](https://github.com/plus3it/watchmaker/compare/0.8.0...0.9.0)
6+
7+
**Released**: 2018.02.12
8+
9+
**Summary**:
10+
11+
* [[Issue #499][499]][[PR #513][513]] Includes additional details about the
12+
platform and python version in the watchmaker log
13+
* [[Issue #500][500]][[PR #512][512]] Retries file retrieval up to 5 times
14+
* [[Issue #501][501]][[PR #507][507]] Uses urllib handlers to retrieve all
15+
files
16+
- Deprecates the argument `--s3-source`; to retrieve a file from an S3
17+
bucket use the syntax: `s3://<bucket>/<key>`
18+
- Local files may be specified as absolute or relative paths, and may or
19+
may not be prefixed with `file://`
20+
* [[PR #496][496]] Moves CloudFormation and Terraform templates to their own
21+
project, [terraform-aws-watchmaker][terraform-aws-watchmaker]
22+
* [[PR #491][491]] Improves compatibility of the watchmaker bootstrap.ps1
23+
script when executed by an Azure custom script extension
24+
* [[Issue #430][430]][[PR #487][487]] Writes watchmaker salt config to a
25+
custom path:
26+
- Windows: `C:\Watchmaker\Salt\conf`
27+
- Linux: `/opt/watchmaker/salt`
28+
* scap-formula
29+
- Incorporates content from OpenSCAP Security Guide v0.1.37-1
30+
31+
[430]: https://github.com/plus3it/watchmaker/issues/430
32+
[499]: https://github.com/plus3it/watchmaker/issues/499
33+
[500]: https://github.com/plus3it/watchmaker/issues/500
34+
[501]: https://github.com/plus3it/watchmaker/issues/501
35+
[487]: https://github.com/plus3it/watchmaker/pull/487
36+
[491]: https://github.com/plus3it/watchmaker/pull/491
37+
[496]: https://github.com/plus3it/watchmaker/pull/496
38+
[507]: https://github.com/plus3it/watchmaker/pull/507
39+
[512]: https://github.com/plus3it/watchmaker/pull/512
40+
[513]: https://github.com/plus3it/watchmaker/pull/513
41+
[terraform-aws-watchmaker]: https://github.com/plus3it/terraform-aws-watchmaker
42+
343
### 0.8.0
444

545
**Commit Delta**: [Change from 0.7.2 release](https://github.com/plus3it/watchmaker/compare/0.7.2...0.8.0)

docs/configuration.md

-5
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ Parameters supported by the Salt Worker:
7373
- `exclude_states` (_string, comma-separated_): States to exclude from
7474
execution of salt states.
7575

76-
- `s3_source` (_boolean_): Use S3 utilities to retrieve content instead of
77-
http(s) utilities. For S3 utilities to work, the system must have boto
78-
credentials configured that allow access to the S3 bucket.
79-
8076
- `user_formulas` (_dict_): Map of formula names and URLs to zip archives of
8177
salt formulas. These formulas will be downloaded, extracted, and added to
8278
the salt file roots. The zip archive must contain a top-level directory
@@ -152,7 +148,6 @@ all:
152148
ou_path: None
153149
salt_content: https://s3.amazonaws.com/watchmaker/salt-content.zip
154150
salt_states: Highstate
155-
s3_source: False
156151
user_formulas:
157152
# To add extra formulas, specify them as a map of
158153
# <formula_name>: <archive_url>

docs/faq.md

+36-2
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,48 @@ label may not be related to the error you are encountering.
5555
Watchmaker is supported on RedHat 7 and CentOS 7. See the [index](index.html)
5656
page for a list of all supported operating systems.
5757

58+
## How can I exclude salt states when executing watchmaker?
59+
60+
The Salt worker in Watchmaker supports an `exclude_states` argument. When
61+
present, the value is passed directly to the `exclude` option of the
62+
[salt highstate execution module](https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.highstate).
63+
To use this option with watchmaker from the command line, pass the argument
64+
`--exclude-states <sls_glob>`. For example:
65+
66+
```
67+
# Exclude the state "foo" with an exact match
68+
watchmaker --exclude-states foo
69+
70+
# Exclude all state names that begin with "foo"
71+
watchmaker --exclude-states foo*
72+
73+
# Exclude multiple states "foo" and "bar" with an exact match
74+
watchmaker --exclude-states foo,bar
75+
```
76+
77+
## Can I use the underlying salt functionality directly?
78+
79+
Yes, by passing watchmaker's salt configuration directory to the salt command,
80+
using the `-c|--config-dir` argument:
81+
82+
* Linux: `/opt/watchmaker/salt`
83+
* Windows: `C:\Watchmaker\salt\conf`
84+
85+
For example:
86+
87+
```
88+
# -c|--config-dir
89+
salt-call -c /opt/watchmaker/salt state.show_top
90+
```
91+
5892
## Can I use watchmaker to toggle my RedHat/Centos host's FIPS mode?
5993

6094
Yes, indirectly. Because watchmaker implements most of its functionality via
6195
[SaltStack](https://saltstack.com) modules, you can directly-use the underlying
6296
SaltStack functionality to effect the desired change. This is done from the
6397
commandline - as root - by executing:
6498

65-
* Disable FIPS-mode: `salt-call --local ash.fips_disable`
66-
* Enable FIPS-mode: `salt-call --local ash.fips_enable`
99+
* Disable FIPS-mode: `salt-call -c /opt/watchmaker/salt ash.fips_disable`
100+
* Enable FIPS-mode: `salt-call -c /opt/watchmaker/salt ash.fips_enable`
67101

68102
And then rebooting the system.

docs/files/bootstrap/watchmaker-bootstrap.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,9 @@ if( ${GitUrl} ) {
143143
Reset-EnvironmentVariables
144144
Write-Verbose "Reset the PATH environment for this shell"
145145

146+
if ("$Env:TEMP".TrimEnd("\") -eq "${Env:windir}\System32\config\systemprofile\AppData\Local\Temp") {
147+
$Env:TEMP, $Env:TMP = "${Env:windir}\Temp", "${Env:windir}\Temp"
148+
Write-Verbose "Forced TEMP envs to ${Env:windir}\Temp"
149+
}
150+
146151
Write-Verbose "${__ScriptName} complete!"

docs/files/cfn/parameter-maps/watchmaker-lx-autoscale.params.json

-126
This file was deleted.

docs/files/cfn/parameter-maps/watchmaker-lx-instance.params.json

-122
This file was deleted.

0 commit comments

Comments
 (0)