Commit Graph

7 Commits

Author SHA1 Message Date
Matt Carter 4c6ac4712d Update uamlite.sh to handle empty user_sshkeys arrays
Previously _uamlite.sh.tpl would fail to render if any user data
had an empty user_sshkeys array. This is because the template would
check to see if the key existed, but not actually make sure that the
array contained within that key had any elements. "first" would be
called against the empty array, which would return nil, and then
the outer eq function call would fail (as it can't be used to
compare nil values).

This patch set adds a default statement after the "first" function,
so that if the array is empty and first returns nil, a default of
"Unmanaged" will be returned, which will end up making the eq
statement evaluate to false, and the code inside the if statement to
not be run.

Change-Id: I52713795284cd1d0961bd430858061f9df9c5f78
2019-06-25 15:16:31 -05:00
Anderson, Craig (ca846m) 87268308f8 Use common logger for consistent log output
Use the common logger for consistent log output for some echo statements
that were not making use of it.

Change-Id: I7fae2a950318f5cd3245a4571dc464009726d4ae
2019-04-11 13:23:05 -07:00
Roman Gorshunov d734925bb6 Fix: various documentation and URL fixes
1) UCP -> Airship
2) readthedocs.org -> readthedocs.io (there is redirect)
3) http -> https
4) attcomdev -> airshipit (repo on quay.io)
5) att-comdev -> openstack/airship-* (repo on github/openstack git)
6) many URLs have been verified and adjusted to be current
7) no need for 'en/latest/' path in URL of the RTD
8) added more info to some setup.cfg and setup.py files
9) ucp-integration docs are now in airship-in-a-bottle
10) airship-divingbell-ubuntu gate repo split fix (tools/helm_tk.sh)
11) various other minor fixes

Change-Id: I1b7956e77fdd2f01368df1b81b44fdd51ee8443c
2018-09-25 11:44:57 +02:00
Craig Anderson 77be3585ba Add ability to set user password in uamlite
Change-Id: I4ecc556f02f973289a9dc019e2b73552f5d966fc
2018-05-07 19:11:43 +00:00
Craig Anderson e9d71dedb0 [Bug 404183] Add user purge option to uamlite
purge_expired_users option was added to uamlite chart to allow purging of old
user accounts and the data in their home directories.

Addressed a corner case where the user could lose system access by specifying
ssh key(s) only for the built-in account.

Change-Id: Iccfc914eea219521a290c2b5949ccc2d40d8dbb6
2018-04-17 16:36:13 +00:00
Craig Anderson 73e7437b9b [Bug 402389] Script should work without users
Change-Id: I7af070f71ed940be5869f38f02c5b44d8795f14b
2018-04-04 20:39:04 +00:00
Craig Anderson 9e7028416e [US367408] Add support for user & ssh key mgmt
Change-Id: I0ef68dfd80194e6da289fbf86f5cd2ee5c7edad8
2018-03-16 23:30:27 +00:00