Commit Graph

72782 Commits

Author SHA1 Message Date
Mike Place
5bb346f74b Merge pull request #35473 from rallytime/lxc-module-deprecations
LXC execution module Carbon deprecations
2016-08-16 10:19:25 +09:00
Mike Place
d2dd78e25b Merge pull request #35467 from rallytime/bp-33518
Back-port #33518 to 2016.3
2016-08-16 10:17:01 +09:00
Erik Johnson
e243c63e43 win_pkg: Fix traceback when package is not installed 2016-08-15 19:14:49 -05:00
anthony-shaw
e427815caf fix clrf 2016-08-15 16:30:58 -06:00
rallytime
d17fbe96de LXC execution module Carbon deprecations 2016-08-15 16:28:23 -06:00
Thomas S Hatch
4cc2add938 Add soem more notes to the salt-cp doc 2016-08-15 15:59:41 -06:00
anthony-shaw
be41a400fa commit fix 2016-08-15 15:53:29 -06:00
anthony-shaw
06530b5461 add a test to check existing functionality is broken 2016-08-15 15:53:05 -06:00
Winston Liu
b09ee1826c call to boto_secgroup.convert_to_group_ids should be by keyword args, the earlier code would end up with incorrect parameters being used with region being mapped to vpc_name. 2016-08-15 14:52:15 -07:00
Graham McCullough
ae5b233d51 fixes #34279 2016-08-15 14:34:20 -07:00
Justin Anderson
eb42775a49 Fix orderering in test_add_rule 2016-08-15 14:44:37 -06:00
Justin Anderson
c65347b07d Fix failing win_firewall_tests 2016-08-15 13:45:13 -06:00
rallytime
48cc3bdfaa Merge branch '2016.3' into 'develop'
Conflicts:
  - salt/modules/dockerng.py
  - tests/unit/modules/dockerng_test.py
2016-08-15 13:27:52 -06:00
Nicole Thomas
2a674fefef [develop] Update bootstrap script to latest stable (2016.08.15) (#35462) 2016-08-15 13:23:44 -06:00
Nicole Thomas
5aeb74de63 [2016.3] Update bootstrap script to latest stable (2016.08.15) (#35461) 2016-08-15 13:23:34 -06:00
Nicole Thomas
38b60a32e5 [2015.8] Update bootstrap script to latest stable (2016.08.15) (#35460) 2016-08-15 13:23:24 -06:00
Sergey Kizunov
998c3db8bf Make auth_timeout user configurable again
There was code that was overriding the value of `auth_timeout` regardless
of what was set in the configuration. It was overriding it to be 5
seconds. Although 5 seconds is sufficient for most cases, in testing, I
have found it insufficient for the following use case (running both
Windows master and minions):

1) Start salt-master
2) Start salt-minion
3) Stop salt-master
4) Start salt-master

The minion reconnect will timeout after step 4. Due to this, we set the
`auth_timeout` to be 15 seconds in our own configuration file. However,
due to this issue, that configuration value was ignored and thus we
fail on reconnects.

`salt/minion.py`:
- Don't hard-code the `auth_timeout` to 5 seconds. Use the user configured
value (or the default value if the user didn't configure a value).

`salt/config/__init__.py`:
- Made the default be 5 seconds for `auth_timeout` instead of 60. Chose 5
seconds because this is the current hard-coded behavior.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2016-08-15 14:21:38 -05:00
Nicole Thomas
9b2c075611 Merge pull request #35456 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-08-15 13:16:22 -06:00
Thomas S Hatch
10037b00cb Some environments refuse to return the command output
This results in the output from salt-ssh being empty,
this fix ensures that the output is always there
2016-08-15 12:57:58 -06:00
rallytime
6a86a12294 Merge branch '2015.8' into '2016.3'
Conflicts:
  - salt/modules/cp.py
2016-08-15 11:23:44 -06:00
Moe
39e43f30fc Add example yaml to win_snmp state (#35435) 2016-08-15 11:01:57 -06:00
Mike Place
d75005c519 Fix cp.push_dir pushing empty dirs (#35442)
Fixes #35010
2016-08-15 11:00:54 -06:00
Nicolas Delaby
49af330492 Docker 1.12 reports tags as null (#35447)
Add support for this new value.
2016-08-15 10:58:50 -06:00
Mihai Dincă
a5f982edeb Fix os_family check in zypper module (#35450) 2016-08-15 10:34:11 -06:00
Dirk Thomas
dd502f2e29 move routine call out of try/except block
The try/except block is indented to handle AttributeErrors if the routine `get_<tgt_type>` is not available. But since the actual function call is also wrapped in the block if the routine is actually implemented but raises an AttributeError that one is catched too (which I think is unintentional).

This patch moves the function call out of the try/except block to not mask AttributeErrors happening within the called routine.
2016-08-15 09:02:36 -07:00
Mike Place
09925ba353 Minor doc fixup (#35436)
* Minor doc fixup

Refs #35387

* Include reload_grains
2016-08-15 09:53:56 -06:00
Bo Maryniuk
8790197d86 Fix Unit test for suppressing the exception removal on non-modified repos 2016-08-15 17:35:25 +02:00
Bo Maryniuk
3f00c6997a Remove zypper's raise exception if mod_repo has no arguments and/or no changes 2016-08-15 17:35:01 +02:00
Bo Maryniuk
dd82e6a848 Add ignore_repo_failure option to suppress zypper's exit code 106 on unavailable repos 2016-08-15 15:03:53 +02:00
Mike Place
cf924343b6 Merge pull request #35341 from dincamihai/develop
Make sha256 the default hash_type
2016-08-15 20:23:43 +09:00
Mihai Dinca
b0f0b4effc Make sha256 the default hash_type 2016-08-15 10:02:19 +02:00
Dmitry Kuzmenko
63d8246a5c Modular minion data cache.
Grains, pillar and mine data are now managed by salt.cache subsystem
2016-08-15 10:34:01 +03:00
Mike Place
a0b128a85a Merge pull request #35132 from sjorge/2015.8-35121
fixes , causing lots of mayham (onchange) with 2016.3.2 for me
2016-08-15 16:11:22 +09:00
Mike Place
a72dc59cf4 Merge pull request #35431 from m03/win_smtp_server-state-examples1
Improve win_smtp_server state docstrings
2016-08-15 16:00:53 +09:00
Morrie Winnett
d270d3622a Add example yaml to win_smtp_server state 2016-08-14 15:02:41 -07:00
Mike Place
be644a58e1 Correct errant call to argspec from master. Fix ext_job_cache. (#35427)
We were passing a string to the argpsec checker when it expects the actual func.
2016-08-14 10:58:03 -06:00
Mike Place
a53cdc1971 Resolve stacktrace logged by highstate outputter if sls cannot be found (#35428)
Simply return an empty string instead of a None.

Fixes #35423
2016-08-14 10:54:15 -06:00
Nicole Thomas
6b6f38b0ea Merge pull request #35424 from rallytime/merge-develop
[develop] Merge forward from 2016.3 to develop
2016-08-13 09:49:14 -06:00
Mike Place
607169a01b Merge pull request #35412 from s0undt3ch/2016.3
Only allow one sync read to happen at a time.
2016-08-13 08:57:29 +09:00
Mike Place
6b8d46975d Merge pull request #35414 from silviud/win_firewall_remoteip
Win firewall remoteip
2016-08-13 08:52:51 +09:00
Mike Place
d72f13d9c0 Merge pull request #35415 from meaksh/fix-suse-os-grains-in-develop
Fixed 'os' and 'os_family' grains for SUSE systems in develop
2016-08-13 08:50:52 +09:00
Mike Place
21e3874c2b Merge pull request #35421 from hrumph/saltenv_problem
Pass saltenv to call to latest_version in list_upgrades function
2016-08-13 08:48:04 +09:00
rallytime
a3a5496d0f Fix some items that went awry in the merge 2016-08-12 17:06:27 -06:00
rallytime
1fe0b69a6c Merge branch '2016.3' into 'develop'
Conflicts:
  - salt/modules/blockdev.py
  - salt/modules/ddns.py
  - salt/modules/inspectlib/collector.py
  - salt/modules/linux_sysctl.py
  - salt/modules/status.py
  - salt/modules/x509.py
  - salt/utils/process.py
  - salt/utils/verify.py
  - tests/integration/__init__.py
  - tests/integration/modules/state.py
  - tests/integration/states/cmd.py
2016-08-12 16:21:58 -06:00
david kruger
f54bf445b5 aptpkg will specify --install-recommends if enabled by the SLS
This is to resolve #35422. The "install_recommends" flag in the SLS file
would apply --no-install-recommends to false, but if set to True it
would not enforce --install-recommends. It should not be assumed that
apt will install the recommends packages, since that can be disabled
globally.

https://github.com/saltstack/salt/issues/35422
2016-08-12 17:40:08 -04:00
Michael Walton
3a6152b626 Pass saltenv to call to latest_version in list_upgrades function 2016-08-12 15:52:16 -04:00
Nicole Thomas
2ef596673f Provide links to the renderers in the template docs (#35406)
* Provide links to the renderers in the template docs

Follow-up for #35360, also references #35336

* Whitespace fix
2016-08-12 12:27:44 -06:00
Tim Egbert
f16a30786b Fixes consul.agent_service_register which was broken for registering
service checks.

The function "agent_service_register" in the consul.py module failed
to register service health checks and did not follow the consul.io
documentation for doing so. This patch fixes the code to successfully
register service checks, check for dict keys case-insensitive (because
the absense of keys with the correct case would fail silently), and
more closely follow the documentation at consul.io, see:

https://www.consul.io/docs/agent/http/agent.html#agent_service_register

Here is an example salt state for registering a service and a couple
of health checks, similar to the example in the consul.io documents:

example-service-registration:
  module.run:
    - name: consul.agent_service_register
    - consul_url: "http://localhost:8500"
    - kwargs:
        id: redis1
        name: "redis"
        tags: [master, v1]
        address: "127.0.0.1"
        port: 8000
        EnableTagOverride: false
        check:
          script: "/usr/local/bin/check_redis.py"
          http: "http://localhost:5000/health"
          interval: "15s"

NOTE: the saltstack documentation needs to be updated. It wasn't
correct anyway.
2016-08-12 11:07:16 -06:00
Thomas S Hatch
c7b9cdf01a Fix opts ref, I forgot that salt-ssh state.pkg uses opts magic 2016-08-12 09:58:04 -06:00
Mike Place
182d9a5bf8 Merge pull request #35383 from pablo-ruth/issue_19313
Issue 19313 / Add support of lvm thinpools
2016-08-12 21:47:26 +09:00