1 |
node rabbit { |
node rabbit { |
2 |
# Location: Server offered by Dedibox (paris) |
# Location: Server offered by Dedibox (paris) |
3 |
# |
# |
4 |
# - used to create isos ( and live, and so on ) |
# - used to create isos ( and live, and so on ) |
5 |
# |
# |
6 |
include common::default_mageia_server |
include common::default_mageia_server |
7 |
timezone::timezone { "Europe/Paris": } |
timezone::timezone { 'Europe/Paris': } |
8 |
include bcd::base |
include bcd::base |
9 |
include bcd::web |
include bcd::web |
10 |
include bcd::rsync |
include bcd::rsync |
15 |
include mirror::newrelease |
include mirror::newrelease |
16 |
include releasekey |
include releasekey |
17 |
|
|
18 |
youri-check::config {"config_cauldron": |
youri-check::config {'config_cauldron': |
19 |
version => "cauldron", |
version => 'cauldron', |
20 |
} |
} |
21 |
youri-check::check {"check_cauldron": |
youri-check::check {'check_cauldron': |
22 |
version => "cauldron", |
version => 'cauldron', |
23 |
hour => "*", |
hour => '*', |
24 |
minute => 4 |
minute => 4 |
25 |
} |
} |
26 |
youri-check::config {"config_1": |
|
27 |
version => "1", |
youri-check::config {'config_1': |
28 |
} |
version => '1', |
29 |
youri-check::check {"check_1": |
} |
30 |
version => "1", |
youri-check::check {'check_1': |
31 |
hour => "*/2", |
version => '1', |
32 |
minute => 30 |
hour => '*/2', |
33 |
|
minute => 30 |
34 |
} |
} |
35 |
|
|
36 |
# for testing iso quickly |
# for testing iso quickly |
37 |
include libvirtd::kvm |
include libvirtd::kvm |
38 |
libvirtd::group_access { "mga-iso_makers": } |
libvirtd::group_access { 'mga-iso_makers': } |
39 |
|
|
40 |
# to ease the creation of test iso |
# to ease the creation of test iso |
41 |
$netinst_iso_path = "/var/lib/libvirt/netboot" |
$netinst_iso_path = '/var/lib/libvirt/netboot' |
42 |
|
|
43 |
file { $netinst_iso_path: |
file { $netinst_iso_path: |
44 |
ensure => directory, |
ensure => directory, |
45 |
} |
} |
46 |
|
|
47 |
libvirtd::storage { "netinst_iso": |
libvirtd::storage { 'netinst_iso': |
48 |
path => $netinst_iso_path, |
path => $netinst_iso_path, |
49 |
require => File[$netinst_iso_path], |
require => File[$netinst_iso_path], |
50 |
} |
} |
51 |
|
|
52 |
include auto_installation::download |
include auto_installation::download |
53 |
auto_installation::download::netboot_images { "mandriva": |
auto_installation::download::netboot_images { 'mandriva': |
54 |
path => $netinst_iso_path, |
path => $netinst_iso_path, |
55 |
versions => ["2010.0","2010.1"], |
versions => ['2010.0','2010.1'], |
56 |
archs => ['i586','x86_64'], |
archs => ['i586','x86_64'], |
57 |
mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/", |
mirror_path => 'ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/', |
58 |
files => ['boot.iso'], |
files => ['boot.iso'], |
59 |
require => File[$netinst_iso_path], |
require => File[$netinst_iso_path], |
60 |
} |
} |
61 |
|
|
62 |
# for testing pxe support of libvirt |
# for testing pxe support of libvirt |
63 |
include auto_installation::variables |
include auto_installation::variables |
64 |
libvirtd::network {"pxe_network": |
libvirtd::network {'pxe_network': |
65 |
network => "192.168.123.0/24", |
network => '192.168.123.0/24', |
66 |
tftp_root => $auto_installation::variables::pxe_dir, |
tftp_root => $auto_installation::variables::pxe_dir, |
67 |
bridge_name => "virbr1", |
bridge_name => 'virbr1', |
68 |
} |
} |
69 |
|
|
70 |
include auto_installation::pxe_menu |
include auto_installation::pxe_menu |
71 |
auto_installation::mandriva_installation_entry { "pxe_test": |
auto_installation::mandriva_installation_entry { 'pxe_test': |
72 |
version => "2010.1", |
version => '2010.1', |
73 |
arch => "i586", |
arch => 'i586', |
74 |
} |
} |
75 |
} |
} |