Guest User

Untitled

a guest
Jul 27th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.94 KB | None | 0 0
  1. ; = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  2. ; = configuration file for opsiclientd =
  3. ; = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  4.  
  5.  
  6. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  7. ; - global settings -
  8. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  9. [global]
  10.  
  11. # Location of the log file.
  12. log_file = c:\\opsi.org\\log\\opsiclientd.log
  13.  
  14. # Set the log (verbosity) level
  15. # (0 <= log level <= 9)
  16. # 0: nothing, 1: essential, 2: critical, 3: errors, 4: warnings, 5: notices
  17. # 6: infos, 7: debug messages, 8: more debug messages, 9: passwords
  18. log_level = 6
  19.  
  20. # Client id.
  21. host_id = bg-nb002.domain.de
  22.  
  23. # Opsi host key.
  24. opsi_host_key = xxxxxxxxxx
  25.  
  26. # Verify opsi server certs
  27. verify_server_cert = False
  28.  
  29. # Verify opsi server certs by ca
  30. verify_server_cert_by_ca = False
  31.  
  32. # On every daemon startup the user login gets blocked
  33. # If the gui starts up and no events are being processed the login gets unblocked
  34. # If no gui startup is noticed after <wait_for_gui_timeout> the login gets unblocked
  35. # Set to 0 to wait forever
  36. wait_for_gui_timeout = 10
  37.  
  38. # Application to run while blocking login
  39. block_login_notifier = %global.base_dir%\\notifier.exe -s notifier\\block_login.ini
  40. base_dir = C:\Program Files (x86)\opsi.org\opsi-client-agent
  41. locale_dir = C:\Program Files (x86)\opsi.org\opsi-client-agent\locale
  42. log_dir = C:\opsi.org\log
  43. server_cert_dir = C:\opsi.org\opsiclientd\server-certs
  44. state_file = C:\opsi.org\opsiclientd\state.json
  45. timeline_db = C:\opsi.org\opsiclientd\timeline.sqlite
  46.  
  47. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  48. ; - config service settings -
  49. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  50. [config_service]
  51. # Service url.
  52. # http(s)://<opsi config server address>:<port>/rpc
  53. url = https://opsi:4447/rpc
  54.  
  55. # Conection timeout.
  56. connection_timeout = 15
  57.  
  58. # The time in seconds after which the user can cancel the connection establishment
  59. user_cancelable_after = 10
  60.  
  61. # If this option is set, the local system time will be synced with time from service
  62. sync_time_from_service = False
  63.  
  64. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  65. ; - depot server settings -
  66. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  67. [depot_server]
  68.  
  69. # Depot server id
  70. depot_id = opsi.domain.de
  71.  
  72. # Depot url.
  73. # smb://<depot address>/<share name>/<path to products>
  74. url = smb://opsi/opsi_depot/
  75.  
  76. # Local depot drive
  77. drive = v:
  78.  
  79. # Username that is used for network connection [domain\]<username>
  80. username = pcpatch
  81.  
  82. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  83. ; - cache service settings -
  84. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  85. [cache_service]
  86. # Maximum product cache size in bytes
  87. product_cache_max_size = 5000000000
  88. extension_config_dir = C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\extend.d
  89. storage_dir = C:\opsi.org\cache
  90.  
  91. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  92. ; - control server settings -
  93. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  94. [control_server]
  95.  
  96. # The network interfaces to bind to.
  97. # This must be the IP address of an network interface.
  98. # Use 0.0.0.0 to listen to all interfaces
  99. interface = 0.0.0.0
  100.  
  101. # The port where opsiclientd will listen for HTTPS rpc requests.
  102. port = 4441
  103.  
  104. # The location of the server certificate.
  105. ssl_server_cert_file = %global.base_dir%\\opsiclientd\\opsiclientd.pem
  106.  
  107. # The location of the server private key
  108. ssl_server_key_file = %global.base_dir%\\opsiclientd\\opsiclientd.pem
  109.  
  110. # The location of the static files
  111. static_dir = %global.base_dir%\\opsiclientd\\static_html
  112.  
  113. # The maximum number of authentication failures before a client ip
  114. # is blocked for an amount of time.
  115. max_authentication_failures = 5
  116.  
  117. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  118. ; - notification server settings -
  119. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  120. [notification_server]
  121.  
  122. # The network interfaces to bind to.
  123. # This must be the IP address of an network interface.
  124. # Use 0.0.0.0 to listen to all interfaces
  125. interface = 127.0.0.1
  126.  
  127. # The first port where opsiclientd will listen for notification clients.
  128. start_port = 44000
  129.  
  130. # Port for popup notification server
  131. popup_port = 45000
  132. port = 4442
  133.  
  134. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  135. ; - opsiclientd notifier settings -
  136. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  137. [opsiclientd_notifier]
  138.  
  139. # Notifier application command
  140. command = %global.base_dir%\\notifier.exe -p %port% -i %id%
  141.  
  142. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  143. ; - opsiclientd rpc tool settings -
  144. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  145. [opsiclientd_rpc]
  146.  
  147. # RPC tool command
  148. command = %global.base_dir%\\opsiclientd_rpc.exe "%global.host_id%" "%global.opsi_host_key%" "%control_server.port%"
  149.  
  150. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  151. ; - action processor settings -
  152. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  153. [action_processor]
  154. # Locations of action processor
  155. local_dir = %global.base_dir%\\opsi-winst
  156. remote_dir = opsi-winst\\files\\opsi-winst
  157. filename = winst32.exe
  158.  
  159. # Action processor command
  160. command = "%action_processor.local_dir%\\%action_processor.filename%" /opsiservice "%service_url%" /clientid %global.host_id% /username %global.host_id% /password %global.opsi_host_key%
  161.  
  162. # Load profile / environment of %run_as_user%
  163. create_environment = False
  164. create_user = True
  165. delete_user = True
  166. run_as_user = SYSTEM
  167.  
  168. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  169. ; - events -
  170. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  171. [event_default]
  172. ; === Event configuration
  173. # Type of the event (string)
  174. type = template
  175. # Interval for timer events in seconds (int)
  176. interval = -1
  177. # Maximum number of event repetitions after which the event will be deactivated (int, -1 = forever)
  178. max_repetitions = -1
  179. # Time in seconds to wait before event becomes active (int, 0 to disable delay)
  180. activation_delay = 0
  181. # Time in seconds to wait before an event will be fired (int, 0 to disable delay)
  182. notification_delay = 0
  183. # Event notifier command (string)
  184. event_notifier_command = %opsiclientd_notifier.command% -s notifier\\event.ini
  185. # The desktop on which the event notifier will be shown on (current/default/winlogon)
  186. event_notifier_desktop = current
  187. # Block login while event is been executed (bool)
  188. block_login = false
  189. # Lock workstation on event occurrence (bool)
  190. lock_workstation = false
  191. # Logoff the current logged in user on event occurrence (bool)
  192. logoff_current_user = false
  193. # Get config settings from service (bool)
  194. get_config_from_service = true
  195. # Store config settings in config file (bool)
  196. update_config_file = true
  197. # Transmit log file to opsi service after the event processing has finished (bool)
  198. write_log_to_service = true
  199. # Shutdown machine after action processing has finished (bool)
  200. shutdown = false
  201. # Reboot machine after action processing has finished (bool)
  202. reboot = false
  203.  
  204. ; === Sync/cache settings
  205. # Sync configuration from local config cache to server (bool)
  206. sync_config_to_server = false
  207. # Sync configuration from server to local config cache (bool)
  208. sync_config_from_server = false
  209. # Sync configuration from local config cache to server after action processing (bool)
  210. post_sync_config_to_server = false
  211. # Sync configuration from server to local config cache after action processing (bool)
  212. post_sync_config_from_server = false
  213. # Work on local config cache
  214. use_cached_config = false
  215. # Cache products for which actions should be executed in local depot cache (bool)
  216. cache_products = false
  217. # Maximum transfer rate when caching products in byte/s (int, 0 = no limit)
  218. cache_max_bandwidth = 0
  219. # Dynamically adapt bandwith to other network traffic (bool)
  220. cache_dynamic_bandwidth = false
  221. # Work on local depot cache
  222. use_cached_products = false
  223.  
  224. ; === Action notification (if product actions should be processed)
  225. # Time in seconds for how long the action notification is shown (int, 0 to disable)
  226. action_warning_time = 0
  227. # Action notifier command (string)
  228. action_notifier_command = %opsiclientd_notifier.command% -s notifier\\action.ini
  229. # The desktop on which the action notifier will be shown on (current/default/winlogon)
  230. action_notifier_desktop = current
  231. # Message shown in the action notifier window (string)
  232. action_message = Starting to process product actions. You are allowed to cancel this event a total of %action_user_cancelable% time(s). The event was already canceled %state.action_processing_cancel_counter% time(s).
  233. # German translation (string)
  234. action_message[de] = Starte die Bearbeitung von Produkt-Aktionen. Sie können diese Aktion insgesamt %action_user_cancelable% mal abbrechen. Die Aktion wurde bereits %state.action_processing_cancel_counter% mal abgebrochen.
  235. # French translation (string)
  236. action_message[fr] = Traitement des actions du produit. Vous êtes autorisé à annuler cet événement un total de %action_user_cancelable% fois. L'événement a été déjà annulée %state.action_processing_cancel_counter% fois.
  237. # Number of times the user is allowed to cancel the execution of actions (int)
  238. action_user_cancelable = 0
  239.  
  240. ; === Action processing
  241. # Should action be processed by action processor (bool)
  242. process_actions = true
  243. # Type of action processing (default/login)
  244. action_type = default
  245. # Update the action processor from server before starting it (bool)
  246. update_action_processor = true
  247. # Command which should be executed before start of action processor
  248. pre_action_processor_command =
  249. # Action processor command (string)
  250. action_processor_command = %action_processor.command%
  251. # The desktop on which the action processor command will be started on (current/default/winlogon)
  252. action_processor_desktop = current
  253. # Action processor timout in seconds (int)
  254. action_processor_timeout = 10800
  255. # Command which should be executed before after action processor has ended
  256. post_action_processor_command =
  257.  
  258. ; === Shutdown notification (if machine should be shut down or rebooted)
  259. # Process shutdown requests from action processor
  260. process_shutdown_requests = true
  261. # Time in seconds for how long the shutdown notification is shown (int, 0 to disable)
  262. shutdown_warning_time = 0
  263. # Shutdown notifier command (string)
  264. shutdown_notifier_command = %opsiclientd_notifier.command% -s notifier\\shutdown.ini
  265. # The desktop on which the action notifier will be shown on (current/default/winlogon)
  266. shutdown_notifier_desktop = current
  267. # Message shown in the shutdown notifier window (string)
  268. shutdown_warning_message = A reboot is required to complete software installation tasks. You are allowed to delay this reboot a total of %shutdown_user_cancelable% time(s). The reboot was already delayed %state.shutdown_cancel_counter% time(s).
  269. # German translation (string)
  270. shutdown_warning_message[de] = Ein Neustart wird benötigt um die Software-Installationen abzuschliessen. Sie können diesen Neustart insgesamt %shutdown_user_cancelable% mal verschieben. Der Neustart wurde bereits %state.shutdown_cancel_counter% mal verschoben.
  271. # French translation (string)
  272. shutdown_warning_message[fr] = Un redémarrage est nécessaire pour terminer l'installation du logiciel. Vous êtes autorisé à retarder le redémarrage un total de %shutdown_user_cancelable% fois. Le redémarrage a été déjà retardé %state.shutdown_cancel_counter% fois.
  273. # Number of times the user is allowed to cancel the shutdown (int)
  274. shutdown_user_cancelable = 0
  275. # Time in seconds after the shutdown notification will be shown again after the user has canceled the shutdown (int)
  276. shutdown_warning_repetition_time = 3600
  277.  
  278. [event_gui_startup]
  279. super = default
  280. type = gui startup
  281. name = gui_startup
  282. block_login = False
  283. active = False
  284.  
  285. [event_gui_startup{user_logged_in}]
  286. name = gui_startup
  287. shutdown_warning_time = 300
  288. block_login = false
  289. active = False
  290.  
  291. [event_gui_startup{cache_ready}]
  292. use_cached_config = true
  293. use_cached_products = true
  294. action_user_cancelable = 3
  295. action_warning_time = 60
  296.  
  297. [event_gui_startup{installation_pending}]
  298. name = gui_startup
  299. active = False
  300.  
  301. [event_on_demand]
  302. super = default
  303. type = custom
  304. name = on_demand
  305. action_processor_command = %action_processor.command% /sessionid %service_session% /silent
  306.  
  307. [event_on_demand{user_logged_in}]
  308. name = on_demand
  309. shutdown_warning_time = 300
  310. action_processor_command = %action_processor.command% /sessionid %service_session% /silent
  311.  
  312. [event_software_on_demand]
  313. super = default
  314. type = sw on demand
  315.  
  316. [event_sync]
  317. super = default
  318. type = template
  319. process_actions = false
  320. event_notifier_command =
  321. sync_config_to_server = true
  322. sync_config_from_server = true
  323. cache_products = true
  324. cache_dynamic_bandwidth = true
  325.  
  326. [event_timer]
  327. super = sync
  328. type = timer
  329. active = True
  330. interval = 900
  331.  
  332. [event_net_connection]
  333. super = sync
  334. type = custom
  335. active = False
  336. wql = SELECT * FROM __InstanceModificationEvent WITHIN 2 WHERE TargetInstance ISA 'Win32_NetworkAdapter' AND TargetInstance.NetConnectionStatus = 2
  337.  
  338. [event_sync_completed]
  339. super = default
  340. type = sync completed
  341. event_notifier_command =
  342. process_actions = false
  343. get_config_from_service = false
  344. write_log_to_service = false
  345.  
  346. [event_sync_completed{cache_ready_user_logged_in}]
  347. reboot = true
  348. shutdown_user_cancelable = 10
  349. shutdown_warning_time = 300
  350.  
  351. [event_sync_completed{cache_ready}]
  352. reboot = true
  353.  
  354. [event_user_login]
  355. super = default
  356. type = user login
  357. action_type = login
  358. active = False
  359. action_message = Starting to process user login actions.
  360. action_message[de] = Beginne mit der Verarbeitung der Benutzer-Anmeldungs-Aktionen.
  361. action_message[fr] = Traitement des actions à la connexion de l'utilisateur.
  362. block_login = false
  363. process_shutdown_requests = false
  364. get_config_from_service = false
  365. update_config_file = false
  366. write_log_to_service = false
  367. update_action_processor = true
  368. event_notifier_command = %opsiclientd_notifier.command% -s notifier\\userlogin.ini
  369. event_notifier_desktop = default
  370. action_processor_command = %action_processor.command% /sessionid %service_session% /allloginscripts /silent
  371. action_processor_desktop = default
  372. action_processor_timeout = 300
  373.  
  374. [event_on_shutdown]
  375. super = default
  376. type = custom
  377. name = on_shutdown
  378. active = False
  379.  
  380. [event_on_shutdown{installation_pending}]
  381. name = on_shutdown
  382. active = False
  383.  
  384. [event_silent_install]
  385. super = default
  386. type = custom
  387. name = silent_install
  388. event_notifier_command =
  389. process_shutdown_requests = false
  390. action_processor_command = %action_processor.command% /productlist %action_processor_productIds% /silent
  391. action_processor_desktop = winlogon
  392. action_processor_timeout = 300
  393. action_processor_productids = swaudit,hwaudit
  394.  
  395. [event_timer_silentinstall]
  396. super = silent_install
  397. type = timer
  398. active = False
  399. interval = 21600
  400.  
  401. [precondition_user_logged_in]
  402. user_logged_in = true
  403.  
  404. [precondition_cache_ready]
  405. config_cached = true
  406. products_cached = true
  407.  
  408. [precondition_cache_ready_user_logged_in]
  409. user_logged_in = true
  410. config_cached = true
  411. products_cached = true
  412.  
  413. [precondition_installation_pending]
  414. installation_pending = true
  415. [event_unattended]
  416. action_processor_command = %action_processor.command% /silent
  417. action_processor_desktop = winlogon
  418. event_notifier_command =
  419. name = unattended
  420. super = default
  421. type = custom
Advertisement
Add Comment
Please, Sign In to add comment