Commit Graph

7674 Commits

Author SHA1 Message Date
Jeff Schroeder
d830ade45e Momma sez, "global variables are THE DEVIL"!
In the SELinux salt module, the path of the SELinux filesystem was
cached in a global variable. Instead of using that, memoize a func
that looks up the directory.  Verify *all* of the commands this
module attempts to use are available before running them and having
it blow up. Finally, it moves things to using the standard with ...
try/except mantra for opening the enforce file. Should make things
cleaner
2012-11-11 15:07:00 -08:00
Jeff Schroeder
93039b7871 Add an outputter for grains.ls and a todo to the hosts module 2012-11-11 14:45:48 -08:00
Jeff Schroeder
2c40921d13 Merge branch 'develop' of github.com:saltstack/salt into random-module-updates
Conflicts:
	salt/modules/grub.py
2012-11-11 14:18:36 -08:00
Thomas S Hatch
1a6dc1db5b Merge pull request #2520 from bclermont/postgres_encrypted_password
fix ENCRYPTED usage on user creation
2012-11-11 09:37:39 -08:00
Thomas S Hatch
10df2c4cb5 Merge pull request #2519 from bclermont/overwrite_module_docstring
convert docstring into comment
2012-11-11 09:35:24 -08:00
Bruno Clermont
0e0b04617f fix ENCRYPTED usage on user creation 2012-11-11 22:50:49 +08:00
Bruno Clermont
80074918c0 convert docstring into comment. they probably overwrite the module top docstring. 2012-11-11 22:49:22 +08:00
Jeff Schroeder
290c72a5bb salt.modules.state: make cache file writes more robust
- Wrap open statements in try/except and with
    - Use variables for crazy os.path.joins(). It reads easier

salt.modules.ldap: Add a small todo for ldaps:// and ldapi://
2012-11-10 23:40:24 -08:00
Jeff Schroeder
5d38e271c2 salt.modules.linux_sysctl: make file reads/writes more robust
- Use the maxsplit parameter on all str.split() calls
    - Wrap all file access in try/except and with statements
2012-11-10 23:40:24 -08:00
Thomas S Hatch
5231d8ca9d Fix #923
This detects recursive requisites as the happen, since it was
proven difficult to do so within the verification
2012-11-11 00:23:11 -07:00
Jeff Schroeder
ff9ab11c03 mount module: Raise an exception when ldd isn't available in is_fuse_exec() 2012-11-10 22:52:34 -08:00
Jeff Schroeder
e01c3d52b1 salt.modules.mount: relatively major robustness cleanup
- Make is_fuse_exec() actually work and remove code from it
    - Wrap all open() calls in try/except and use a with statement
2012-11-10 22:49:30 -08:00
Thomas S Hatch
afe2279cf0 Fix #2377 2012-11-10 23:28:42 -07:00
Jeff Schroeder
c9aa9ad4c4 salt.modules.grub: Fix some silliness from my previous commit 2012-11-10 22:04:06 -08:00
Jeff Schroeder
48228fd91a salt.modules.grub: Fix some bugs and move from boot to grub
Since it makes sense to have separate grub/grub2, syslinux, and lilo
modules because things like conf keys will be TOTALLY different, move
the name from boot to grub.

Use a with statement for reading the config file and also wrap it all
up in a fancy try/except that raises CommandExecutionError on issue.
2012-11-10 21:52:49 -08:00
Jeff Schroeder
152f610e32 salt.utils.yum*: clean up __virtual__() to use os_family grain
Fixes #2294
2012-11-10 21:52:49 -08:00
Jeff Schroeder
a3109cd2ad salt.modules.grub: Fix some bugs and move from boot to grub
Since it makes sense to have separate grub/grub2, syslinux, and lilo
modules because things like conf keys will be TOTALLY different, move
the name from boot to grub.

Use a with statement for reading the config file and also wrap it all
up in a fancy try/except that raises CommandExecutionError on issue.
2012-11-10 21:49:46 -08:00
Jeff Schroeder
74767a6d33 salt.utils.yum*: clean up __virtual__() to use os_family grain
Fixes #2294
2012-11-10 21:34:10 -08:00
Thomas S Hatch
4afe355d87 Use often instead of must 2012-11-10 22:06:16 -07:00
Thomas S Hatch
084694a6ec Fix #2503 2012-11-10 20:53:09 -07:00
Thomas S Hatch
fa6aca4ea8 Fix #2513
This is embarasing, looks like the wrong backend function was being used
2012-11-10 20:49:58 -07:00
Thomas S Hatch
516a8e446e Merge pull request #2517 from techhat/openstack
Adding image_create, image_delete, image_show to openstack glance
2012-11-10 15:12:22 -08:00
Joseph Hall
37fc5a8b84 Adding image_create, image_delete, image_show to openstack glance 2012-11-10 15:05:54 -07:00
David Boucha
2b125f9941 Merge pull request #2516 from giantlock/develop
Doc fix for pull request #2505
2012-11-10 13:02:27 -08:00
Denis Generalov
5652b1f902 splited -> separated
Thanks @UtahDave
2012-11-11 00:59:02 +04:00
Denis Generalov
a423567efa Doc fix for pull request #2505 2012-11-11 00:48:04 +04:00
David Boucha
457e531d99 Merge pull request #2515 from bclermont/postgres_error
handle invalid output here too
2012-11-10 11:47:36 -08:00
Bruno Clermont
64821c63ae handle invalid output here too 2012-11-11 03:45:02 +08:00
David Boucha
cefce3c3b7 Merge pull request #2514 from bclermont/postgres_error
handle psql error
2012-11-10 11:38:10 -08:00
Bruno Clermont
4e34081bb4 handle psql error 2012-11-11 03:33:31 +08:00
Sean Channel
7f673796e6 no depend on libjs-sphinxdoc 2012-11-10 11:18:10 -08:00
David Boucha
d2a629e063 Merge pull request #2511 from UtahDave/develop
use format instead of string join.
2012-11-10 10:52:44 -08:00
David Boucha
39ac74cac0 use format instead of string join.
per s0undtech's suggestion. Much cleaner
2012-11-10 10:00:10 -07:00
Pedro Algarvio
63f9e9448e Merge pull request #2510 from s0undt3ch/develop
String join has only one argument, a list to join.
2012-11-10 04:06:06 -08:00
Pedro Algarvio
4cc2f0059e String join has only one argument, a list to join. 2012-11-10 12:04:34 +00:00
Sean Channel
422244cd84 remove sphinx version 2012-11-10 00:03:53 -08:00
Sean Channel
d13dbf0fc2 spec. minimum sphinx version 2012-11-09 23:48:00 -08:00
Sean Channel
cfc44ee517 specify sphinx version for builds 2012-11-09 23:16:31 -08:00
Thomas S Hatch
592ab0b73a Change the lookup index to 0 2012-11-09 23:56:06 -07:00
Thomas S Hatch
9a9e8241f0 Add pillar.raw function to verify that the __pilar__ is loaded 2012-11-09 23:44:48 -07:00
Thomas S Hatch
9031c606cb Move pillar generation in minion to repair __pillar__ bug 2012-11-09 23:06:22 -07:00
Thomas S Hatch
bf98db83bb Rename the returner module to ret 2012-11-09 22:17:54 -07:00
Thomas S Hatch
20b32abab1 Another reference to id in the grains 2012-11-09 22:02:11 -07:00
Thomas S Hatch
592210afa4 Merge pull request #2507 from UtahDave/minion_dns
Fixes #2064 Add option for minion to retry dns resolution
2012-11-09 20:55:01 -08:00
Thomas S Hatch
3e09839529 Run get on the if value to repair master minion 2012-11-09 21:41:14 -07:00
saltstack
0acbde29ac Move the dns retry loop to config.py 2012-11-09 21:10:59 -07:00
David Boucha
d4f7f5cac5 Add option to have minion retry dns
If name resolution fails when the minion starts, allow the minion
to retry dns resolution after a configurable number of seconds.
Defaults to 30 seconds.

Add retry_dns option to minion config.
2012-11-09 21:10:59 -07:00
Sean Channel
9049ef6de9 Merge pull request #2506 from seanchannel/develop
generate HTML doc package also
2012-11-09 15:39:13 -08:00
Sean Channel
8c5675fb88 generate HTML doc package also 2012-11-09 15:28:46 -08:00
Thomas S Hatch
07a895646d Merge pull request #2505 from giantlock/develop
Feature for file module
2012-11-09 14:57:50 -08:00