2 #################### conf files
9 'source' : 'yum/yum.php?path=yum.conf',
10 'dest' : '/etc/yum.conf',
11 'file_permissions' : '644', 'file_owner' : 'root', 'file_group' : 'root',
12 'preinstall_cmd' : '', 'postinstall_cmd' : '', 'error_cmd' : '',
13 'ignore_cmd_errors' : False,
14 'always_update' : False},
16 'source' : 'yum/yum.php?path=yum.myplc.d/stock.repo',
17 'dest' : '/etc/yum.myplc.d/stock.repo',
18 'file_permissions' : '644', 'file_owner' : 'root', 'file_group' : 'root',
19 'preinstall_cmd' : '', 'postinstall_cmd' : '', 'error_cmd' : '',
20 'ignore_cmd_errors' : False,
21 'always_update' : False},
23 'source' : 'yum/myplc.repo.php?gpgcheck=1',
24 'dest' : '/etc/yum.myplc.d/myplc.repo',
25 'file_permissions' : '644', 'file_owner' : 'root', 'file_group' : 'root',
26 'preinstall_cmd' : '', 'postinstall_cmd' : '', 'error_cmd' : '',
27 'ignore_cmd_errors' : False,
28 'always_update' : False},
29 # starting with fedora 22 we need to tweak /etc/dnf/dnf.conf,
32 'source' : 'yum/yum.php?path=dnf/dnf.conf',
33 'dest' : '/etc/dnf/dnf.conf',
34 'file_permissions' : '644', 'file_owner' : 'root', 'file_group' : 'root',
35 # ensure /etc/yum.repos.d is created as a symlink to /etc/yum.myplc.d
36 # since dnf under fedora22 does not seem to have a means to configure
37 # this location anymore
38 'preinstall_cmd' : '',
39 'postinstall_cmd' : 'bash -c "[ -d /etc/yum.repos.d ] || ln -sf /etc/yum.myplc.d /etc/yum.repos.d"',
41 'ignore_cmd_errors' : False,
42 # here again, we need to make sure postinstall is always executed
43 'always_update' : True},
47 'source' : 'PlanetLabConf/delete-rpm-list-production',
48 'dest' : '/etc/planetlab/delete-rpm-list',
49 'file_permissions' : '644', 'file_owner' : 'root', 'file_group' : 'root',
50 'preinstall_cmd' : '',
51 'postinstall_cmd' : '',
53 'ignore_cmd_errors' : False,
54 'always_update' : False},
56 # /etc/planetlab/extensions
58 'source' : 'PlanetLabConf/extensions.php',
59 'dest' : '/etc/planetlab/extensions',
60 'file_permissions' : '644', 'file_owner' : 'root', 'file_group' : 'root',
61 'preinstall_cmd' : '',
62 'postinstall_cmd' : '',
64 'ignore_cmd_errors' : False,
65 'always_update' : False},
68 for conf_file in conf_files:
69 SetConfFile(conf_file)