Guest User

Untitled

a guest
May 6th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.40 KB | None | 0 0
  1. root@omv:~# omv-salt deploy run nginx
  2. /usr/lib/python3/dist-packages/salt/modules/file.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  3. from collections import Iterable, Mapping, namedtuple
  4. /usr/lib/python3/dist-packages/salt/utils/jinja.py:630: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  5. if isinstance(lst1, collections.Hashable) and isinstance(lst2, collections.Hashable):
  6. omv.fritz.box:
  7. ----------
  8. ID: prereq_nginx_certificates
  9. Function: salt.state
  10. Result: True
  11. Comment: States ran successfully. Updating omv.fritz.box.
  12. Started: 19:17:34.238445
  13. Duration: 716.476 ms
  14. Changes:
  15. omv.fritz.box:
  16. ----------
  17. ID: remove_ssl_certificates_crt
  18. Function: module.run
  19. Result: True
  20. Comment: file.find: []
  21. Started: 19:17:34.354392
  22. Duration: 5.528 ms
  23. Changes:
  24. ----------
  25. file.find:
  26. ----------
  27. ID: remove_ssl_certificates_key
  28. Function: module.run
  29. Name: file.find
  30. Result: True
  31. Comment:
  32. Started: 19:17:34.360002
  33. Duration: 0.251 ms
  34. Changes:
  35. ----------
  36. ID: update_ssl_certificates
  37. Function: cmd.run
  38. Name: update-ca-certificates --fresh
  39. Result: True
  40. Comment: Command "update-ca-certificates --fresh" run
  41. Started: 19:17:34.360693
  42. Duration: 591.259 ms
  43. Changes:
  44. ----------
  45. pid:
  46. 3109
  47. retcode:
  48. 0
  49. stderr:
  50. stdout:
  51. Clearing symlinks in /etc/ssl/certs...
  52. done.
  53. Updating certificates in /etc/ssl/certs...
  54. 128 added, 0 removed; done.
  55. Running hooks in /etc/ca-certificates/update.d...
  56. done.
  57. ----------
  58. ID: remove_ssh_certificates
  59. Function: module.run
  60. Result: True
  61. Comment: file.find: []
  62. Started: 19:17:34.952145
  63. Duration: 1.203 ms
  64. Changes:
  65. ----------
  66. file.find:
  67.  
  68. Summary for omv.fritz.box
  69. ------------
  70. Succeeded: 4 (changed=3)
  71. Failed: 0
  72. ------------
  73. Total states run: 4
  74. Total run time: 598.241 ms
  75. ----------
  76. ID: configure_nginx_site_webgui
  77. Function: file.managed
  78. Name: /etc/nginx/sites-available/openmediavault-webgui
  79. Result: True
  80. Comment: File /etc/nginx/sites-available/openmediavault-webgui updated
  81. Started: 19:17:34.956633
  82. Duration: 28.673 ms
  83. Changes:
  84. ----------
  85. diff:
  86. ---
  87. +++
  88. @@ -1,3 +1,6 @@
  89. +# This file is auto-generated by openmediavault (https://www.openmediavault.org)
  90. +# WARNING: Do not edit this file, your changes will get lost.
  91. +
  92. server {
  93. server_name openmediavault-webgui;
  94. root /var/www/openmediavault;
  95. @@ -17,7 +20,7 @@
  96. alias /usr/share/javascript/extjs6/;
  97. expires 2d;
  98. }
  99. - location ~ ^/(css|fonts|js|images)/ {
  100. + location ~ ^/(css|js|images)/ {
  101. expires 2d;
  102. }
  103. location /favicon {
  104. @@ -26,12 +29,12 @@
  105. location ~ \.php$ {
  106. try_files $uri =404;
  107. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  108. - fastcgi_pass unix:/var/run/php-fpm-openmediavault-webgui.sock;
  109. + fastcgi_pass unix:/run/php/php7.3-fpm-openmediavault-webgui.sock;
  110. fastcgi_index index.php;
  111. fastcgi_read_timeout 60s;
  112. include fastcgi.conf;
  113. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  114. }
  115. - listen 80;
  116. + listen [::]:80 default_server ipv6only=off;
  117. include /etc/nginx/openmediavault-webgui.d/*.conf;
  118. -}+}
  119. ----------
  120. ID: configure_nginx_security
  121. Function: file.managed
  122. Name: /etc/nginx/openmediavault-webgui.d/security.conf
  123. Result: True
  124. Comment: File /etc/nginx/openmediavault-webgui.d/security.conf updated
  125. Started: 19:17:34.985396
  126. Duration: 9.986 ms
  127. Changes:
  128. ----------
  129. diff:
  130. ---
  131. +++
  132. @@ -1,13 +1,13 @@
  133. +# This file is auto-generated by openmediavault (https://www.openmediavault.org)
  134. +# WARNING: Do not edit this file, your changes will get lost.
  135. +
  136. # Content Security Policy (CSP)
  137. # https://www.owasp.org/index.php/Content_Security_Policy
  138. add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:;";
  139. -
  140. # https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
  141. add_header X-Frame-Options "SAMEORIGIN";
  142. -
  143. # http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
  144. add_header X-Content-Type-Options "nosniff";
  145. -
  146. # https://wiki.mozilla.org/Security/Features/XSS_Filter
  147. # http://blogs.msdn.com/b/ieinternals/archive/2011/01/31/controlling-the-internet-explorer-xss-filter-with-the-x-xss-protection-http-header.aspx
  148. add_header X-XSS-Protection "1; mode=block";
  149. ----------
  150. ID: execute_nginx_ensite
  151. Function: cmd.run
  152. Name: nginx_ensite openmediavault-webgui
  153. Result: True
  154. Comment: Command "nginx_ensite openmediavault-webgui" run
  155. Started: 19:17:34.995841
  156. Duration: 5.402 ms
  157. Changes:
  158. ----------
  159. pid:
  160. 4482
  161. retcode:
  162. 0
  163. stderr:
  164. stdout:
  165. Site configuration file 'openmediavault-webgui' is already enabled.
  166. ----------
  167. ID: prereq_nginx_service_monit
  168. Function: salt.state
  169. Result: True
  170. Comment: States ran successfully. Updating omv.fritz.box.
  171. Started: 19:17:35.001479
  172. Duration: 351.959 ms
  173. Changes:
  174. omv.fritz.box:
  175. ----------
  176. ID: configure_monit_collectd_service
  177. Function: file.managed
  178. Name: /etc/monit/conf.d/openmediavault-collectd.conf
  179. Result: True
  180. Comment: File /etc/monit/conf.d/openmediavault-collectd.conf is in the correct state
  181. Started: 19:17:35.247555
  182. Duration: 5.165 ms
  183. Changes:
  184. ----------
  185. ID: configure_monit_filesystem_service
  186. Function: file.managed
  187. Name: /etc/monit/conf.d/openmediavault-filesystem.conf
  188. Result: True
  189. Comment: File /etc/monit/conf.d/openmediavault-filesystem.conf is in the correct state
  190. Started: 19:17:35.252798
  191. Duration: 6.481 ms
  192. Changes:
  193. ----------
  194. ID: configure_monit_nginx_service
  195. Function: file.managed
  196. Name: /etc/monit/conf.d/openmediavault-nginx.conf
  197. Result: True
  198. Comment: File /etc/monit/conf.d/openmediavault-nginx.conf is in the correct state
  199. Started: 19:17:35.259359
  200. Duration: 4.792 ms
  201. Changes:
  202. ----------
  203. ID: configure_monit_omv-engined_service
  204. Function: file.managed
  205. Name: /etc/monit/conf.d/openmediavault-engined.conf
  206. Result: True
  207. Comment: File /etc/monit/conf.d/openmediavault-engined.conf is in the correct state
  208. Started: 19:17:35.264227
  209. Duration: 4.324 ms
  210. Changes:
  211. ----------
  212. ID: configure_monit_php-fpm_service
  213. Function: file.managed
  214. Name: /etc/monit/conf.d/openmediavault-phpfpm.conf
  215. Result: True
  216. Comment: File /etc/monit/conf.d/openmediavault-phpfpm.conf is in the correct state
  217. Started: 19:17:35.268629
  218. Duration: 4.447 ms
  219. Changes:
  220. ----------
  221. ID: configure_monit_proftpd_service
  222. Function: file.managed
  223. Name: /etc/monit/conf.d/openmediavault-proftpd.conf
  224. Result: True
  225. Comment: File /etc/monit/conf.d/openmediavault-proftpd.conf is in the correct state
  226. Started: 19:17:35.273157
  227. Duration: 4.698 ms
  228. Changes:
  229. ----------
  230. ID: configure_monit_rrdcached_service
  231. Function: file.managed
  232. Name: /etc/monit/conf.d/openmediavault-rrdcached.conf
  233. Result: True
  234. Comment: File /etc/monit/conf.d/openmediavault-rrdcached.conf is in the correct state
  235. Started: 19:17:35.277932
  236. Duration: 4.31 ms
  237. Changes:
  238. ----------
  239. ID: configure_monit_system_service
  240. Function: file.managed
  241. Name: /etc/monit/conf.d/openmediavault-system.conf
  242. Result: True
  243. Comment: File /etc/monit/conf.d/openmediavault-system.conf is in the correct state
  244. Started: 19:17:35.282326
  245. Duration: 8.944 ms
  246. Changes:
  247. ----------
  248. ID: configure_default_monit
  249. Function: file.managed
  250. Name: /etc/default/monit
  251. Result: True
  252. Comment: File /etc/default/monit is in the correct state
  253. Started: 19:17:35.291348
  254. Duration: 1.136 ms
  255. Changes:
  256. ----------
  257. ID: configure_monit_monitrc
  258. Function: file.managed
  259. Name: /etc/monit/monitrc
  260. Result: True
  261. Comment: File /etc/monit/monitrc is in the correct state
  262. Started: 19:17:35.292547
  263. Duration: 8.809 ms
  264. Changes:
  265. ----------
  266. ID: test_monit_config
  267. Function: cmd.run
  268. Name: monit -t
  269. Result: True
  270. Comment: Command "monit -t" run
  271. Started: 19:17:35.301787
  272. Duration: 6.719 ms
  273. Changes:
  274. ----------
  275. pid:
  276. 4483
  277. retcode:
  278. 0
  279. stderr:
  280. stdout:
  281. Control file syntax OK
  282. ----------
  283. ID: reload_monit_service
  284. Function: service.running
  285. Name: monit
  286. Result: True
  287. Comment: The service monit is already running
  288. Started: 19:17:35.315384
  289. Duration: 34.277 ms
  290. Changes:
  291.  
  292. Summary for omv.fritz.box
  293. -------------
  294. Succeeded: 12 (changed=1)
  295. Failed: 0
  296. -------------
  297. Total states run: 12
  298. Total run time: 94.102 ms
  299. ----------
  300. ID: test_nginx_service_config
  301. Function: cmd.run
  302. Name: nginx -t
  303. Result: True
  304. Comment: Command "nginx -t" run
  305. Started: 19:17:35.353780
  306. Duration: 21.613 ms
  307. Changes:
  308. ----------
  309. pid:
  310. 4491
  311. retcode:
  312. 0
  313. stderr:
  314. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  315. nginx: configuration file /etc/nginx/nginx.conf test is successful
  316. stdout:
  317. ----------
  318. ID: restart_nginx_service
  319. Function: service.running
  320. Name: nginx
  321. Result: True
  322. Comment: Service restarted
  323. Started: 19:17:35.410023
  324. Duration: 65.913 ms
  325. Changes:
  326. ----------
  327. nginx:
  328. True
  329. ----------
  330. ID: monitor_nginx_service
  331. Function: module.run
  332. Name: monit.monitor
  333. Result: True
  334. Comment:
  335. Started: 19:17:35.477199
  336. Duration: 0.361 ms
  337. Changes:
  338.  
  339. Summary for omv.fritz.box
  340. ------------
  341. Succeeded: 8 (changed=7)
  342. Failed: 0
  343. ------------
  344. Total states run: 8
  345. Total run time: 1.200 s
Add Comment
Please, Sign In to add comment