and again
[bootstrapfs.git] / db-config.d / 030-conf_files_node_update
1 # -*-python-*-
2 #################### conf files
3
4 conf_files = [
5
6 # myplc/noderepo
7     # YUM configuration
8         { 'enabled' : True,
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},
15         { 'enabled' : True,
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},
22         { 'enabled' : True,
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,
30         # not /etc/yum.conf
31         { 'enabled' : True,
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"',
40           'error_cmd' : '',
41           'ignore_cmd_errors' : False,
42           # here again, we need to make sure postinstall is always executed
43           'always_update' : True},
44     
45 # NodeUpdate
46         { 'enabled' : 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' : '',
52           'error_cmd' : '',
53           'ignore_cmd_errors' : False,
54           'always_update' : False},
55 # NodeUpdate - ctd
56     # /etc/planetlab/extensions
57         { 'enabled' : True,
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' : '',
63           'error_cmd' : '',
64           'ignore_cmd_errors' : False,
65           'always_update' : False},
66     ]
67
68 for conf_file in conf_files:
69         SetConfFile(conf_file)