Commit Graph

3190 Commits

Author SHA1 Message Date
Jeff Schroeder
98a482e611 Fix a typo in the loader refactor pointed out by @archme 2012-03-05 06:53:58 -08:00
Thomas S Hatch
f8d3bf8fd1 Merge pull request #838 from blast-hardcheese/develop
Modified order directories are checked in salt/loader.py
2012-03-04 22:29:54 -08:00
Thomas S Hatch
77e813c81e Add grain_pcre to compound matcher, use R@os:Arch.* 2012-03-04 23:01:46 -07:00
blast_hardcheese
c752116fd7 Altering render to use _create_loader 2012-03-04 21:54:27 -08:00
Thomas S Hatch
4ee6ac13b4 Add faulty returns for get_file 2012-03-04 22:36:46 -07:00
Thomas S Hatch
3e5bc4ff5a Add state_top to the minion config 2012-03-04 22:15:06 -07:00
Thomas S Hatch
221e068057 Add the file_client option to the defeault config 2012-03-04 22:01:08 -07:00
Thomas S Hatch
fd792c1caa Add file directory settings to the minion config template 2012-03-04 21:59:39 -07:00
Thomas S Hatch
c03da4206f Add local file client opts to minion 2012-03-04 21:49:20 -07:00
blast_hardcheese
1752715a9e Reordering directories in _create_loader
The goal of this commit (not sure if I achieved it) was for
user-specified _modules to override builtins.
2012-03-04 18:42:36 -08:00
Thomas S Hatch
66611b9dcf Merge pull request #833 from dcolish/develop
Fix dynamic reloading of grains
2012-03-04 13:33:53 -08:00
Dan Colish
0c907dfc7a Use a property to recalculate the master_pub uri.
This should allow dns updates for the master name to be used when
 reconnecting
2012-03-04 11:35:30 -08:00
Dan Colish
17c91adae7 Refactor common code in state.module_refresh 2012-03-04 11:25:40 -08:00
Dan Colish
15accc5bec Fix dynamic reloading of grains 2012-03-04 11:07:35 -08:00
Thomas S Hatch
342b60e18a Merge pull request #831 from dcolish/develop
Use str.format for template string
2012-03-04 10:48:36 -08:00
Dan Colish
d458954e72 Use str.format for template string 2012-03-04 10:45:53 -08:00
Thomas S Hatch
63de41339a Merge pull request #830 from dcolish/develop
Quote state which caused error in messages for clarity
2012-03-04 10:44:50 -08:00
Dan Colish
56441ddda4 Quote state which caused error in messages for clarity 2012-03-04 10:40:54 -08:00
Thomas S Hatch
1a3892b09f Merge pull request #829 from dcolish/develop
let minion run as non-root, use more with statements
2012-03-04 10:30:08 -08:00
Dan Colish
fefcc60e5d Merge with upstream develop 2012-03-04 09:33:53 -08:00
Dan Colish
1bdd2bad6b Use with statements when working with files in states.file 2012-03-04 09:28:43 -08:00
Dan Colish
4fa502bc59 Use u+rwx for cachedir makedirs.
This allows the use of salt when run as a non-root user on a minion.
2012-03-04 09:26:42 -08:00
Thomas S Hatch
a76314a0e8 Merge pull request #826 from dcolish/develop
Refactor of yaml file loading, added some with statements for file handling
2012-03-03 23:16:47 -08:00
Thomas S Hatch
7516374da7 update jinja utils module to use new fileclient interface 2012-03-04 00:11:24 -07:00
Thomas S Hatch
a4dedc2f0a change cp module to use fileclient interface 2012-03-04 00:10:10 -07:00
Thomas S Hatch
519b1ff251 Change state to use new fileclient interface 2012-03-04 00:09:34 -07:00
Thomas S Hatch
f31ecd781f remove FileClient from minion.py 2012-03-04 00:09:03 -07:00
Dan Colish
912e17c116 Merge branch 'develop' of git://github.com/saltstack/salt into develop 2012-03-03 23:07:52 -08:00
Thomas S Hatch
0c232954d3 Add get_file_client to return uniform file client based on opts 2012-03-03 23:51:05 -07:00
Dan Colish
f421a83fc9 Merge branch 'develop' of git://github.com/saltstack/salt into develop 2012-03-03 22:45:14 -08:00
Dan Colish
ea2ef21cd5 Do not check for 'grains' key in opts, it will always have a grains key 2012-03-03 22:40:01 -08:00
Dan Colish
d1e6f5caa8 Refactor common yaml file loading of configuration 2012-03-03 22:40:01 -08:00
Dan Colish
929ac0718a Use template string replacement over raw concatenation 2012-03-03 22:40:01 -08:00
Dan Colish
b53cca532a One set of parens is enough 2012-03-03 22:40:01 -08:00
Dan Colish
6aeb31ae9b Use with statments for file handling when possible, drive by pep8 2012-03-03 22:40:01 -08:00
Thomas S Hatch
3c9e0dfd9c initial commit of new fileclient module
This module enables file clients to follow a unified design and
be made to interact with any available file cache, the basic idea
being that the file client interface does not need to be the master
per-se, but can be a local file_roots, or another file server that
suppiles similar interfaces as the salt file server.
2012-03-03 23:20:23 -07:00
Thomas S Hatch
38ec5786a2 Merge pull request #825 from dcolish/develop
Avoid duplicating grain loading in salt-call, skip verify, correct dest ...
2012-03-03 19:50:31 -08:00
Jeff Schroeder
881fa2a7d3 Fix issue with salt-run jobs.lookup_jid on unfinished jobs
Fixes #824
2012-03-03 18:40:50 -08:00
Dan Colish
ba491efb99 Fix another bad dest var name 2012-03-03 18:35:20 -08:00
Dan Colish
e25037f08f use set notation instead of iteration 2012-03-03 18:29:20 -08:00
Dan Colish
109985d5a3 Add verification of env back into salt-call 2012-03-03 18:21:50 -08:00
Dan Colish
bb1a005ece Avoid duplicating grain loading in salt-call, skip verify, correct dest in cli parser
The salt-call command was loading the grains twice, once in the minion
configuration and once at command run. Both loads are the same. In
addition, the parser was verifying the pki, logdir and cache dir, but
this is not important since everything is run locally from the
extension_modules path and printed to stdout.
2012-03-03 18:08:02 -08:00
Thomas S Hatch
d826be13e8 Merge pull request #823 from dcolish/develop
Add extension_modules to root path, Issue #758
2012-03-03 10:38:26 -08:00
Dan Colish
51e1227aab When jid is 0, returnerers are empty, Issue #822 2012-03-03 09:33:36 -08:00
Dan Colish
6810ee21cd Add extension_modules to root path, Issue #758 2012-03-03 09:19:16 -08:00
Thomas S Hatch
05970e4e6e Track full returns within the return retrival function for the cli 2012-03-03 08:27:08 -07:00
Thomas S Hatch
24bce3d9bb Merge branch 'develop' of https://github.com/dcolish/salt into dcolish-develop
Conflicts:
	salt/cli/__init__.py
2012-03-03 08:20:29 -07:00
Dan Colish
f0d05c13d9 Refactor common loader code 2012-03-02 23:56:29 -08:00
Dan Colish
b0abefc157 fix bad dest var names 2012-03-02 23:55:40 -08:00
Dan Colish
26dfcafd66 Use tuple for checking multiple suffixes with endswith 2012-03-02 23:22:21 -08:00