Commit Graph

24848 Commits

Author SHA1 Message Date
Forrest Alvarez
c8416f9b6d Updated the globbing doc with a link to compound matching, updated the compound matchin doc with another example, 2014-01-17 05:56:59 +00:00
Colton Myers
c9721bb19b Merge pull request #9785 from techhat/saltcloud
Shuffling data.extra stuff around
2014-01-16 12:47:32 -08:00
Joseph Hall
69d9fb2583 Shuffling data.extra stuff around 2014-01-16 13:42:58 -07:00
Thomas S Hatch
a4bb518163 Merge pull request #9763 from kiall/bugfix/rabbitmq-user-password
Ensure RabbitMQ state never leaves a user with a password of "None"
2014-01-16 11:41:55 -08:00
Thomas S Hatch
b6201e41fc Jail yumpkg behind a config option
The yum api is just too unstable for us to use this as the default
but we will keep it around jailed behind a minion config options
called yumpkg_provider
2014-01-16 12:20:13 -07:00
Kiall Mac Innes
5bbcf1d36f The RabbitMQ add user command requires a password, currently, we can pass
None (as in nil/null) in here, and the rabbitmq module will cast to the string "None".

Here, we ensure that when we're going to clear the password immediatly after creating
the account, we generate a random password. This ensures we don't have an account with
"None" as the password should salt or rabbitmq fail between creating the user, and
clearing the password.
2014-01-16 19:11:24 +00:00
Thomas S Hatch
ec60d677e0 Merge pull request #9780 from s0undt3ch/issues/9103-zmq-assert
Allow the ZMQ to deliver or drop the message before GC. Fixes #9103.
2014-01-16 10:07:05 -08:00
Thomas S Hatch
0cc41a4107 Merge pull request #9776 from pakdel/postgres_user.present
states.postgres_user manages user attributes
2014-01-16 10:05:24 -08:00
Thomas S Hatch
3084fc2629 Merge pull request #9775 from CSSCorp/develop
Re pattern fix and option/value delimiter fix
2014-01-16 10:04:01 -08:00
Thomas S Hatch
1a2355033d Merge pull request #9771 from SaveTheRbtz/minor-bugfixes
Minor bugfixes
2014-01-16 09:59:51 -08:00
Thomas S Hatch
460f4f029d Merge pull request #9766 from nateucar/develop
Fix bug #9740 to allow for multiple PIDs to be returned
2014-01-16 09:58:51 -08:00
Thomas S Hatch
6c144e003e Log to trace instead of print, @pwaller per #9752 2014-01-16 10:49:41 -07:00
Thomas S Hatch
aa3fa7c0ad Merge pull request #9752 from pwaller/patch-1
Small doc fix: don't teach people to silence ImportError
2014-01-16 09:48:36 -08:00
Thomas S Hatch
aaaa5552be Merge pull request #9756 from jacksontj/develop
Bringing yumpkg back!
2014-01-16 08:43:10 -08:00
Pedro Algarvio
272f9169ff Allow the ZMQ to deliver or drop the message before GC. Fixes #9103. 2014-01-16 15:51:05 +00:00
Joseph Hall
50e48f2b52 Merge pull request #9778 from s0undt3ch/develop
VT fixes
2014-01-16 07:26:27 -08:00
Pedro Algarvio
6daa55c069 Check for boolean values first. Fixes #9742.
Instead of raising `RuntimeError`, raise `TerminalException`.
2014-01-16 15:21:44 +00:00
Pedro Algarvio
c361079fd5 child_fd is not a file handle! 2014-01-16 15:20:12 +00:00
Amir Pakdel
421a6200bf Fixed pylint and unit test errors 2014-01-16 09:56:52 -05:00
Amir Pakdel
c9b0f5a7cf states.postgres_user manages user attributes
postgres_user.present will make sure that user attributes and password
are the same as what is passed as arguments.
Also, modules.postgres.user_list can return password hashes.
2014-01-16 08:31:47 -05:00
Akilesh
035662ef7a re patter fix 2014-01-16 18:17:20 +05:30
Akilesh
59764c64c2 Merge branch 'develop' of github.com:saltstack/salt into develop 2014-01-16 18:15:46 +05:30
Pedro Algarvio
2e9e3281cd Merge pull request #9737 from s0undt3ch/hotfix/testing-output-columns
Prepare the code to support passing the colums to use in output
2014-01-16 04:09:13 -08:00
Akilesh
bb5dd64224 remove space around delimiter 2014-01-16 17:03:06 +05:30
Akilesh
ff3627fba0 remove space around delimiter 2014-01-16 17:02:15 +05:30
Pedro Algarvio
71c4052fc5 Merge pull request #9769 from cvrebert/patch-1
fileserver/roots.py: rm unused import of `time` module
2014-01-16 00:24:20 -08:00
Alexey Ivanov
532cc4be55 master: fixed direct user query via getpwnam
Previously founduser was set but unused.
2014-01-15 21:45:12 -08:00
Alexey Ivanov
e4e05dbf7f master: more narrow scope for unmask
Previously umask could be left as 191 (0277) in some cases.

Though it still needs try/finally, but that's probably another problem
that should be fixed globally via context manager for all umask
changes, e.g.::

    with salt.utils.umask(191):
        do(stuff)
2014-01-15 21:40:33 -08:00
Chris Rebert
33f85a3f32 fileserver/roots.py: rm unused import of time module
************* Module salt.fileserver.roots
salt/fileserver/roots.py:11: [W0611(unused-import), ] Unused import time
2014-01-15 20:49:55 -08:00
Thomas Jackson
a998adb6fa Remove unecessary access 2014-01-15 17:50:13 -08:00
Erik Johnson
8fe57541ca Merge pull request #9764 from whiteinge/yum-refresh-db-fix
Change yum module to not nuke the package cache every state run
2014-01-15 15:23:35 -08:00
Seth House
3b8526fe59 Change yum module to not nuke the package cache every state run
This change mirrors the behavior in the apt module. Previous behavior of
nuking the package cache would cause yum to download ~30 MB of data for
each and every highstate run.
2014-01-15 16:18:33 -07:00
Nathan Rini
73a839d637 Fix bug to allow for multiple PIDs to be returned
Bug:
```
[root@pronghorn04 ~]# service salt-minion restart
Stopping salt-minion daemon:                               [  OK  ]
Starting salt-minion daemon: /etc/init.d/salt-minion: line 67: [: 22610:
unary operator expected
                                                           [  OK  ]
```

Traced bug:
```
++ pidof -c -o 21702 -o 21341 -o %PPID -x salt-minion
+ '[' 22610 7606 ']'
/etc/init.d/salt-minion: line 67: [: 22610: unary operator expected
```
2014-01-15 15:50:41 -07:00
Thomas S Hatch
5a5cecdd6e Add trace log to time master function calls 2014-01-15 15:38:45 -07:00
Thomas Jackson
70ccd564f6 Update grains (typo) and remove trailing whitepsace in yumpkg.py 2014-01-15 14:25:56 -08:00
Joseph Hall
712aa78c6d Merge pull request #9759 from s0undt3ch/develop
Some more VT fixes
2014-01-15 12:48:00 -08:00
Pedro Algarvio
3b1988faee Make PyLint happier. 2014-01-15 20:32:49 +00:00
Pedro Algarvio
685687ad81 Catch all VT spawnign errors.
Fix the logging call and try to catch any errors occurring while
spawning the VT.
2014-01-15 20:28:58 +00:00
Pedro Algarvio
08ba029cf0 Only try to set the terminal size if parent is a TTY 2014-01-15 20:25:09 +00:00
Joseph Hall
ca9b59fd93 Merge pull request #9757 from s0undt3ch/develop
Don't fail badly on setting VT screen size. Refs #9742.
2014-01-15 11:49:24 -08:00
Pedro Algarvio
3f5a3f62d0 Don't fail badly on setting VT screen size. Refs #9742.
We still need to be able to set the screen size within a multiprocessing
process.
2014-01-15 19:31:28 +00:00
Thomas Jackson
ec9740e229 Update grain to load only if you have the required binaries
Change yumpkg to only load on RHEL 6 releases
2014-01-15 10:55:48 -08:00
Thomas Jackson
fd9762c7ba Bringing yumpkg back!
This was moved off to salt-contrib due to some issues with SELinux. I've added in a grain for SELinux (as a bunch of other thinks may or may not work with it) and have made yumpkg the default for all redhat family OSs with selinux disabled (might want to change to non-enforcing, but we'll start out safe)
2014-01-15 10:31:57 -08:00
Pedro Algarvio
8ab6f46978 Merge pull request #9754 from Lothiraldan/bugfix/9718-git-numeric-tag
Make git state compatible with numeric revisions. Fix #9718
2014-01-15 09:21:45 -08:00
FELD Boris
43889c7d79 Add a test for git states support of numeric revision 2014-01-15 17:20:08 +01:00
FELD Boris
091a5515fe Make git state compatible with numeric tag. Fix #9718 2014-01-15 16:56:58 +01:00
Joseph Hall
e53e4a4afa Merge pull request #9753 from regilero/fix-mysql-unit-test
MySQL: fix unit test module db_exists check, error is in the test.
2014-01-15 07:22:21 -08:00
regilero
e778386f41 MySQL: fix unit test module db_exists check, error is in the test. 2014-01-15 15:59:37 +01:00
Peter Waller
054fccd3b7 Update index.rst
Fix a pet peeve of mine so that beginners don't repeat the mistake: silencing `ImportError` is evil since you don't know if it came because `dependency_that_sometimes_exists` is unavailable or the `dependency_that_sometimes_exists` tried to import something which was broken.

This can seriously hinder debugging.
2014-01-15 14:04:03 +00:00
Thomas S Hatch
f148582ecd Merge pull request #9747 from terminalmage/file_list_cache
Add file_lists cache support for gitfs
2014-01-14 18:26:31 -08:00