|
2 | 2 |
|
3 | 3 | unique template features/ssh/ce; |
4 | 4 |
|
5 | | -variable CE_PBS_KNOWNHOSTS ?= INSTALL_ROOT+'/etc/edg-pbs-knownhosts.conf'; |
6 | | - |
7 | 5 | # ---------------------------------------------------------------------------- |
8 | 6 | # Control variables initialization |
9 | 7 | # ----------------------------------------------------------------------------- |
@@ -109,17 +107,6 @@ variable HOSTS_EQUIV_LIST = { |
109 | 107 | }; |
110 | 108 |
|
111 | 109 |
|
112 | | -# ---------------------------------------------------------------------------- |
113 | | -# pbsknownhosts |
114 | | -# ----------------------------------------------------------------------------- |
115 | | -include { 'components/pbsknownhosts/config' }; |
116 | | -"/software/components/pbsknownhosts/configFile" = CE_PBS_KNOWNHOSTS; |
117 | | - |
118 | | -# Add CE explicitly as it is not a PBS node |
119 | | -"/software/components/pbsknownhosts/nodes" = CE_HOST_LIST; |
120 | | -"/software/components/pbsknownhosts/targets" = list("knownhosts"); |
121 | | - |
122 | | - |
123 | 110 | # ---------------------------------------------------------------------------- |
124 | 111 | # Build SSH client configuration |
125 | 112 | # ---------------------------------------------------------------------------- |
@@ -199,32 +186,3 @@ include { 'components/ssh/config' }; |
199 | 186 | } else { |
200 | 187 | return(SELF); |
201 | 188 | }; |
202 | | - |
203 | | - |
204 | | -# ---------------------------------------------------------------------------- |
205 | | -# cron |
206 | | -# ---------------------------------------------------------------------------- |
207 | | -include { 'components/cron/config' }; |
208 | | - |
209 | | -"/software/components/cron/entries" = |
210 | | - push(nlist( |
211 | | - "name","edg-pbs-knownhosts", |
212 | | - "user","root", |
213 | | - "frequency", "33 */2 * * *", |
214 | | - "command","/usr/sbin/edg-pbs-knownhosts")); |
215 | | - |
216 | | - |
217 | | -# ---------------------------------------------------------------------------- |
218 | | -# altlogrotate |
219 | | -# ---------------------------------------------------------------------------- |
220 | | -include { 'components/altlogrotate/config' }; |
221 | | - |
222 | | -"/software/components/altlogrotate/entries/edg-pbs-knownhosts" = |
223 | | - nlist("pattern", "/var/log/edg-pbs-knownhosts.ncm-cron.log", |
224 | | - "compress", true, |
225 | | - "missingok", true, |
226 | | - "frequency", "weekly", |
227 | | - "create", true, |
228 | | - "ifempty", true, |
229 | | - "rotate", 1); |
230 | | - |
0 commit comments