Commit Graph

89 Commits

Author SHA1 Message Date
Akita Noek
6ea99583da Mass active flag code removal 2016-03-15 09:29:55 -04:00
Akita Noek
ba833d683e Active flag removal: switched from using mark_inactive to delete calls 2016-03-15 09:29:28 -04:00
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
Matthew Jones
769fe18724 Wrap up other places where the old license access method is used 2016-01-25 20:59:18 -05:00
Matthew Jones
35b19bf220 Update settings references
* PROOT
* Pendo tracking state
* ad hoc commands
* activity stream
* org admin visibility
2015-12-15 16:44:08 -05:00
Matthew Jones
6e2efd3f8a Overwrite should not imply overwrite-vars 2015-10-12 13:07:50 -04:00
Chris Meyers
d2a555b752 non-celery invocations (command-line invocations) do not update the inventory_update object after completion 2015-06-17 12:36:07 -04:00
Chris Meyers
fcc789f13b Differentiate between an expired license and a non-existant license 2015-06-16 15:59:23 -04:00
Chris Church
4607972135 Included openstack inventory script from core + changes from some open PRs, fixes to be able to use without custom changes for tower. 2015-06-12 00:58:33 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Chris Church
7f1c97b167 Include pk in inventory source name to keep it unique even with group renames. Fixes https://trello.com/c/PnmDWCai 2015-05-20 14:00:33 -04:00
Chris Meyers
1df51f3c48 better error handling 2015-04-20 17:15:03 -04:00
Matthew Jones
f4d960b127 Fix an issue where going from having 1 or more hosts to having 0 hosts
could trigger an inventory sync failure
2015-03-27 13:25:16 -04:00
Matthew Jones
6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
Matthew Jones
1d76c1cd06 More pep8 goodness 2015-02-04 14:44:38 -05:00
Chris Meyers
cfb56c25a0 inventory_import behave more like ansible
```
mkdir inv
echo foo > inv/hosts
mkdir inv/host_vars
touch inv/host_vars/foo
touch inv/host_vars/foo.yml
```

```
ansible -i ./inv -c local -m ping all
```

```
tower-mange inventory_import --inventory-id=1 ./inv
```

The tower command above now throws an error similar to ansible:

`Multiple variable files found. There should only be one.`
2015-01-27 14:56:03 -05:00
Matthew Jones
eaee8d76c4 Fix a bug launching a custom inventory script under proot where we would
never actually launch the job under proot
2014-12-15 10:42:22 -05:00
Matthew Jones
ec887f877f Support running custom inventory scripts (only) from within proot if enabled 2014-12-05 15:25:06 -05:00
Chris Church
fcf7398ec6 Add common code for determining active (licensed) hosts with unique names, update licensing code and inventory import to use it. Implements https://trello.com/c/2Q9Mosks 2014-12-03 19:41:01 -05:00
Chris Church
6b91f46082 Log warning and continue on invalid port specification. Fixes traceback from https://trello.com/c/0OgJ3uRb 2014-12-03 19:27:52 -05:00
Matthew Jones
9064bb3107 Fix a bug where we could potentially not see a hostname that we need to
update instead of create when syncing inventory because its instance id
had changed
2014-09-24 13:35:04 -04:00
Chris Church
5fe3ee3bf4 Fixes https://trello.com/c/ZBHrkuLb - Add support for IPv6 addresses in inventory import. 2014-09-12 02:34:07 -04:00
Luke Sneeringer
3267a988f8 Shift Django to 1.6.x (>= 1.6.7). 2014-09-10 12:17:35 -05:00
Matthew Jones
7badbca045 Fix license exceeded message 2014-08-18 13:38:22 -04:00
Chris Church
578f4b9c3b Fix inventory import to look for group and host vars files with .yml, .yaml and .json extensions in addition to no extension. 2014-08-12 22:58:11 -04:00
Chris Church
d6b3e3079a Disable extra actions on save for inventory sources when running inventory import. 2014-08-11 11:41:40 -04:00
Luke Sneeringer
cf96240556 Azure inventory sync! 2014-07-29 13:06:27 -05:00
Luke Sneeringer
a1059dabae Working GCE inventory sync. 2014-07-25 11:12:12 -05:00
Chris Church
1d1137a8d8 Use correct variable name ininventory import. 2014-07-03 12:23:17 -04:00
Chris Church
7229f9cc8f AC-1302 Update EC2 inventory script to create hierarchical groups.
Conflicts:
	awx/main/tests/inventory.py
2014-06-26 14:54:51 -04:00
Chris Church
24df1a88ee AC-1295 Allow host names to contain brackets when importing from JSON sources. 2014-06-06 14:17:12 -04:00
Chris Church
ad3b1143bf AC-1235 Fix bug when importing large number of groups into existing inventory, sort group/host names on import to make output a little easier to follow. 2014-05-20 15:49:36 -04:00
Chris Church
6be2e07cbc AC-1235 Fix large inventory import tests by querying in batches. 2014-05-19 00:45:21 -04:00
Chris Church
b14aa0b55d AC-1235 Improvements to inventory import and computed field performance. 2014-05-18 22:10:12 -04:00
Chris Church
6d0da4672d AC-1278 Reduced the level of pickiness expressed by inventory_import regarding filenames. 2014-05-15 13:08:48 -04:00
Matthew Jones
ac94c11fd7 Adjust inventory computed field calculations to happen in the celery context 2014-04-30 14:38:08 -04:00
Chris Church
e753260087 AC-588 Match cloud hosts by unique instance_id instead of name when running cloud inventory sync. 2014-04-16 03:00:33 -04:00
Chris Church
1283a78e09 AC-1134 Updated rax/ec2 inventory scripts from ansible. Added ability to filter groups/hosts by regular expression and exclude empty groups, so that Tower can exclude RAX/EC2 instance ID groups and EC2 RDS hosts/groups. 2014-04-08 23:50:57 -04:00
Matthew Jones
b51a867b5f More fixes for the license obfuscation 2014-04-03 17:16:03 -04:00
Chris Church
d7f31f9777 Fix edge case in inventory import that would cause a group to become its own parent. 2014-03-31 17:37:41 -04:00
Chris Church
21c8126838 AC-1040 Use new method in inventory import to create inventory update from inventory source. 2014-03-26 00:12:13 -04:00
Chris Church
0587583f19 Allow inventory import to work with demo license. 2014-03-14 12:32:51 -04:00
Chris Church
8c9a98befc AC-406 Added support for importing inventory host patterns/ranges from INI files. 2014-02-22 16:23:11 -05:00
Matthew Jones
43491721b6 Fix issue AC-1008... not checking license expiration when running import inventory 2014-02-21 11:40:04 -05:00
Chris Church
ae4743724a AC-982 Added configuration options to disable activity stream logging entirely, or disable only when running inventory import. 2014-02-06 15:25:58 -05:00
Chris Church
ce56f1c17d AC-982 Fixes for inventory import speed when deleting groups. 2014-02-04 22:55:53 -05:00
Chris Church
d17f58743e AC-982 Work on eliminating unnecessary queries from inventory import and activity stream logging. 2014-01-27 15:27:27 -05:00
Chris Church
5ea87d28fb AC-988 Fix inventory script license message URL. 2014-01-27 14:02:10 -05:00
Chris Church
2b7af0a2ec Happy new year!!! 2014-01-02 11:51:43 -05:00