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

Unified Diff: modules/hgweb/manifests/init.pp

Issue 29469611: #1634 - Update file resource syntax in module hgweb (Closed)
Patch Set: Created June 20, 2017, 4:56 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/hgweb/manifests/init.pp
===================================================================
--- a/modules/hgweb/manifests/init.pp
+++ b/modules/hgweb/manifests/init.pp
@@ -66,7 +66,7 @@
file {'/home/hg/.ssh':
ensure => 'directory',
group => 'hg',
- mode => 0750,
+ mode => '0750',
owner => 'hg',
require => User['hg'],
}
@@ -74,7 +74,7 @@
file {'/home/hg/web':
ensure => 'directory',
group => 'hg',
- mode => 0755,
+ mode => '0755',
owner => 'hg',
require => User['hg'],
}
@@ -82,7 +82,7 @@
file {'/home/hg/web/hgaccess':
ensure => 'directory',
group => 'hg',
- mode => 0644,
+ mode => '0644',
owner => 'hg',
recurse => true,
replace => false,
@@ -93,7 +93,7 @@
file {'/home/hg/web/hgaccess/.hg/hgrc':
content => template('hgweb/hgrc.erb'),
group => 'hg',
- mode => 0644,
+ mode => '0644',
owner => 'hg',
require => [
Class['sitescripts'],
@@ -141,13 +141,13 @@
}
file {'/etc/hgweb.ini':
- mode => 644,
+ mode => '644',
mathias 2017/06/20 17:01:44 Now that we're at it, can't we make it uniform and
require => Package[$required_packages],
source => 'puppet:///modules/hgweb/hgweb.ini',
}
file {'/opt/hgweb.fcgi':
- mode => 755,
+ mode => '755',
require => File['/etc/hgweb.ini'],
source => 'puppet:///modules/hgweb/hgweb.fcgi',
}
@@ -155,14 +155,14 @@
if $::operatingsystem == "Debian" {
file {'init_script':
name => '/etc/systemd/system/hgweb.service',
- mode => 755,
+ mode => '755',
require => File['/opt/hgweb.fcgi'],
source => 'puppet:///modules/hgweb/hgweb.service',
}
} else {
file {'init_script':
name => '/etc/init.d/hgweb',
- mode => 755,
+ mode => '755',
require => File['/opt/hgweb.fcgi'],
source => 'puppet:///modules/hgweb/hgweb.sh',
}
@@ -170,7 +170,7 @@
file {'/home/hg/web/robots.txt':
group => 'hg',
- mode => 0644,
+ mode => '0644',
owner => 'hg',
require => File['/home/hg/web'],
source => 'puppet:///modules/hgweb/robots.txt',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld