-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathinit.pp
More file actions
50 lines (44 loc) · 1.62 KB
/
init.pp
File metadata and controls
50 lines (44 loc) · 1.62 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
class cloudstack {
include cloudstack::no_selinux
case $::operatingsystem {
centos,redhat : {
yumrepo{'Cloudstack':
baseurl => "http://yumrepo/repositories/rhel/$::operatingsystemrelease/stable/oss/",
name => 'CloudStack',
enable => 1,
gpgcheck => 0,
}
}
fedora : {
yumrepo{'Cloudstack':
baseurl => "http://192.168.203.177/foo/",
name => 'CloudStack',
enabled => 1,
gpgcheck => 0,
}
}
}
file { '/etc/sudoers':
source => 'puppet://puppet/cloudstack/sudoers',
mode => '0440',
owner => 'root',
group => 'root',
}
file { '/etc/hosts':
content => template('cloudstack/hosts'),
}
package {wget: ensure => present} ### Not needed after 2.2.9, see bug 11258
######### DEFINITIONS ####################
$cs_mgmt_server = '192.168.203.177'
$internaldns1 = '192.168.203.1'
$dns1 = '8.8.8.8'
$cs_agent_netmask = '255.255.255.0'
$cs_sec_storage_nfs_server = '192.168.203.176'
$cs_sec_storage_mnt_point = '/secondary'
$pri_storage_nfs_server = '192.168.203.176'
$pri_storage_mnt_point = '/primary'
$hvtype = 'KVM'
$system_tmplt_dl_cmd = '/usr/lib64/cloud/agent/scripts/storage/secondary/cloud-install-sys-tmplt'
$sysvm_url_kvm = 'http://download.cloud.com/releases/2.2.0/systemvm.qcow2.bz2'
$sysvm_url_xen = 'http://download.cloud.com/releases/2.2.0/systemvm.vhd.bz2'
}