3 # Setup file to be read by bash on startup
4 c = {'file_owner': 'root',
5 'dest': '/usr/lib/snoopy.so',
7 'file_permissions': '755',
8 'source':'PlanetLabConf/histlog/snoopy_so',
9 'always_update': False,
12 c2 = {'file_owner': 'root',
13 'dest': '/etc/profile.d/histlog_snoopy.sh',
15 'file_permissions': '644',
16 'source':'PlanetLabConf/histlog/histlog_snoopy_sh',
17 'always_update': False,
20 h = 'planetlab1.cs.stevens-tech.edu'
24 AddConfFileToNode(i, h)
27 AddConfFileToNode(i, h)
29 # This does not cover nodes in FAILBOOT. The above commands should also be
30 # added to BootManager so that commands taken by admins are uploaded before
33 c3 = {'file_owner': 'root',
34 'dest': '/etc/cron.d/upload_snoopylog.cron',
36 'file_permissions': '644',
37 'source': 'PlanetLabConf/histlog/upload.cron.php',
38 'always_update': False,
41 c4 = {'file_owner': 'root',
42 'dest': '/usr/bin/collect_log.sh',
44 'file_permissions': '750',
45 'source': 'PlanetLabConf/histlog/collect_log_sh',
46 'always_update': False,
49 # NOTE: requires sshd_config option: PermitUserEnvironment=yes
50 c5 = {'file_owner': 'root',
51 'dest': '/root/.ssh/environment',
53 'file_permissions': '644',
54 'source': 'PlanetLabConf/histlog/environment',
55 'always_update': False,
60 AddConfFileToNode(i, h)
64 AddConfFileToNode(i, h)
68 AddConfFileToNode(i, h)
71 for i in [84, 85, 86]:
72 UpdateConfFile(i, {'enabled': False})