LEFT | RIGHT |
1 # == Class: adblockplus::web::mimeo | 1 # == Class: adblockplus::web::mimeo |
2 # | 2 # |
3 # Class adblockplus::web::mimeo registers the information received in a | 3 # Class adblockplus::web::mimeo registers the information received in a |
4 # http/s petition with an specified format in an specific output. | 4 # http/s petition with an specified format in an specific output. |
5 # | 5 # |
6 # === Parameters: | 6 # === Parameters: |
7 # | 7 # |
8 # [*format*] | 8 # [*format*] |
9 # A string containing the desired format for logging. | 9 # A string containing the desired format for logging. |
10 # | 10 # |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 command => 'systemctl enable mimeo.service', | 62 command => 'systemctl enable mimeo.service', |
63 user => 'root', | 63 user => 'root', |
64 unless => 'systemctl is-enabled mimeo.service', | 64 unless => 'systemctl is-enabled mimeo.service', |
65 require => File['/etc/systemd/system/mimeo.service'], | 65 require => File['/etc/systemd/system/mimeo.service'], |
66 } | 66 } |
67 | 67 |
68 service {'mimeo': | 68 service {'mimeo': |
69 ensure => 'running', | 69 ensure => 'running', |
70 hasrestart => false, | 70 hasrestart => false, |
71 provider => 'systemd', | 71 provider => 'systemd', |
72 require => [ | 72 require => Exec['enable-service-mimeo'], |
73 Exec['enable-service-mimeo'], | |
74 File['/var/adblockplus/mimeo'], | |
75 ], | |
76 subscribe => File['/usr/local/bin/mimeo.py'], | 73 subscribe => File['/usr/local/bin/mimeo.py'], |
77 } | 74 } |
78 | 75 |
79 exec {'reload-mimeo-daemon': | 76 exec {'reload-mimeo-daemon': |
80 notify => Service['mimeo'], | 77 notify => Service['mimeo'], |
81 command => 'systemctl daemon-reload', | 78 command => 'systemctl daemon-reload', |
82 subscribe => File['/etc/systemd/system/mimeo.service'], | 79 subscribe => File['/etc/systemd/system/mimeo.service'], |
83 refreshonly => true, | 80 refreshonly => true, |
84 } | 81 } |
85 } | 82 } |
86 | 83 |
LEFT | RIGHT |