Commit Graph

12711 Commits

Author SHA1 Message Date
Michael Abashian 0de2f7deb4 Hooked up inventory source scheduling. Fixed various small bugs 2017-05-01 15:00:15 -04:00
Michael Abashian 8734ad738f Implement adhoc commands for normal inventories 2017-05-01 15:00:15 -04:00
Jared Tabor 0fa9aa6bcb Adding nested-groups (related tab) and completed jobs to inventories 2017-05-01 15:00:15 -04:00
Michael Abashian 78ff5f5301 Removed scm inventory from add inventory dropdown 2017-05-01 14:58:09 -04:00
Jared Tabor cca8f13a2f fixing sources-add function
the params were being sent as a nested function.
2017-05-01 14:58:09 -04:00
Michael Abashian e58e593140 First pass implementation of fact searching on hosts 2017-05-01 14:58:09 -04:00
Jared Tabor c22e4a5023 Adding first pass at inventory sources CRUD workflow
and breaking out sources info from groups and simplifying groups
workflows to disclude source info
2017-05-01 14:58:09 -04:00
Michael Abashian a9ea639d9b Hook up system tracking from the host list 2017-05-01 14:58:09 -04:00
Michael Abashian ad494bbb40 Navigate the user to the inventory edit form after creating basic inventory 2017-05-01 14:58:09 -04:00
Michael Abashian 8173ec4014 Added missing comma 2017-05-01 14:58:09 -04:00
Michael Abashian cc80cd8549 Dynamic inventory add form work 2017-05-01 14:58:09 -04:00
jaredevantabor 62fafc9870 adding related-host-add/edit routes for inventories 2017-05-01 14:58:09 -04:00
Michael Abashian 9131ee59a2 Pass host filter through to the smart inv form. Fixed inventory list name link 2017-05-01 14:56:23 -04:00
Michael Abashian e411d5c69b More inventory state setup. This should get basic/smart inventory forms working in conjunction 2017-05-01 14:56:23 -04:00
jaredevantabor 09f99b04f2 adding inventories related-host state 2017-05-01 14:56:23 -04:00
jaredevantabor b85614082e Adding group add and group edit routes back in 2017-05-01 14:56:23 -04:00
Michael Abashian c1ad7d69fd Moving some states around based on new smart inventory flow 2017-05-01 14:54:16 -04:00
jaredevantabor a7dbd00192 fixing small issue i created with list-generator classes 2017-05-01 14:52:52 -04:00
jaredevantabor f5141bcab9 Related Groups tab for inventories
I've added a way to hookin a custom "related" state without
needing to extend the state-generator directly. There is more work
that needs to happen here but this gets the scaffolding in place for
the related-groups tab.
2017-05-01 14:52:52 -04:00
Michael Abashian 3727c3a9a5 Disable the SMART INVENTORY button until the user performs a search on the host list 2017-05-01 14:52:52 -04:00
Michael Abashian 2dd1901649 Set up dynamic inventory org lookup state 2017-05-01 14:52:52 -04:00
jaredevantabor 8013f352ce fixing linkage to user on inventories.permissions
it was plain text instead of being a link to the user
2017-05-01 14:52:52 -04:00
Michael Abashian 570b7fde88 Added smart inventory add scaffolding 2017-05-01 14:52:52 -04:00
jaredevantabor 96c25fe464 adding related tabs for inventories
for groups, hosts, sources, and completed jobs. this is for the
tabs themselves.
2017-05-01 14:52:52 -04:00
jaredevantabor 14ec5183d2 fixes to edit->host and host list
removing the copy and delete icons from the top level host list,
as well as fixing the edit host view which was slightly bjorked.
2017-05-01 14:52:52 -04:00
Michael Abashian 54a92b5b5e Normalized inventory list/form. This was the way it used to be 2017-05-01 14:52:52 -04:00
Michael Abashian 2e177598c2 Fixed add inventory form 2017-05-01 14:52:52 -04:00
Michael Abashian 6608819c95 removed css rule targeting host/group search bar 2017-05-01 14:52:52 -04:00
Michael Abashian b741354ad0 Removed old inventories code. Cleaned up new inventories code 2017-05-01 14:52:51 -04:00
jaredevantabor 3bcb4b0496 adjustments to host list
adding Inventory column and disabling host toggle for external sources
2017-05-01 14:49:22 -04:00
Michael Abashian f9b46b7c3d Set up new inventory directory and states 2017-05-01 14:49:22 -04:00
AlanCoding 2f62182940 refactor inventory Loaders for ansible-inventory
* remove support for loading from executable and static files
* instead use ansible-inventory with fallback to backport
* provide private file dir in task manager for cred injection
* durable management of tmp dirs for user scripts

* new 'scm' source choice for scm-type
* update SCM inventory docs to new reality
2017-05-01 14:37:43 -04:00
AlanCoding a92c7cec7d remove code to parse inventory files 2017-05-01 14:37:42 -04:00
AlanCoding 8e6020436c modularization of inventory_import command
This separates file parsing logic that was mixed
in with other important code inside of the
inventory import command.

The logic around MemObject data structures was
moved to utils, and the file parsing was moved
to a legacy module. As of this commit, that
module can operate within the Tower environment
but it will be removed.

Also refactor the loggers to fix old bug and
work inside of the different contexts - the
Loader classes, mem objects, and hopefully
the inventory modules eventually.
2017-05-01 14:37:42 -04:00
AlanCoding ef01fea89c purge of inventory file syntax testing
* remove use of temporary files in inventory import
* remove old inventory import tests
* remove supporting example inventory files

This type of testing has been migrated to the backport
repository because it will be handled by the inventory module.
From here on out, no inventory syntax testing will be
maintained inside of the Ansible Tower repo.
2017-05-01 14:37:42 -04:00
AlanCoding 2488dabca6 add ansible-inventory backport from upstream
This is a separately maintained repo
https://github.com/ansible/ansible-inventory-backport
tests and compatibility is managed in that location
2017-05-01 14:37:42 -04:00
Matthew Jones 8c7adddaf3 Merge branch 'release_3.1.3' into devel
* release_3.1.3:
  create .lock file without needing the proj dir to exist
  work around a change in ansible 2.3 to `Task.get_name()`
  mock message obect in callback receiver test
2017-05-01 14:35:11 -04:00
Wayne Witzel III bdb13ecd71 Merge in latest DynamicFilter changes 2017-05-01 13:38:39 -04:00
Wayne Witzel III 1750e5bd2a Refactor Host manager and dynamic Inventory tests and update
validation/serialization
2017-05-01 13:06:49 -04:00
Wayne Witzel III 8a599d9754 Add Inventory.kind field 2017-05-01 12:55:42 -04:00
Wayne Witzel III a45d41b379 DynamicFilterQuerySet -> DynamicFilter 2017-05-01 12:55:42 -04:00
Wayne Witzel III 17e9b3057e Clean-up intiail commit for Host filter / DynamicInventory 2017-05-01 12:55:42 -04:00
Chris Meyers 01c526dabd Merge pull request #6141 from chrismeyersfsu/fix-6137
create .lock file without needing the proj dir to exist
2017-05-01 11:51:36 -04:00
Chris Meyers 633da940a8 create .lock file without needing the proj dir to exist
* We create <project_name>.lock file in the tower project root
directory. This should not require that the project directory exists,
only that the project directory name is generatable.
2017-05-01 11:15:18 -04:00
Ryan Petrello 6870104811 Merge pull request #6140 from ryanpetrello/fix-ansible-23-setup-payload
work around a change in ansible 2.3 to `Task.get_name()`
2017-05-01 10:42:08 -04:00
Alan Rominger dd8f8c169c Merge pull request #6139 from AlanCoding/mock_message_313
mock message obect in callback receiver test
2017-05-01 10:38:28 -04:00
Ryan Petrello f6046d47c9 work around a change in ansible 2.3 to Task.get_name()
Properly detect setup tasks so that we can filter out sensitive
variables from the `ansible_facts` portion of the event payload.
2017-05-01 10:38:05 -04:00
AlanCoding 481df1fcf8 mock message obect in callback receiver test 2017-05-01 10:17:49 -04:00
jlmitch5 932f53b2ea Merge pull request #6090 from jlmitch5/credTypes
add credential types to ui
2017-04-28 17:10:00 -04:00
John Mitchell 879f98df2a updates to credential types forms and lists 2017-04-28 17:08:59 -04:00