-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsite.pp
53 lines (42 loc) · 977 Bytes
/
site.pp
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
if versioncmp($::puppetversion,'3.6.1') >= 0 {
$allow_virtual_packages = hiera('allow_virtual_packages',false)
Package {
allow_virtual => $allow_virtual_packages,
}
}
class yum {
exec { "yum-update":
command => "/bin/yum -y -q update"
}
}
class docker {
yumrepo { "docker-ce-stable":
baseurl => "https://download.docker.com/linux/centos/7/$architecture/stable",
enabled => 1,
gpgcheck => 0
}
}
node 'default' {
# define stages
stage {
'pre' : ;
'post': ;
}
# specify stage that each class belongs to;
# if not specified, they belong to Stage[main]
class {
'yum': stage => 'pre';
'docker': stage => 'pre';
}
# stage order
Stage['pre'] -> Stage[main] -> Stage['post']
# modules
include hysds_dev
include hysds_base
include scientific_python
include cloud_utils
include verdi
}
# set user/group in global scope so that it can be inherited
$user = 'ops'
$group = 'ops'