Commit Graph
46 Commits
Author SHA1 Message Date
Matthew Jones a9162278f8 Perform length validation on notification lists
Wherever we use a list for notification template configuration we'll now
validate that it contains at least one item at submission time.
2016-06-23 11:31:59 -04:00
Matthew Jones 960b6e22aa Fix up broken CredentialOwnerTeams view
Missing the object when requesting whether the user can access it or not
2016-06-22 15:17:45 -04:00
Matthew Jones 8d67d3a6fc Don't auto-gen the demo project update on preload 2016-06-22 14:49:27 -04:00
Matthew Jones 0fda36116a Change org admin role access for inventory scripts
Previously a super user was required to create and administer custom
inventory scripts.   Since these are tied to organizations this commit
extends orgadmin admininstration abilities to custom scripts within
their organization
2016-06-22 13:58:14 -04:00
Matthew Jones 87f1f6f8e6 Update inventory script visibility access level
admin roles on inv scripts can now see the actual script contents.  Read
role doesn't convey that capability.

This should be pretty similar to before from a read_role
perspective... it now allows more folks to see the script contents
2016-06-22 13:48:38 -04:00
Matthew Jones 2a4fa0ed9d Increment sent messages for pagerduty backend 2016-06-22 12:09:04 -04:00
Matthew Jones c812e85f65 Change email notification formatting.
Instead of pretty printing the datastructure we'll now dump out the
result in json format with indent=4 for pretty viewing.
2016-06-22 11:52:49 -04:00
Matthew Jones 462d43060e Fix up missing notifications in invsrc 2016-06-17 11:52:13 -04:00
Matthew Jones 526c7d719f Disable rax ssl verification everywhere 2016-06-16 15:48:36 -04:00
Matthew Jones 251dae657a Force schedule save during celery startup 2016-06-16 13:14:53 -04:00
Matthew Jones cded126f5b worker_ready is unused here 2016-06-15 14:40:50 -04:00
Matthew Jones 19c8fe915f Add a celery worker init task
We'll use this task to perform any worker specific startup actions.
Initially this is used to re-sync any Tower schedules on startup.
2016-06-15 12:09:39 -04:00
Matthew Jones 9b49ff15bd Mass rename foreman -> satellite6
For end-user facing elements. We still maintain foreman for some
underlying logic needed by the modules
2016-06-15 11:16:15 -04:00
Matthew Jones 8e5f502d00 Use ansible venv to be used during inv import 2016-06-14 15:21:09 -04:00
Matthew Jones 9e56913893 Capture some change info in activity stream for associate/disassociate events 2016-06-13 12:41:50 -04:00
Matthew Jones 4d52d0748f Include core ec2 fix for tag sync limit 2016-06-13 11:24:47 -04:00
Matthew Jones 753b338205 Make sure project team list is filtered for access 2016-06-10 15:10:37 -04:00
Matthew Jones b612f65479 Fix up the project teams list
This was still referencing the old mechanism for pulling associative
information.  This updates it to query against the new role system
2016-06-10 15:06:14 -04:00
Matthew Jones f545640f58 Fix an issue calling build_env for system jobs 2016-06-10 10:21:36 -04:00
Matthew Jones c124aeaf14 Change ldap and other sso defaults to remove from team/admin
Previously the default was not to remove an sso user from a team or as
an admin if they were removed from the SSO service.  This changes that
and updates some readme-type lines.
2016-06-09 16:02:29 -04:00
Matthew Jones 3cb8c26381 Force rackspace inventory to not verify ssl 2016-06-09 14:41:19 -04:00
Matthew Jones ebbadbf8da Upgrade python-saml for security issue 2016-06-09 14:23:10 -04:00
Matthew Jones ad0915a6d0 Add libcloud dependency to tower venv 2016-06-09 14:20:34 -04:00
Matthew Jones 3e8aaa4b5e Fix an issue showing attach/detach docs
There's a condition in sub_list_create_api_view.md template that
controls whether or not the attach/detach documentation is shown for
sublist elements that support it.   Looks like it's been this way for a
while.  This updates that condition to work anywhere it's needed
2016-06-09 09:56:44 -04:00
Matthew Jones 908111f656 Remove mongo key from being installed on the dev container 2016-06-08 12:34:59 -04:00
Matthew Jones 20fe9e9614 Updating docker dev workflow
* Moving to new docker compose file format
* Adding some things that will be needed for python dependencies
2016-06-08 12:25:14 -04:00
Matthew Jones 870175555f Remove pywinrm from tower venv 2016-06-07 16:51:43 -04:00
Matthew Jones 3b2a6eda4e Upgrade pywinrm per @nitzmahone's recommendation 2016-06-07 16:51:20 -04:00
Matthew Jones f889113711 Granularize venv selection
Not a good idea to select the virtualenv in the base class.  Force
selection to happen in the concrete classes by calling a helper method
to set up the proper virtualenv.   This should fix any issues where
tower is selecting the wrong virtualenv to run against.
2016-06-07 14:47:20 -04:00
Matthew Jones 8adcc4092c Use defaults when validating jt properties.
Don't assume attrs will be populated.  Check the instance also
2016-06-07 14:14:24 -04:00
Matthew Jones bdf5ee1fea Import latest ec2.py and fix an issue
Upgrading ec2.py to fix an issue where the module wasn't obeying
"replace_dash_in_groups" property.
2016-06-07 14:01:00 -04:00
Matthew Jones c4b06ce7c0 Force survey min/max type during comparisons 2016-06-07 10:42:03 -04:00
Matthew Jones 5d32d6e17a Add password to survey spec documentation 2016-06-06 13:24:21 -04:00
Matthew Jones 936db91560 Fix scan jobs not auto-starting inventory syncs
Originally it would exclude any depdendies if inventory or project was none
2016-06-06 12:30:38 -04:00
Matthew Jones 7e7a611366 Scan job success notification could fail
We can't assume a project is part of a scan job template so here we'll
short circuit that
2016-06-06 12:07:54 -04:00
Matthew Jones b0de8038d0 Fix validation issues for scan job templates
Also adding some jobtemplate serializer-based validation unit tests
2016-06-06 12:01:56 -04:00
Matthew Jones 26b31fedbc Expose any external account as a user property
This adds a field to the user object to denote whether and what kind of
user account it is.

For normal accounts this field will be null.
For social auth accounts it will be "social"
for radius accounts it will be "radius"

This change also prevents a radius user from changing their local
password thus bypassing the password caching feature of django-radius
2016-06-02 16:58:19 -04:00
Matthew Jones 1881af8e77 Fix passively creation of notification templates
Passively creating notification templates on m2m endpoints was failing
serializer validation due to a bug trying to look up the related
object.  In reality that check should only happen when the view is the
NotificationTemplateDetail view.
2016-06-02 15:04:51 -04:00
Matthew Jones 0591647333 Implement a flag that allows simulteanous job launches on job templates 2016-06-02 15:04:51 -04:00
Matthew Jones 8708fcf8ce Handle corner case when a job spawns notifications
If a dependent task fails a job might not have a started or finished
time when emitting the notification
2016-06-01 15:04:29 -04:00
Matthew Jones 79cbd68a13 Rev boto and add ap-northeast-2 to ec2 regions 2016-06-01 14:22:08 -04:00
Matthew Jones 7514ed389a Don't trim whitespace from customer inv scripts 2016-05-20 13:30:10 -04:00
Matthew Jones e5ec5c9726 Change prefix for imported sattelite groups 2016-05-18 10:22:12 -04:00
Matthew Jones 9ba98d9cac Rename channels to rooms for hipchat notifications 2016-05-17 15:33:22 -04:00
Matthew Jones 430b548395 Exclude the job template limit during callback
This causes some unexpected behavior when commas instead of colons are
used during the job template limit due to a bug in ansible.  It has the
effect of expanding the number of hosts that it will run on instead of
just one which is what we are expecting
2016-05-17 10:35:14 -04:00
Matthew Jones ae4cfc98ce Update to house's latest legacy azure inv script 2016-05-13 10:47:18 -04:00