2012-11-15 14:25:13 -08:00
|
|
|
# == Class: openstack_project::server
|
|
|
|
#
|
2012-07-20 18:56:35 -07:00
|
|
|
# A server that we expect to run for some time
|
2012-08-05 13:02:21 -05:00
|
|
|
class openstack_project::server (
|
2014-09-10 13:17:45 -07:00
|
|
|
$pin_puppet = '3.',
|
2014-07-02 14:34:36 -07:00
|
|
|
$ca_server = undef,
|
2014-10-18 16:22:52 -07:00
|
|
|
$afs = false,
|
2016-01-23 19:45:59 -08:00
|
|
|
$afs_cache_size = 500000,
|
2015-06-10 07:47:11 +02:00
|
|
|
$pypi_index_url = 'https://pypi.python.org/simple',
|
2012-09-06 10:32:48 -07:00
|
|
|
) {
|
2017-03-25 18:48:55 +01:00
|
|
|
|
2018-07-25 12:36:26 -05:00
|
|
|
# Include ::apt while we work on the puppet->ansible transition
|
|
|
|
if ($::osfamily == 'Debian') {
|
|
|
|
include ::apt
|
2017-03-25 18:48:55 +01:00
|
|
|
}
|
|
|
|
|
2017-04-02 21:45:28 +02:00
|
|
|
###########################################################
|
|
|
|
# Process if ( $high_level_directive ) blocks
|
|
|
|
|
2017-04-21 21:07:56 +02:00
|
|
|
if $afs {
|
|
|
|
class { 'openafs::client':
|
|
|
|
cell => 'openstack.org',
|
|
|
|
realm => 'OPENSTACK.ORG',
|
|
|
|
admin_server => 'kdc.openstack.org',
|
|
|
|
cache_size => $afs_cache_size,
|
|
|
|
kdcs => [
|
2019-02-22 10:30:57 -08:00
|
|
|
'kdc03.openstack.org',
|
2017-12-18 15:26:00 -05:00
|
|
|
'kdc04.openstack.org',
|
2017-04-21 21:07:56 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-20 18:56:35 -07:00
|
|
|
}
|