12572 Commits

Author SHA1 Message Date
Michael Abashian
fcc70f69fa Inventory sources socket work. Refactoring sources/factories. Small fixes to inventory sync stdout 2017-05-01 15:03:30 -04:00
Jared Tabor
11f3f057f6 related groups for host-edit form 2017-05-01 15:03:30 -04:00
Michael Abashian
5c79561b7d Fixed inventory codemirrors and tweaked delete source warning 2017-05-01 15:03:30 -04:00
Jared Tabor
832e55f964 Adjustments to nested groups edit
after feedback from Bill.
2017-05-01 15:03:30 -04:00
Michael Abashian
db8b36a057 Removed old failed hosts logic. Added logic to hide panels where more than two are present 2017-05-01 15:03:15 -04:00
Jared Tabor
0b6a5b14a3 adding extra file for nested group adding 2017-05-01 15:03:15 -04:00
Jared Tabor
fed34fff8b fixing add/edit for a related group 2017-05-01 15:03:15 -04:00
Jared Tabor
fe63303816 Adding the ability to add/edit hosts to a group
includes adding the ansible facts to that host form
2017-05-01 15:02:25 -04:00
Michael Abashian
0bec96ff28 Fixed jshint error 2017-05-01 15:00:15 -04:00
Michael Abashian
9fb8b6579f Hooked up copy/move hosts and groups 2017-05-01 15:00:15 -04:00
Michael Abashian
e435b6505a Implemented host facts related tab 2017-05-01 15:00:15 -04:00
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