summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Krumbach <lyz@princessleia.com>2013-03-26 11:59:16 -0700
committerJenkins <jenkins@review.openstack.org>2013-03-27 16:47:46 +0000
commitb054f34b27596b0eb31d947b626874bd384ed9ed (patch)
treee6a5f832d993f63aa5a8997266e1972ae7e0d5cc
parent1ed42f36b1877d4a2afec6ccb1af71669f7ad2cb (diff)
Fix permissions on reviewday directories
Reviewday home and git repository directories were owned by root, fix those permissions and make http directory executable. Change-Id: I3ae856a3c1ffa13d9f8a7217284d89d8035f2613 Reviewed-on: https://review.openstack.org/25424 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
-rw-r--r--manifests/init.pp8
-rw-r--r--manifests/site.pp10
2 files changed, 17 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 830afef..84847e6 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -24,6 +24,14 @@ class reviewday {
24 ensure => present, 24 ensure => present,
25 } 25 }
26 26
27 file {'/var/lib/reviewday':
28 ensure => directory,
29 owner => 'reviewday',
30 group => 'reviewday',
31 mode => '0755',
32 require => User['reviewday'],
33 }
34
27 group { 'reviewday': 35 group { 'reviewday':
28 ensure => present, 36 ensure => present,
29 } 37 }
diff --git a/manifests/site.pp b/manifests/site.pp
index 3825b5e..94df617 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -67,6 +67,14 @@ define reviewday::site(
67 } 67 }
68 } 68 }
69 69
70 file {'/var/lib/reviewday/reviewday':
71 ensure => directory,
72 owner => 'reviewday',
73 group => 'reviewday',
74 mode => '0755',
75 require => File['/var/lib/reviewday/'],
76 }
77
70 vcsrepo { '/var/lib/reviewday/reviewday': 78 vcsrepo { '/var/lib/reviewday/reviewday':
71 ensure => present, 79 ensure => present,
72 provider => git, 80 provider => git,
@@ -77,7 +85,7 @@ define reviewday::site(
77 ensure => directory, 85 ensure => directory,
78 owner => 'reviewday', 86 owner => 'reviewday',
79 group => 'reviewday', 87 group => 'reviewday',
80 mode => '0644', 88 mode => '0755',
81 } 89 }
82 90
83 file { '/var/lib/reviewday/.ssh/config': 91 file { '/var/lib/reviewday/.ssh/config':