41b8910ab6
According to the announcement during the 2017-12-05 openstack-infra meeting [1], I'm adding myself to statusbot and adding my key to join the infra-root team. I've read the SSH access guidelines [2], understand them and meet each of the listed criteria. [1]: http://eavesdrop.openstack.org/meetings/infra/2017/infra.2017-12-05-19.01.log.txt [2]: https://docs.openstack.org/infra/system-config/sysadmin.html#ssh-access Change-Id: I13bfeb03e2249bf27ac3889f190a6331a5de3b5a
67 lines
2.1 KiB
Puppet
67 lines
2.1 KiB
Puppet
# Class: openstack_project::users_install
|
|
#
|
|
# This class handles adding and removing openstack admin users
|
|
# from the servers.
|
|
#
|
|
# Parameters:
|
|
# install_users - Boolean to set install or removal of O.O
|
|
# admins. Defaults to 'false', can be set in hiera.
|
|
#
|
|
# Requires:
|
|
# openstack_project::users - must contain the users designated.
|
|
#
|
|
# Sample Usage:
|
|
# include openstack_project::users_install
|
|
# class { 'openstack_project::users_install':
|
|
# install_users => true,
|
|
# }
|
|
|
|
class openstack_project::users_install (
|
|
$install_users = false,
|
|
) {
|
|
|
|
include ::openstack_project::users
|
|
|
|
## TODO: this should be it's own manifest.
|
|
if ( $install_users == true ) {
|
|
package { $::openstack_project::params::user_packages:
|
|
ensure => present
|
|
}
|
|
## NOTE: This list is arranged in order of chronological precedence,
|
|
## additions should be appended to the end.
|
|
realize (
|
|
User::Virtual::Localuser['mordred'],
|
|
User::Virtual::Localuser['corvus'],
|
|
User::Virtual::Localuser['clarkb'],
|
|
User::Virtual::Localuser['fungi'],
|
|
User::Virtual::Localuser['jhesketh'],
|
|
User::Virtual::Localuser['yolanda'],
|
|
User::Virtual::Localuser['pabelanger'],
|
|
User::Virtual::Localuser['rcarrillocruz'],
|
|
User::Virtual::Localuser['ianw'],
|
|
User::Virtual::Localuser['shrews'],
|
|
User::Virtual::Localuser['dmsimard'],
|
|
User::Virtual::Localuser['frickler'],
|
|
)
|
|
user::virtual::disable{'slukjanov':}
|
|
user::virtual::disable{'elizabeth':}
|
|
user::virtual::disable{'nibz':}
|
|
} else {
|
|
user::virtual::disable{'mordred':}
|
|
user::virtual::disable{'corvus':}
|
|
user::virtual::disable{'clarkb':}
|
|
user::virtual::disable{'fungi':}
|
|
user::virtual::disable{'slukjanov':}
|
|
user::virtual::disable{'elizabeth':}
|
|
user::virtual::disable{'jhesketh':}
|
|
user::virtual::disable{'nibz':}
|
|
user::virtual::disable{'yolanda':}
|
|
user::virtual::disable{'pabelanger':}
|
|
user::virtual::disable{'rcarrillocruz':}
|
|
user::virtual::disable{'ianw':}
|
|
user::virtual::disable{'shrews':}
|
|
user::virtual::disable{'dmsimard':}
|
|
user::virtual::disable{'frickler':}
|
|
}
|
|
}
|