Commit Graph

9004 Commits

Author SHA1 Message Date
Pedro Algarvio
0255c8d583 Switch self.event.destroy() with del(self.event) which should be the same. 2012-12-27 09:07:20 +00:00
Pedro Algarvio
74156cff72 Fix some "NameErrors" introduced when fixing #3015. Fixes #3032.
* Additionally also terminate worker processes on `.destroy()`.
2012-12-27 08:57:47 +00:00
Jeff Schroeder
04f7f1913d modules.useradd: mark salt._compat.callable as _callable 2012-12-26 22:14:18 -06:00
Jeff Schroeder
8318ee6a71 modules.useradd: use absolute path for copy.deepcopy
Otherwise, user.deepcopy shows up as an available function when
looking at the module docs for the user module via salt-call user -d
2012-12-26 22:11:47 -06:00
Jeff Schroeder
d1c4b126bd Merge pull request #3026 from archtaku/docs
hacking docs: fix mixed up info on pid files
2012-12-26 19:03:55 -08:00
Erik Johnson
9a878c7400 Update hacking docs 2012-12-26 20:44:15 -06:00
Thomas S Hatch
2e81ce83a1 Merge pull request #3024 from s0undt3ch/issues/3015
Fix #3015
2012-12-26 09:33:39 -08:00
Thomas S Hatch
1049712c24 Merge pull request #3023 from s0undt3ch/issues/3016
Only setup the console logger if we're not daemonizing. Fixes #3016.
2012-12-26 09:31:09 -08:00
Pedro Algarvio
4cab256fb5 Don't touch closed ZMQ socket's and/or context's. Fixes #3015.
* On some occasions it seems that `salt.utils.event.SaltEvent.destroy()` is called twice and the errors exhibited on #3015 would show up on the second time we would try to set the linger socket option since that socket was already closed. So, even though on some parts of code which I changed in this commit weren't giving any problems, I ended up using the same recipe all around, if the socket is open, set the linger option and close it, plus, if open, also close the context.
2012-12-26 14:58:07 +00:00
Pedro Algarvio
c87f035bef Convert tabs to spaces. Refs #3015. 2012-12-26 12:55:51 +00:00
Pedro Algarvio
9ce221cd05 Only setup the console logger if we're not daemonizing. Fixes #3016. 2012-12-26 12:48:33 +00:00
Thomas S Hatch
2b96dfcba0 Merge pull request #3020 from archtaku/issue3008
Remove platform-specific code from pkg state
2012-12-25 23:10:52 -08:00
Erik Johnson
e93aab98e6 Remove platform-specific code from pkg state
Platform-specific code from #3019 has been moved to pkg_resource module.
This code may evolve a bit down the road. Presently it will only check
syntax if the package is coming from the portage tree via ebuild.
However, future support for entropy (binary pkg manager), as well as
expanding syntax checking for binary package files should be considered
TODO items.
2012-12-26 00:34:55 -06:00
Thomas S Hatch
a431b27d91 Merge pull request #3019 from archtaku/issue3008
Force Gentoo-based distros to use full pkg name
2012-12-25 21:19:42 -08:00
Thomas S Hatch
e06ad3d3ba Merge pull request #3018 from techhat/develop
Add basic Linux LVM support
2012-12-25 21:18:52 -08:00
Thomas S Hatch
fbfd30b230 Merge pull request #3013 from whiteinge/sysdoc-runner
Added sys.doc runner
2012-12-25 20:55:24 -08:00
Thomas S Hatch
54268e780a Merge pull request #3011 from torhve/develop
Fix problem with attribute checks when data looks like:
2012-12-25 20:54:17 -08:00
Joseph Hall
8bce0bbbac Don't need re 2012-12-25 11:34:36 -05:00
Joseph Hall
daba5cef48 Add basic Linux LVM support 2012-12-25 11:30:24 -05:00
Jeff Schroeder
e3227f2914 Use the correct path to ZMQBaseError for older zmq versions
Fixes a FTBFS with older zmq I accidentally introduced.
2012-12-25 10:10:17 -06:00
Jeff Schroeder
7b27e65f42 Merge pull request #3014 from FireHost/fix_debian_grains_again
Fix Debian grains again
2012-12-24 09:56:04 -08:00
Aaron Tygart
00b6988405 Revert unnecessary change from 826e7e4d66.
* Add documentation for logic of _OS_NAME_MAP and _OS_FAMILY_MAP
2012-12-24 10:58:23 -06:00
Aaron Tygart
5544bb8182 Add 'debiangnu/' to the os name map 2012-12-24 10:52:22 -06:00
Tor Hveem
7a4469ae56 Add "" around values, so yaml doesn't serialize to datetime and etc. 2012-12-24 11:51:51 +01:00
Tor Hveem
0003559f5a Remove debugging that got left in 2012-12-24 11:46:00 +01:00
Seth House
cecf2a457b Added sys.doc runner
Fixes #2954
2012-12-24 02:59:07 -07:00
Thomas S Hatch
cac0257fb7 Merge pull request #3012 from dtucny/develop
Add configurable tcp keepalive support enabled by default
2012-12-23 21:08:18 -08:00
Thomas S Hatch
45ac6e3cec Merge pull request #3010 from archtaku/pkgfix
Fix pkg state regression
2012-12-23 20:54:34 -08:00
Thomas S Hatch
aa63be917a Merge pull request #3009 from tchap/ebuild-package-names
Document the right ebuild package name format
2012-12-23 20:53:44 -08:00
D Tucny
d63b0466cf correct documentation in sample config for TCP keepalive option 2012-12-24 10:57:02 +08:00
D Tucny
6ad642a748 Add configurable tcp keepalive support enabled by default 2012-12-24 10:45:02 +08:00
Tor Hveem
b4c361c00a Add parsing for qemu-img snapshot list 2012-12-24 00:28:24 +01:00
Erik Johnson
03cfa3601d Force Gentoo-based distros to use full pkg name
Do not proceed unless package names are provided using the
category/pkgname format. For packages submitted without the category
name, offer suggestions from the portage tree.
2012-12-23 17:19:48 -06:00
Tor Hveem
a842e7c781 Bugfix problems with spaces in filenames
Also disable shell=True for security purposes
2012-12-23 23:17:51 +01:00
Tor Hveem
ce34e90181 Fix problem with attribute checks when data looks like:
"[(u'bus', u'ide'), (u'dev', u'hdb')]"
2012-12-23 23:10:08 +01:00
Erik Johnson
d1abcf7cf9 Fix pkg state regression
acd949c and 0b5ce09 broke the pkg state, such that for single pkg
installs (i.e. no "pkgs" or "sources"), if the version arg is not
provided, a package will always be interpreted by the pkg state as being
installed, and the package will never be installed. This commit fixes
that regression.
2012-12-23 12:02:44 -06:00
Ondrej Kupka
81811a9ee6 Document the right ebuild package name format
It was discovered that pkg module for Gentoo-based systems does not work
as expected if the full package name (including the category) is not
specified. This is not documented anywhere, so this should give users
better changes to know about it.
Check issue #3008 on GitHub to know about further development.
2012-12-23 14:25:50 +01:00
Jeff Schroeder
45be9c2a54 modules.brew: make __virtual__() properly return False 2012-12-22 10:38:07 -06:00
Jeff Schroeder
82848767db Fix a bug in the loader
Several modules where __virtual__() were returning None were being
improperly loaded. Any __virtual__() that returns a string will
never evaluate to False when cast to a bool() so "if not virtual"
will do the right thing as we get more and more modules that might
not necessarily be written up to standard (until we can fix them)
2012-12-22 10:38:03 -06:00
Thomas S Hatch
84d9a31a36 Merge pull request #3004 from SEJeff/fix-unit-tests
Fix unit tests
2012-12-22 08:25:15 -08:00
Jeff Schroeder
3756a835ad Merge pull request #3006 from tf198/develop
Updated comments for root_dir
2012-12-21 22:14:24 -08:00
Tris Forster
3b0069db39 Updated config comments to reflect 8d723cd (pidfile / root_dir) 2012-12-22 17:03:19 +11:00
Jeff Schroeder
7dd0bbe74c Merge pull request #3003 from archtaku/docs
Provider doc enhancements
2012-12-21 21:44:16 -08:00
Jeff Schroeder
7a45b19da0 Merge pull request #3002 from archtaku/develop
Minor correction to comments
2012-12-21 21:42:23 -08:00
Jeff Schroeder
8b74360493 Skip the git state tests if a dns lookup to github.com fails
This is the quickest clever thing I could think of while running the
unit tests offline in the car during a long road trip.
2012-12-21 23:32:11 -06:00
Jeff Schroeder
5b60edcfb6 Don't nuke the tests because event self.destroy() always blows up 2012-12-21 23:32:02 -06:00
Erik Johnson
db13bb7d01 Minor correction to comments
The __virtual__ function in freebsdpkg.py has a comment that refers to
Arch Linux. Corrected this to "FreeBSD".
2012-12-21 21:44:43 -06:00
Erik Johnson
92ab669a1f Provider doc enhancements
1) Added an example for the minion config option "providers".

2) Cleaned up line widths on solaris install instructions, and added
   information on how to use pkgutil as the default package provider.

3) Since systemd is the default provider for Arch Linux now, I corrected
   the information in the "State Providers" page so that the example of
   overriding the service provider reflects the current state of the
   codebase.
2012-12-21 21:40:01 -06:00
Jeff Schroeder
4da4dc25a1 Skip the virtualenv state test if virtualenv isn't installed 2012-12-21 21:35:58 -06:00
Thomas S Hatch
edf576394c Merge pull request #3001 from archtaku/develop
Make pkgutil.py import as pkgutil instead of pkg
2012-12-21 17:05:53 -08:00