19 Commits

Author SHA1 Message Date
Adam Gandelman
177feb0b5e Merged config-changed support from lp:~gandelman-a/charms/precise/keystone/config-changed 2012-08-09 18:15:28 -07:00
Adam Gandelman
0045c99082 Allow reconfiguration of admin user credentials via 'juju set'
This adds the ability to update a users' password via keystoneclient.  This is
called for every run of ensure_initial_admin().

A basic config-changed hook is added to call ensure_initial_admin(), allowing:

    - Changing the current admin user's password via
      'juju set admin-password=foo'
    - Defining a new admin user in the system via
      'juju set admin-user=newadmin admin-password=foo'.

Note, when creating a new admin user,  the previous admin user is not deleted from the system.
The new admin user can manage existing users thru the dashboard or keystoneclient.
2012-08-08 16:17:52 -07:00
Adam Gandelman
da6297b10b Make utils.grant_role() more idempotent.
Keystone+keystoneclient have recently changed to now throw errors when
a role is assigned to a user+tenant more than once.  Account for this
by checking user+tenant's role assignments before attempting to assign.

The changes to keystone+keystoneclient happened in folsom, but this operation
is supported in the Essex release as well, so applying to the precise charm
branch to avoid an early delta between precise + quantal branches (which doesn't
exist yet).
2012-08-08 13:27:36 -07:00
Adam Gandelman
ed6a84faac Generate credentials in addition to token for new services 2012-03-02 12:46:20 -08:00
Adam Gandelman
7272f3e283 Support receiving multiple endpoints in identity_changed() 2012-03-01 12:37:18 -08:00
Adam Gandelman
0d2dcd4ebd Use config file backed admin token 2012-03-01 12:35:39 -08:00
Adam Gandelman
50c71f919d Import manager from functions that use it instead of globally 2012-02-29 11:59:37 -08:00
Adam Gandelman
d6c5657d08 Redux port pt. 1 2012-02-28 17:18:17 -08:00
Adam Gandelman
2da9bb4efd Get rid of dig usage 2012-01-12 08:45:13 -08:00
Adam Gandelman
b3eb707e52 More fixes to token generation, ability to add URL formated PPAs 2012-01-12 03:39:29 -08:00
Adam Gandelman
68b8d300c6 Generate shared token as part of ensure_initial_admin() 2012-01-10 23:14:17 -08:00
Adam Gandelman
ab29b9de1b Move token generation vs config out of relation hook and into util 2012-01-10 11:46:41 -08:00
Adam Gandelman
b535ef9e54 A bit of cleanup 2011-12-23 17:34:15 -08:00
Adam Gandelman
b279694482 Add setup_ppa() to setup alternative installation source, silence logging execute() when not needed, add some doc strings 2011-12-22 10:21:23 -08:00
Adam Gandelman
756d006459 Use config specified admin-password if it's set 2011-12-20 14:42:49 -08:00
Adam Gandelman
322ca4049b Also create KeystoneAdmin role during install 2011-12-19 09:30:23 -08:00
Adam Gandelman
da81e7457f Fix keystone_conf_update, avoid a race in install, update manager to match newish keystone internal API 2011-12-09 19:58:15 -08:00
Adam Gandelman
d2e1fed21c Create 'KeystoneServiceAdmin' role. Also fix some logic when determining when to create roles/users. 2011-12-08 18:04:22 -08:00
Adam Gandelman
4f2423a5df init 2011-12-08 09:52:12 -08:00