-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathcompute_node.pp
More file actions
60 lines (58 loc) · 1.34 KB
/
compute_node.pp
File metadata and controls
60 lines (58 loc) · 1.34 KB
1
2
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
#
# == Class one::compute_node
#
# Installs OpenNebula required packages and configuration files for OpenNebula
# virtualization hosts
#
# === Author
# ePost Development GmbH
# (c) 2013
#
# Contributors:
# - Martin Alfke
# - Achim Ledermueller (Netways)
# - Sebastian Saemann (Netways)
#
# === Parameters
# none
#
# === Usage
#
# do not use this class directly. Use class one instead.
# See documentation in one/manifests/init.pp
#
# === License
# Apache License Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0.html
#
class one::compute_node (
$puppetdb = $one::puppetdb,
$oneid = $one::oneid,
$im_mad = $one::im_mad,
$vm_mad = $one::vm_mad,
$vn_mad = $one::vn_mad,
) {
include one::prerequisites
include one::install
include one::config
include one::service
include one::compute_node::config
include one::compute_node::service
include one::compute_node::install
Class['one::prerequisites']
-> Class['one::install']
-> Class['one::config']
-> Class['one::compute_node::install']
~> Class['one::compute_node::config']
~> Class['one::compute_node::service']
~> Class['one::service']
if ($puppetdb == true) {
# Register the node as a onehost in the puppetdb
@@onehost { $facts['networking']['fqdn'] :
tag => $oneid,
im_mad => $im_mad,
vm_mad => $vm_mad,
vn_mad => $vn_mad,
}
}
}