|
36 | 36 | it { should contain_exec('puppet_dashboard_bundle_install').with( |
37 | 37 | 'command' => 'bundle install --deployment', |
38 | 38 | 'unless' => 'bundle check', |
| 39 | + 'user' => 'www-data', |
39 | 40 | 'cwd' => '/usr/share/puppet-dashboard', |
40 | 41 | 'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'], |
41 | | - 'environment' => ['HOME=/root','RAILS_ENV=production'], |
| 42 | + 'environment' => ['HOME=/var/www','RAILS_ENV=production'], |
42 | 43 | 'require' => 'Vcsrepo[/usr/share/puppet-dashboard]', |
43 | 44 | 'timeout' => '900', |
44 | 45 | 'tag' => 'post_config' |
|
47 | 48 | 'command' => 'bundle exec rake assets:precompile', |
48 | 49 | 'creates' => '/usr/share/puppet-dashboard/tmp/cache', |
49 | 50 | 'cwd' => '/usr/share/puppet-dashboard', |
| 51 | + 'user' => 'www-data', |
50 | 52 | 'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'], |
51 | | - 'environment' => ['HOME=/root','RAILS_ENV=production'], |
| 53 | + 'environment' => ['HOME=/var/www','RAILS_ENV=production'], |
52 | 54 | 'require' => 'Exec[puppet_dashboard_bundle_install]', |
53 | 55 | 'timeout' => '900', |
54 | 56 | 'tag' => 'post_config' |
|
75 | 77 | 'command' => 'bundle install --deployment', |
76 | 78 | 'unless' => 'bundle check', |
77 | 79 | 'cwd' => '/opt/dashboard', |
| 80 | + 'user' => 'www-data', |
78 | 81 | 'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'], |
79 | | - 'environment' => ['HOME=/root','RAILS_ENV=production'], |
| 82 | + 'environment' => ['HOME=/var/www','RAILS_ENV=production'], |
80 | 83 | 'require' => 'Vcsrepo[/opt/dashboard]', |
81 | 84 | 'timeout' => '900', |
82 | 85 | 'tag' => 'post_config' |
|
85 | 88 | 'command' => 'bundle exec rake assets:precompile', |
86 | 89 | 'creates' => "/opt/dashboard/tmp/cache", |
87 | 90 | 'cwd' => '/opt/dashboard', |
| 91 | + 'user' => 'www-data', |
88 | 92 | 'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'], |
89 | | - 'environment' => ['HOME=/root','RAILS_ENV=production'], |
| 93 | + 'environment' => ['HOME=/var/www','RAILS_ENV=production'], |
90 | 94 | 'require' => 'Exec[puppet_dashboard_bundle_install]', |
91 | 95 | 'timeout' => '900', |
92 | 96 | 'tag' => 'post_config' |
|
0 commit comments