Commit Graph

8061 Commits

Author SHA1 Message Date
Pedro Algarvio
495e7244c8 Fix pip requirements file permissions in case of non root runas.
* In `salt.modules.pip.install()` we first check if file is already cached(in case being called from `salt.states.virtualenv.managed()`), if it's not, then try to cache it.
* If requirements and `runas` is passed, since  `salt.fileclient`'s cache needs to be private, we create a temporary file with the contents of the requirements file, owned by the `runas` user, which then gets passed to the pip command.
* Always delete the user, even if test(`integration.states.virtualenv.VirtualenvTest.test_issue_1959_virtualenv_runas`) fails.
* Minor PEP-8.
2012-11-21 09:08:22 +00:00
Pedro Algarvio
eda67f0110 Show salt comment on assertTrue(ret['result']) failed calls.
* Created a mix which tests for the required assertion(True/False) and in case of a failure, shows salt comment kwarg in the raised assertion error so we know what was the original(salt's) failure.
2012-11-20 16:09:57 +00:00
Pedro Algarvio
f6abd10ed9 Support logging.StreamHandler under python 2.6 which does not have a stream kwarg. 2012-11-20 15:52:20 +00:00
Pedro Algarvio
4fdd8f4b8b Make destructiveTest decorated tests work when passed with -n to runtests. 2012-11-20 12:22:23 +00:00
Thomas S Hatch
f9f0200eca Add docs on executing the overstate 2012-11-19 23:28:57 -07:00
Thomas S Hatch
12fce1d79c Add overstate docs 2012-11-19 22:51:19 -07:00
Thomas S Hatch
8c0f29c4a2 Change show_over to use the overstate outputter 2012-11-19 21:01:25 -07:00
Thomas S Hatch
dfc90286a9 Merge pull request #2635 from s0undt3ch/features/use-py27-subprocess
Features/use py27 subprocess
2012-11-19 19:13:46 -08:00
Thomas S Hatch
b5ae60c29a Fix #2644 2012-11-19 20:03:43 -07:00
Thomas S Hatch
1e8a47afe3 Make requisites fail correctly 2012-11-19 16:46:29 -07:00
Thomas S Hatch
5f67934da0 Make stage outputter a little cleaner 2012-11-19 16:45:53 -07:00
Thomas S Hatch
16c68df922 update state runner to use overstate outputter 2012-11-19 16:13:31 -07:00
Thomas S Hatch
36af8c9800 Add outputter to display overstate stages 2012-11-19 16:12:54 -07:00
Thomas S Hatch
c3360bbc43 Merge pull request #2641 from jhutchins/develop
Develop
2012-11-19 14:59:15 -08:00
Jeff Hutchins
f779fc268c Speed up version list.
We should not have to list and parse ALL the packages on a system
to get the version for a single package.
2012-11-19 15:53:43 -07:00
Jeff Hutchins
a8775aef2a Fix typo that breaks pkg.available_version 2012-11-19 15:52:27 -07:00
Thomas S Hatch
93ff73ab62 clean up overstate output data 2012-11-19 15:41:18 -07:00
Thomas S Hatch
6308be7857 Clean up highstate output in state.over runner 2012-11-19 15:40:37 -07:00
Thomas S Hatch
669b6ebda0 use iter method in the state runner 2012-11-19 14:34:37 -07:00
Thomas S Hatch
989acbed86 Add stages_iter to overstate object 2012-11-19 14:32:39 -07:00
Thomas S Hatch
2c1dd66aec minor comment clean up 2012-11-19 14:22:17 -07:00
Pedro Algarvio
bd632945d6 Get a log instance setup before using it. PEP-8. 2012-11-19 16:21:49 +00:00
Pedro Algarvio
3121666c0e Merge pull request #2634 from axiom/develop-fix-documentation
Fix documentation of network runner
2012-11-19 05:05:56 -08:00
Johannes Martinsson
549184dcec Fix documentation of network runner
The documentation of the 'wollist' command in the network runner were
missing the command name in the example invocations.
2012-11-19 13:16:37 +01:00
Thomas S Hatch
fcfa0b9622 Print and return the correct data 2012-11-19 00:11:19 -07:00
Thomas S Hatch
025c7abd11 Add _check_result method to overstate 2012-11-19 00:08:30 -07:00
Thomas S Hatch
93d76ed682 Fix oversight in cmd_iter seq 2012-11-18 23:44:44 -07:00
Thomas S Hatch
6b55e5bdf3 minor fixes to overstate module 2012-11-18 23:39:10 -07:00
Thomas S Hatch
24b802d11d Add overstate runner, ready for initial testing 2012-11-18 22:39:40 -07:00
Thomas S Hatch
1f4c168733 Read in overstate from class argument 2012-11-18 22:26:37 -07:00
Thomas S Hatch
aab3ce9f92 Add highstate support tot he over state 2012-11-18 22:19:04 -07:00
Thomas S Hatch
f8e951309c Merge pull request #2630 from kjkuan/develop
Update docs about YAML
2012-11-18 20:04:54 -08:00
Thomas S Hatch
4cfe63afd4 Merge pull request #2628 from mrud/mru/spelling
Fix spelling mistakes reported by lintian
2012-11-18 20:02:09 -08:00
Thomas S Hatch
c2c5e53de7 Merge pull request #2627 from FireHost/add_grains_sanitize
Add grains sanitize
2012-11-18 20:00:44 -08:00
Jack Kuan
190f4bd828 Fix a case when a single shorthand state is declared without arguments.
Also, now automatically adds the name argument, if one is not provided,
for states declared under a dot-prefixed state id.
2012-11-18 22:02:24 -05:00
Jack Kuan
af93e5f2b4 Merge branch 'develop' of github.com:saltstack/salt into develop 2012-11-18 20:23:12 -05:00
Jack Kuan
a284732328 Update docs about troubleshooting YAML. 2012-11-18 20:22:41 -05:00
Pedro Algarvio
09eb92ad8a Only import what's needed, cleans up code. 2012-11-19 01:21:06 +00:00
Ulrich Dangel
d46aa4c486 Fix spelling mistakes reported by lintian 2012-11-19 01:14:21 +00:00
Pedro Algarvio
6a6f256472 Make it, actually work, on python 2.6 2012-11-19 01:13:29 +00:00
Pedro Algarvio
c6dcdbe6dc Hardcore approach to travis-ci failures under python 2.6.
* We basically copied subprocess from python 2.7 and import that one instead of the python 2.6 subprocess to run the tests. Since we import it under a different name, there should be no issues with the remaining of salt's source importing the regular subprocess module.
2012-11-18 23:49:37 +00:00
Pedro Algarvio
a6584f5180 Add python 2.7 subprocess module. 2012-11-18 23:24:55 +00:00
Aaron Tygart
4028672c44 Add sanitization to nodename and localhost grains 2012-11-18 17:05:39 -06:00
Thomas S Hatch
b118b97938 Merge pull request #2626 from FireHost/fix_virtualenv_requirements
Fix virtualenv requirements
2012-11-18 14:32:24 -08:00
Thomas S Hatch
1ac4c98672 Merge pull request #2625 from archtaku/develop
Add multiple package sources for apt
2012-11-18 14:31:00 -08:00
Aaron Tygart
2af5753549 Add environment to virtual requirements file cache 2012-11-18 15:48:43 -06:00
Erik Johnson
f92ab43a16 update docstring 2012-11-18 13:51:57 -06:00
Erik Johnson
884efd11cb Add multiple package sources for apt
Also log anything sent to stderr when apt-get/dpkg is run. Added this
additional logging to other pkg providers as well.
2012-11-18 13:25:59 -06:00
Pedro Algarvio
863bc7ef37 Add missing import. 2012-11-18 19:06:17 +00:00
Pedro Algarvio
c5fe83272f Even more open() to salt.utils.fopen(). 2012-11-18 18:57:10 +00:00