svn keywords, and url in specfile
[nodeconfig.git] / db-config.d / 030-conf_files_services
1 # -*-python-*-
2 #################### conf files
3
4 conf_files = [
5
6     # NTP configuration
7     {'enabled': True,
8      'source': 'PlanetLabConf/ntp.conf.php',
9      'dest': '/etc/ntp.conf',
10      'file_permissions': '644',
11      'file_owner': 'root',
12      'file_group': 'root',
13      'preinstall_cmd': '',
14      'postinstall_cmd': '/etc/rc.d/init.d/ntpd restart',
15      'error_cmd': '',
16      'ignore_cmd_errors': False,
17      'always_update': False},
18     {'enabled': True,
19      'source': 'PlanetLabConf/ntp/step-tickers.php',
20      'dest': '/etc/ntp/step-tickers',
21      'file_permissions': '644',
22      'file_owner': 'root',
23      'file_group': 'root',
24      'preinstall_cmd': '',
25      'postinstall_cmd': '/etc/rc.d/init.d/ntpd restart',
26      'error_cmd': '',
27      'ignore_cmd_errors': False,
28      'always_update': False},
29     
30     # Log rotation configuration
31     {'enabled': True,
32      'source': 'PlanetLabConf/logrotate.conf',
33      'dest': '/etc/logrotate.conf',
34      'file_permissions': '644',
35      'file_owner': 'root',
36      'file_group': 'root',
37      'preinstall_cmd': '',
38      'postinstall_cmd': '',
39      'error_cmd': '',
40      'ignore_cmd_errors': False,
41      'always_update': False},
42     # updatedb/locate nightly cron job
43     {'enabled': True,
44      'source': 'PlanetLabConf/slocate.cron',
45      'dest': '/etc/cron.daily/slocate.cron',
46      'file_permissions': '755',
47      'file_owner': 'root',
48      'file_group': 'root',
49      'preinstall_cmd': '',
50      'postinstall_cmd': '',
51      'error_cmd': '',
52      'ignore_cmd_errors': False,
53      'always_update': False},
54     
55     # Sendmail configuration
56     {'enabled': True,
57      'source': 'PlanetLabConf/sendmail.mc',
58      'dest': '/etc/mail/sendmail.mc',
59      'file_permissions': '644',
60      'file_owner': 'root',
61      'file_group': 'root',
62      'preinstall_cmd': '',
63      'postinstall_cmd': '',
64      'error_cmd': '',
65      'ignore_cmd_errors': False,
66      'always_update': False},
67     {'enabled': True,
68      'source': 'PlanetLabConf/sendmail.cf',
69      'dest': '/etc/mail/sendmail.cf',
70      'file_permissions': '644',
71      'file_owner': 'root',
72      'file_group': 'root',
73      'preinstall_cmd': '',
74      'postinstall_cmd': 'service sendmail restart',
75      'error_cmd': '',
76      'ignore_cmd_errors': False,
77      'always_update': False},
78     
79     # /etc/issue
80     {'enabled': True,
81      'source': 'PlanetLabConf/issue.php',
82      'dest': '/etc/issue',
83      'file_permissions': '644',
84      'file_owner': 'root',
85      'file_group': 'root',
86      'preinstall_cmd': '',
87      'postinstall_cmd': '',
88      'error_cmd': '',
89      'ignore_cmd_errors': False,
90      'always_update': False},
91
92     ]
93
94 for conf_file in conf_files:
95         SetConfFile(conf_file)