Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: modules/adblockplus/manifests/web/mimeo.pp

Issue 29504594: #2687 - Include mimeo python module (Closed)
Left Patch Set: For comment 44 Created Aug. 22, 2017, 4:52 p.m.
Right Patch Set: For comments 47 and 48 Created Aug. 22, 2017, 8:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « modules/adblockplus/files/mimeo.py ('k') | modules/adblockplus/templates/mimeo.service.erb » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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'],
mathias 2017/08/22 17:30:58 The directory is an implicit dependency (via 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
LEFTRIGHT

Powered by Google App Engine
This is Rietveld