Commit Graph
19 Commits
Author SHA1 Message Date
Chris Meyers 6fba494692 Merge pull request #43 from chrismeyersfsu/improvement-inventory_import_more_like_ansible
inventory_import behave more like ansible
2015-01-27 15:11:13 -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
Chris Meyers 76ad9720dd fixed inventory source update # license hosts check 2015-01-27 08:58:30 -05:00
Chris Meyers d051b6348b Fix child job->parent job status update.
* refactored so that project shares parents _update_parent_instance() code
* allow parent job status field to be anything a child status job field can be
* fixed child job status to parent job status propagation
2015-01-26 16:55:26 -05:00
Chris Meyers 8e22aafbed fixed variable name error 2015-01-26 16:08:28 -05:00
Chris Meyers fad5fb5f58 extra_vars_dict: handle the case where an entire yaml file is commented 2015-01-23 11:00:16 -05:00
Chris Meyers 51a7d403db removed system job code that handles extra_vars in favor using common (unified job) code alread in use by normal jobs 2015-01-22 09:41:52 -05:00
Chris Meyers 837eb7ae2c Merge pull request #34 from chrismeyersfsu/fix-tower_ha_redirect
redirect to primary host with the original requesting path preserved
2015-01-21 15:07:41 -05:00
Chris Meyers da63fc64d0 redirect to primary host with the original requesting path preserved 2015-01-21 13:53:46 -05:00
Chris Meyers 7204209b16 output number of deleted items when running cleanup_deleted 2015-01-21 12:10:51 -05:00
Chris Meyers 20d714cc00 Merge pull request #30 from chrismeyersfsu/improvement-tower-manage_ha
unified tower-manage *_instance commands
2015-01-21 11:55:15 -05:00
Chris Meyers 62d63607cc added graceful fail and meaningful error message when --days specified is too large 2015-01-21 08:31:19 -05:00
Chris Meyers 58617e41e0 unified tower-manage *_instance commands
Changes:
* split register_instance into register_instance and update_instance
* register_instance may only create an instance if an instance doesn't already exist and may not modify an existing instance. Before --hostname would modify the hostname for an already registered instance
* register_instance removed --timid parameter and always behave like timid is on
* remove_instance now accepts --hostname to match an instance to remove
* register_instance added better usage message
2015-01-20 15:13:12 -05:00
Chris Meyers 8705f03bf9 added 'organization' to list of related fields for inventory_scripts 2015-01-19 08:39:55 -05:00
Chris Meyers 0fcf7a51b7 Merge pull request #20 from chrismeyersfsu/fix-ec2_groups
fixed broken ec2 inventory tag_ checks
2015-01-16 16:29:51 -05:00
Chris Meyers e822689ca1 test for non-existance of tag changed to be more strict to the tags form i.e. check for tag_*_* form rather than tag_*
tag_none grouping is more like ec2 global groups. Thus, removed the children filter test.
2015-01-16 14:16:23 -05:00
Chris Meyers f2c9dcd173 added documentation to command: tower-manage register_instance --help 2015-01-16 11:46:33 -05:00
Chris Meyers a6fdd9534e added ec2 tags_none grouping for hosts without tags 2015-01-16 10:15:23 -05:00
Chris Meyers 5264d11ff0 Misspelling in save field
'job_status' changed to 'status'
2015-01-15 09:37:05 -05:00