Commit Graph

331 Commits

Author SHA1 Message Date
Chris Church
290768c20d Add import command support for AC-332. Refactored import script to eliminate use of global variables, which breaks tests. 2013-08-29 23:46:38 -04:00
Tim Gerla
f78eb15e41 fix typo in json import error handling 2013-08-15 08:18:51 -07:00
Tim Gerla
e161efdd67 Fix .ini skipping logic in inventory importer 2013-08-15 08:15:34 -07:00
Chris Church
222bbd7c98 Revert previous fix for deleted name change, update how we change username when a user is marked inactive to keep it under 30 chars. 2013-07-27 21:05:26 -04:00
Michael DeHaan
af43954ca8 In order to not worry about long usernames when deleting objects, just rename fields to include the date
and include the name/description in the new description when deleting objects.

Also updated deletion script to understand that.
2013-07-27 18:55:42 -04:00
Chris Church
2c166e501e Implemented AC-166, added signal handlers to update has_active_failures flag whenever host/group/job are changed/deleted and whenever group-host and group-group relationships change. 2013-07-26 23:49:49 -04:00
Michael DeHaan
264cc11630 More consistently use the logger class. 2013-07-26 23:08:01 -04:00
Chris Church
5ef8a48600 Start on tests for inventory_import command. 2013-07-25 11:15:11 -04:00
Michael DeHaan
e586bd9754 Be more strict on inventory checking on inventory import. 2013-07-18 10:49:14 -04:00
Michael DeHaan
c3561e0137 Make AWX inventory import grok the license system. 2013-07-18 10:49:14 -04:00
Michael DeHaan
82a9572df8 Smarter removal of host/group associations means running the inventory script won't pad database
rows when not needed.  Similar to last change made for groups.
2013-07-15 17:54:36 -04:00
Michael DeHaan
bea844ff51 Keep from unneccessary DB row additions in changing group memberships during inventory import. 2013-07-15 17:24:29 -04:00
Michael DeHaan
0c257996d9 remove dead code, change logger name. 2013-07-15 17:24:29 -04:00
Michael DeHaan
cc8e3e9f8f Option spelling. 2013-07-15 16:27:26 -04:00
Michael DeHaan
25174f955f Fix a Django lookup type. 2013-07-15 16:19:56 -04:00
Michael DeHaan
54f6426c0c Cleanup debug message. 2013-07-15 12:08:33 -04:00
Michael DeHaan
0fa5ba606b DB lookups should specify inventory to allow for non-unique group names. 2013-07-15 11:41:06 -04:00
Michael DeHaan
c6b6198926 Update list of TODOs 2013-07-14 17:44:28 -04:00
Michael DeHaan
66da429f38 Tweak debug output. 2013-07-14 17:31:08 -04:00
Michael DeHaan
23b0adb34e Clean run of inventory import script. 2013-07-14 17:21:41 -04:00
Michael DeHaan
b0e9ab81af Added fix for "host:port" shortcuts in INI format definitions. 2013-07-14 17:19:31 -04:00
Michael DeHaan
4d8b039074 Fix to use get_host so it shows up in the list of overall added hosts. 2013-07-14 17:16:51 -04:00
Michael DeHaan
d23e2345af Start of logic for DB sync portions of inventory import. 2013-07-14 17:15:26 -04:00
Michael DeHaan
3054be117e Tweak such that all INI groups don't get added directly to all. 2013-07-14 16:34:51 -04:00
Michael DeHaan
43415947d0 Directory loads for inventory import 2013-07-14 16:30:15 -04:00
Michael DeHaan
8f1337128f Dynamic inventory script loading operational -- next up: directories, then DB parts. 2013-07-14 16:25:27 -04:00
Michael DeHaan
7306f93cf9 Allow hostname:portnum in inventory files to be used as shorthand for the importer. 2013-07-14 14:15:52 -04:00
Michael DeHaan
9ee338d9d1 Ini file loading using cleanroom implementation is now largely operational. 2013-07-14 14:13:25 -04:00
Michael DeHaan
3bebe0ed3b At least basic INI file loading operational. 2013-07-14 13:59:09 -04:00
Michael DeHaan
902a9edf6d Add the start of inventory import code. Not functional yet. 2013-07-14 13:50:13 -04:00
Chris Church
6f0d644f5f First pass at cleanup_deleted management command. 2013-06-30 12:36:48 -04:00