system-config/modules/openstack_project/manifests/users_install.pp
Ian Wienand e263b35f54 Add ianw key and to infra-root
I have read and agree to [1]

I'm happy to be a guinea pig for a ed25519 key, because it seems like
we're very close to having support everywhere.

[1] http://docs.openstack.org/infra/system-config/sysadmin.html#ssh-access

Depends-On: I2a625c4dbb72f3ae1f9644636d635033be817465
Change-Id: Id91e954097cc928602be213cf05ba2194de6b635
2016-07-15 07:03:56 +10:00

60 lines
1.8 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
}
realize (
User::Virtual::Localuser['mordred'],
User::Virtual::Localuser['corvus'],
User::Virtual::Localuser['clarkb'],
User::Virtual::Localuser['fungi'],
User::Virtual::Localuser['slukjanov'],
User::Virtual::Localuser['elizabeth'],
User::Virtual::Localuser['jhesketh'],
User::Virtual::Localuser['nibz'],
User::Virtual::Localuser['pabelanger'],
User::Virtual::Localuser['yolanda'],
User::Virtual::Localuser['rcarrillocruz'],
User::Virtual::Localuser['ianw'],
)
} 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{'pabelanger':}
user::virtual::disable{'yolanda':}
user::virtual::disable{'rcarrillocruz':}
user::virtual::disable{'ianw':}
}
}