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

Side by Side Diff: modules/sitescripts/manifests/init.pp

Issue 29469633: #1634 - Update file resource syntax in module sitescripts (Closed)
Patch Set: Created June 20, 2017, 5:08 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class sitescripts ( 1 class sitescripts (
2 $sitescriptsini_source = '', 2 $sitescriptsini_source = '',
3 $sitescriptsini_content = '', 3 $sitescriptsini_content = '',
4 ){ 4 ){
5 5
6 @concat {'/etc/sitescripts.ini': 6 @concat {'/etc/sitescripts.ini':
7 mode => 644, 7 mode => '644',
8 owner => root, 8 owner => root,
9 group => root, 9 group => root,
10 } 10 }
11 11
12 define configfragment($content = '', $source = '') { 12 define configfragment($content = '', $source = '') {
13 13
14 realize(Concat['/etc/sitescripts.ini']) 14 realize(Concat['/etc/sitescripts.ini'])
15 15
16 concat::fragment {"/etc/sitescripts.ini#$title": 16 concat::fragment {"/etc/sitescripts.ini#$title":
17 target => '/etc/sitescripts.ini', 17 target => '/etc/sitescripts.ini',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 cron {"update_sitescripts": 54 cron {"update_sitescripts":
55 ensure => present, 55 ensure => present,
56 command => "hg pull -q -u -R /opt/sitescripts && /opt/sitescripts/ensure_dep endencies.py -q", 56 command => "hg pull -q -u -R /opt/sitescripts && /opt/sitescripts/ensure_dep endencies.py -q",
57 environment => hiera('cron::environment', []), 57 environment => hiera('cron::environment', []),
58 user => root, 58 user => root,
59 require => Exec["fetch_sitescripts"], 59 require => Exec["fetch_sitescripts"],
60 minute => [15], 60 minute => [15],
61 } 61 }
62 } 62 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld