Commit Graph

58943 Commits

Author SHA1 Message Date
Mike Place
0583575f82 Merge pull request #28632 from terminalmage/pkgbuild-fixes
Fixes/improvements to pkgbuild state/modules
2015-11-06 13:48:07 -07:00
Mike Place
b82abadd9b Merge pull request #28658 from techhat/issue28591
Remove _pkgdb_fun() references
2015-11-06 13:25:59 -07:00
Mike Place
e59d160120 Merge pull request #28653 from rallytime/boto_rds_engine_docs
Provide possible parameters for boto_rds.present engine values
2015-11-06 11:58:35 -07:00
Joseph Hall
4f2b175467 Remove _pkgdb_fun() references 2015-11-06 11:57:52 -07:00
Mike Place
911761d8bc Merge pull request #28649 from bdrung/2015.8
Fix OS related grains on Debian
2015-11-06 11:25:46 -07:00
Mike Place
7531bc7334 Merge pull request #28646 from rallytime/bp-28614
Back-port #28614 to 2015.8
2015-11-06 11:19:08 -07:00
Nicole Thomas
a829120746 Merge pull request #28647 from rallytime/bp-28624
Back-port #28624 to 2015.8
2015-11-06 11:18:32 -07:00
Nicole Thomas
52d70c986d Merge pull request #28648 from rallytime/merge-2015.8
Merge branch '2015.5' into '2015.8'
2015-11-06 10:46:59 -07:00
Erik Johnson
59f31b4dca Initialize logging in pkgbuild state 2015-11-06 11:30:29 -06:00
rallytime
7b30d7e002 Provide possible parameters for boto_rds.present engine values
Refs #28470
2015-11-06 10:23:19 -07:00
Mike Place
4722e41787 Merge pull request #28638 from alprs/saltssh-handle_ssh_errors
Salt-SSH: Return more concise error when SSH command fails
2015-11-06 09:54:46 -07:00
Mike Place
e72e60d4b4 Merge pull request #28644 from pass-by-value/update_versionchanged
Make sure versionchanged is correct
2015-11-06 09:53:31 -07:00
rallytime
81c4974fde Merge branch '2015.5' into '2015.8'
Conflicts:
  - salt/modules/saltutil.py
2015-11-06 09:18:22 -07:00
Benjamin Drung
92a17d4cae Fix OS related grains on Debian
On Debian 8 (jessie), salt report these grains when lsb-release is
installed:

 * os: Debian
 * os_family: Debian
 * osarch: amd64
 * oscodename: jessie
 * osfinger: Debian-8
 * osfullname: Debian
 * osmajorrelease: 8
 * osrelease: 8.2
 * osrelease_info: [8, 2]

When lsb-release is not installed, these grains are reported

 * os: Debian GNU
 * os_family: Debian GNU
 * osarch: x86_64
 * oscodename: Debian GNU
 * osfullname: Debian GNU
 * osrelease: 8
 * osrelease_info: [8]

The previous salt 2015.5.3 release report these grains when
lsb-release is not installed:

 * os: Debian
 * os_family: Debian
 * osarch: amd64
 * oscodename:
 * osfullname: Debian GNU/Linux
 * osrelease: 8.2
 * osrelease_info: [8, 2]

If lsb-release is not installed, /etc/os-release will be queried to
retrieve the operating system information. The regular expression that
parses /etc/os-release is too strict and matches only "Debian GNU" of
"Debian GNU/Linux" from the NAME field.

So follow the os-release file format specification and accept all valid
UTF-8 characters. Also do not convert the parameter names to lower-case
(for matching) since the specification defines all parameters in capital
letters.

Then salt will report these grains without lsb-release installed:

 * os: Debian
 * os_family: Debian
 * osarch: amd64
 * oscodename: Debian GNU/Linux 8 (jessie)
 * osfullname: Debian GNU/Linux
 * osrelease: 8
 * osrelease_info: [8]
2015-11-06 17:16:53 +01:00
Keith
3b59cfae5f Added reasoning why boto_cloudwatch.py cannot be loaded. 2015-11-06 09:08:13 -07:00
Sergey Kizunov
034cf28e57 Fixed memory leak in AsyncTCPReqChannel
`cls.instance_map` was growing unbounded. This was because
`io_loop.close()` was invoked before `stream.close()`. The stategy used
to fix this issue was discussed in pull request #28530 and can be
summarized as follows:

The `close()` method on the async object will be called if it exists.
This will be called before the `io_loop.close()` to give the async object
the opportunity to close its stream. The del of the async object will
continue to happen after io_loop.close(). This is to maintain the fix
from pull request #27343.

Per file change details:
salt/utils/async.py:
- Implemented the close logic described above.

salt/transport/ipc.py:
- Ensured that `close()` may be invoked more than once safely.
- In IPCServer, `self.stream` was never actually used. Removed
references to it to avoid confusion.

salt/transport/zeromq.py:
- Ensured that `close()` may be invoked more than once safely.

salt/transport/tcp.py:
- Ensured that `close()` may be invoked more than once safely.
- Changed `destroy()` methods to `close()` methods since they involved
a stream that should be closed before `io_loop.close()`.
- In SaltMessageClient, added more checks for `self._closing`. This
makes exit cleaner by not attempting to reconnect while closing.
- Removed the code associate with pull request #28113. This code is
no longer needed now that the stream is closed before the io_loop.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2015-11-06 09:05:30 -07:00
Aditya Kulkarni
f4c297e794 Make sure versionchanged is correct 2015-11-06 10:38:48 -05:00
Andreas Lutro
5419b98363 return concise error when ssh fails 2015-11-06 14:25:00 +01:00
Erik Johnson
af0b2c4a33 Fix false-positives for pkgbuild.built state
No checking was being done when packages failed to build, the state
would just return a True result. This adds a post-build check to see if
any of the desired packages are not present, and returns a False result
if the desired packages are not present.
2015-11-06 01:53:39 -06:00
Erik Johnson
d83e779eac rpmbuild: Change return data to include a list of packages built
Additionally, this fixes some conditions where temp dirs are not cleaned
up when builds fail, and writes the build logs under
/var/log/salt/pkgbuild (configurable with a new "log_dir" parameter),
and includes the paths of the log files in the return dict rather than
including the entire contents of the log file in the changes dict. This
will make the state results much easier to read.
2015-11-06 01:53:39 -06:00
Erik Johnson
03d9321379 debbuild: Change return data to include a list of packages built 2015-11-06 01:53:39 -06:00
Mike Place
cf79722260 Merge pull request #28615 from The-Loeki/patch-1
Fixes to FreeBSD pkg
2015-11-05 16:43:33 -07:00
Pedro Algarvio
64a20228c6 Merge pull request #28617 from cachedout/umask_module_sync
Set restrictive umask on module sync
2015-11-05 23:43:28 +00:00
Pedro Algarvio
9196c57e3f Merge pull request #28613 from cachedout/py26_method_deepcopy
Add facility to deepcopy bound methods in Py2.6 and apply to grains
2015-11-05 23:28:50 +00:00
Mike Place
0935fcf4fc Spelling is hard 2015-11-05 16:21:37 -07:00
Joseph Hall
065f8c7fb3 Merge pull request #28622 from gravyboat/update_puppet_module_docs
Update puppet module wording
2015-11-05 13:34:07 -07:00
Forrest Alvarez
4ea28bed30 Update puppet module wording 2015-11-05 12:25:45 -08:00
Ronald van Zantvoort
a9ee178e0d rehash is a shell builtin, needs cmd.shell to work 2015-11-05 20:08:34 +01:00
Mike Place
2032d61e68 Merge pull request #28612 from rallytime/fix-28470
Remove unsupported storage_type argument for parity with boto_rds module
2015-11-05 12:07:42 -07:00
Mike Place
227792e158 Set restrictive umask on module sync
Fixes #28398
2015-11-05 12:04:24 -07:00
Ronald van Zantvoort
17f3852bdd environ.get has no output_loglevel
commit 012a69fa04 changed this call from `cmd.run` to `environ.get`, but `output_loglevel` remained, leading to stacktraces
2015-11-05 20:03:20 +01:00
Mike Place
d81330ac7f Merge pull request #28611 from rallytime/vmware-utils-fix
[2015.8] Be explicit about salt.utils.vmware function calls
2015-11-05 11:43:36 -07:00
Mike Place
35dbca24e7 Merge pull request #28610 from pass-by-value/lxc_config_additions
Lxc config additions
2015-11-05 11:43:05 -07:00
Mike Place
2435b45195 Move to compat module to avoid namespace collisions in salt.utils 2015-11-05 11:41:03 -07:00
Mike Place
f519661875 Add facility to deepcopy bound methods in Py2.6 and apply to grains
In #28587, we failed to account for the inability of Py2.6 to deepcopy bound methods. This provides a workaround for that.
2015-11-05 10:41:20 -07:00
rallytime
8fd26a5488 Remove unsupported storage_type argument for parity with boto_rds module
Fixes #28470
2015-11-05 10:36:57 -07:00
rallytime
f46547eb56 [2015.8] Be explicit about salt.utils.vmware function calls
and avoid namespacing
2015-11-05 10:16:26 -07:00
Aditya Kulkarni
83193641ca Add doc about cloud lxc options 2015-11-05 12:15:30 -05:00
Aditya Kulkarni
8977ddad59 Add argument to init 2015-11-05 11:17:50 -05:00
Aditya Kulkarni
2be3f8b5bb Add bootstrap delay and systemd check options 2015-11-05 10:52:40 -05:00
Mike Place
464aa6b062 Merge pull request #28602 from eyj/fix-28601
Allow setting of custom dimensions in asg alarm specification
2015-11-05 08:00:24 -07:00
Nicole Thomas
572d95b3e1 Merge pull request #28596 from rallytime/merge-2015.8
Merge branch '2015.5' into '2015.8'
2015-11-05 07:25:09 -07:00
Nasenbaer
963ad4250a Allow setting of custom dimensions in asg alarm specification 2015-11-05 12:24:55 +01:00
rallytime
eec9d69387 Merge branch '2015.5' into '2015.8'
Conflicts:
	salt/modules/virtualenv_mod.py
	salt/states/file.py
	tests/integration/__init__.py
2015-11-04 15:52:59 -07:00
Mike Place
73c33e0b4a Merge pull request #28593 from blueyed/fix-typo-preserve
doc: fix typo with salt.states.file: s/preseve/preserve/
2015-11-04 15:33:25 -07:00
Daniel Hahler
eaf27d6ee7 doc: fix typo with salt.states.file: s/preseve/preserve/ 2015-11-04 23:29:37 +01:00
Mike Place
8b483ee354 Merge pull request #28578 from twangboy/fix_windows_installer_script
Fixed the script... something got broke...
2015-11-04 15:00:18 -07:00
Mike Place
7ca7ed4b37 Merge pull request #28579 from jfindlay/virt_ret
fix __virtual__ returns: tls,uptime mods
2015-11-04 15:00:02 -07:00
Mike Place
ae764c6b5c Merge pull request #28584 from rallytime/fix-27574
If AssociatePublicIpAddress is set to True, don't auto-assign eip.
2015-11-04 14:59:38 -07:00
Mike Place
231cdd4316 Merge pull request #28576 from jacksontj/transport
Only encode the zmq message once
2015-11-04 14:59:20 -07:00