3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'modules/openstack/manifests/magnum/service/epoxy.pp', line 3
class openstack::magnum::service::epoxy(
String $db_user,
String $region,
Array[Stdlib::Fqdn] $memcached_nodes,
Array[Stdlib::Fqdn] $rabbitmq_nodes,
String $db_pass,
String $db_name,
Stdlib::Fqdn $db_host,
Stdlib::Fqdn $etcd_discovery_host,
String $ldap_user_pass,
Stdlib::Fqdn $keystone_fqdn,
Stdlib::Port $api_bind_port,
String $rabbit_user,
String $rabbit_pass,
String $domain_admin_pass,
String $magnum_driver,
Stdlib::HTTPSUrl $helm_chart_repo,
) {
require "openstack::serverpackages::epoxy::${::lsbdistcodename}"
package { 'magnum-api':
ensure => 'present',
}
package { 'magnum-conductor':
ensure => 'present',
}
if $magnum_driver == 'capi_helm' {
package { 'python3-magnum-capi-helm':
ensure => 'present',
}
package { 'helm3':
ensure => 'present',
}
}
$version = inline_template("<%= @title.split(':')[-1] -%>")
$keystone_auth_username = 'magnum'
$keystone_auth_project = 'service'
$etcd_discovery_url = "https://${etcd_discovery_host}"
file {
'/etc/magnum/magnum.conf':
content => template('openstack/epoxy/magnum/magnum.conf.erb'),
owner => 'magnum',
group => 'magnum',
mode => '0440',
show_diff => false,
notify => Service['magnum-api', 'magnum-conductor'],
require => Package['magnum-api', 'magnum-conductor'];
'/etc/magnum/policy.yaml':
source => 'puppet:///modules/openstack/epoxy/magnum/policy.yaml',
owner => 'root',
group => 'root',
mode => '0644',
notify => Service['magnum-api', 'magnum-conductor'],
require => Package['magnum-api', 'magnum-conductor'];
'/etc/init.d/magnum-api':
content => template('openstack/epoxy/magnum/magnum-api.erb'),
owner => 'root',
group => 'root',
mode => '0755',
}
}
|