Commit Graph
268 Commits
Author SHA1 Message Date
AlanCoding fcc02f7678 rebase and rename migrations corresponding to devel change 2016-03-18 16:45:06 -04:00
AlanCoding c807d5dcf3 Add keystone v3 support via new domain field on credential 2016-03-18 16:41:09 -04:00
Akita Noek e4948f210f Fixed up migrations 2016-03-18 16:31:53 -04:00
Akita Noek 92df6b0fb2 Merge branch 'devel' into rbac 2016-03-18 16:26:45 -04:00
Akita Noek 8addccd434 Renamed migrations to be a little more descriptive
Mainly for sanity when merging migrations into long running branches..
but nice anyways I think
2016-03-18 16:17:58 -04:00
Akita Noek 5741b47c54 Merge remote-tracking branch 'ansible/devel' into merge-devel 2016-03-18 15:40:13 -04:00
Wayne Witzel III 766190fb80 Use getattrd instead of reduce 2016-03-17 16:27:47 -04:00
Wayne Witzel III 6d249f38a7 Fix credential assertions and rename migration helpers 2016-03-17 15:41:46 -04:00
Wayne Witzel III 74e2c440a5 Rename credential migration helpers 2016-03-17 11:37:59 -04:00
Wayne Witzel III b59e960b46 Credential migration and initial tests 2016-03-17 11:21:10 -04:00
Akita Noek defe4a4fd8 Made credentials accessible by system administrators and auditors 2016-03-15 16:51:44 -04:00
Akita Noek b499555be4 Added auto_generated flag for RolePermissions 2016-03-15 13:36:28 -04:00
Akita Noek a845d5c0bb we removed our previous 0008 migration, so moving 0009 -> 0008 2016-03-15 09:34:50 -04:00
Akita Noek 1e7c71edfb active flag removal in migration functions 2016-03-15 09:29:28 -04:00
Akita Noek ddf3265bd2 Reordered system job template migration to happen after rbac migrations
The system job template migration creates SystemJobTemplate instances,
which necessarily depend on the RBAC modifications.
2016-03-15 09:27:06 -04:00
Akita Noek 26f73fa68e Remove active flag from ever getting created in the rbac models 2016-03-15 09:26:31 -04:00
Akita Noek 4825b2a6fc Do cleanup_deleted on migrate. Re-ordered active flag removal to be before system job template creation.
Also removed active flag deletes from remaining cleanup_deleted
management command as they will no longer be needed - but the
deletes of the authentication tokens as well as potentially disabled
users are still necessary, so the cleanup_deleted command will continue
to exist.

Reordering of the active flag removal to happen before the system job
template creation is necessary since the system job template creation
hits the license checker which at some point runs queries that depend on
the active flag, and with that code changing to not use the active flag,
we need to do the removal before we run this code.
2016-03-15 09:26:31 -04:00
Akita Noek 7cf28e2f03 More project migration fixes 2016-03-14 16:01:12 -04:00
Akita Noek 9146b29770 Fix up some project multi-org -> single-org fallout 2016-03-14 15:31:05 -04:00
Akita Noek 820ed0b747 Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac 2016-03-14 15:05:01 -04:00
Akita Noek ba6752fb23 Eliminate multiple-organization projects
Projects are duplicated with this migration to provide a nearly
equivalent functionality.

Satisifies #1164
2016-03-14 14:57:24 -04:00
Wayne Witzel III 2e6e7ff9c8 Updating migration path for RBAC 2016-03-14 14:42:09 -04:00
Matthew Jones 7e818319b5 Pass, don't return pass when checking mongo connectivity 2016-03-14 13:53:34 -04:00
Matthew Jones 001eb1f69f Handle a mongo OperationFailure
This seems to happenw hen the database is up, allows us to connect but
we don't have permission to access the objects (or they don't exist
yet).
2016-03-14 11:57:34 -04:00
Wayne Witzel III 49165c4fcd Rename users/admins deprecated_users/deprecated_admins 2016-03-14 11:56:42 -04:00
Wayne Witzel III 31a461956a Fixed up m2m_changed for rbac, added User.admin_role 2016-03-11 14:59:47 -05:00
Matthew Jones cdc342a6ee Fix fact database migration
For new installs the database may not be online and thus the migration
can't happen.  This will allow it to continue but we may want more
messaging to the user running potential upgrades
2016-03-11 12:59:21 -05:00
Wayne Witzel III 80013e67bc Remove UserResource and ensure RolePermission during migration 2016-03-11 10:58:24 -05:00
Chris Meyers 4ff16548b6 drop mongo database when complete 2016-03-09 15:53:07 -05:00
Chris Meyers bc6eaeb0a9 migrate data from mongo to postgres 2016-03-09 15:25:57 -05:00
Akita Noek 97a6f23380 Fixed up migrations after last merge 2016-03-09 13:08:02 -05:00
Akita Noek 9d4e6dfc16 Merge branch 'devel' of github.com:ansible/ansible-tower into rbac 2016-03-09 12:04:05 -05:00
Akita Noek efcd4efda2 Moved the rbac field removal migration to happen after the migrate script part of the rbac migration 2016-03-09 11:31:00 -05:00
Akita Noek b486c8d658 Merge branch 'rbac-resource-gfk' into rbac 2016-03-09 10:17:58 -05:00
Akita Noek 9aae2979d9 Replaced our 'Resource' table with a GenericForeignKey in RolePermission 2016-03-09 10:12:05 -05:00
Wayne Witzel III 3df4c4ec93 fixing tests and migration issues 2016-03-08 14:09:16 -05:00
Wayne Witzel III 39a1e893fb Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac 2016-03-07 08:49:48 -05:00
Chris Church f1c13e0837 Add migration to create system job templates for a new database. 2016-03-04 15:41:40 -05:00
Wayne Witzel III a1cc5b06b8 Remove can_access methods and registration 2016-03-01 17:30:32 -05:00
Akita Noek 2c690c82d9 Renamed rbac migrations to be after the notification and fact migrations 2016-03-01 15:34:06 -05:00
Akita Noek ea2cabe4d4 Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel 2016-03-01 15:09:58 -05:00
Wayne Witzel III a4b3567619 Added migration to remove users/admins FK from Org/Teams 2016-03-01 15:00:53 -05:00
Chris Meyers 67d1aa6c86 migration with correct help_text 2016-03-01 10:39:51 -05:00
Akita Noek 41c06dc2d0 Update user migration to not bomb out when a UserResource already exists for a user 2016-03-01 09:54:35 -05:00
Chris Meyers f6fa11e383 fix Fact migration 2016-03-01 09:16:48 -05:00
Chris Meyers 356b9c99b3 Merge branch 'mongoectomy_implementation' into devel 2016-03-01 08:22:40 -05:00
Matthew Jones 99ec07b8a5 Merge branch 'notifications_work' into devel
* notifications_work: (23 commits)
  Updates to notification unit tests after @wwitzel3's feedback
  Fix some notifications issues and write some tests
  Add notification system documentation
  Clean up flake8 related issues
  Fixing up some unicode issues
  Implement tower ui view url on models
  Sanity check and force proper types in admin check
  Proper type for in check
  Adding migration and base notification type
  Add a periodic administrative notification
  Refactor message generator
  Support notification password field encryption
  Notification configuration type checking
  Refactor NotificationTemplate to Notifier
  Implement irc notification backend
  Add webhook notification backend
  Pagerduty and Hipchat backends plus some cleanup
  Notification serializers, views, and tasks
  Implement notification serializer and validations
  Notification endpoints and url expositions
  ...
2016-02-29 16:50:33 -05:00
Akita Noek 46e1839ab1 Merge branch 'rbac' of github.com:ansible/ansible-tower into rbac 2016-02-24 16:14:41 -05:00
Akita Noek e18592fa87 Merge branch 'devel' into rbac 2016-02-24 16:14:32 -05:00
Chris Meyers 7ffe46fc74 add postgres Fact model, update views, tests
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00