Skip to content

Commit bf56b70

Browse files
author
Aaron Hicks
committed
Version 0.2.1
1 parent bac5e52 commit bf56b70

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Modulefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name 'Aethylred-puppetdashboard'
2-
version '0.2.0'
2+
version '0.2.1'
33
source 'https://github.com/Aethylred/puppet-puppetdashboard'
44
author 'Aethylred'
55
license 'GPL3'

spec/classes/git_spec.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636
it { should contain_exec('puppet_dashboard_bundle_install').with(
3737
'command' => 'bundle install --deployment',
3838
'unless' => 'bundle check',
39+
'user' => 'www-data',
3940
'cwd' => '/usr/share/puppet-dashboard',
4041
'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'],
41-
'environment' => ['HOME=/root','RAILS_ENV=production'],
42+
'environment' => ['HOME=/var/www','RAILS_ENV=production'],
4243
'require' => 'Vcsrepo[/usr/share/puppet-dashboard]',
4344
'timeout' => '900',
4445
'tag' => 'post_config'
@@ -47,8 +48,9 @@
4748
'command' => 'bundle exec rake assets:precompile',
4849
'creates' => '/usr/share/puppet-dashboard/tmp/cache',
4950
'cwd' => '/usr/share/puppet-dashboard',
51+
'user' => 'www-data',
5052
'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'],
51-
'environment' => ['HOME=/root','RAILS_ENV=production'],
53+
'environment' => ['HOME=/var/www','RAILS_ENV=production'],
5254
'require' => 'Exec[puppet_dashboard_bundle_install]',
5355
'timeout' => '900',
5456
'tag' => 'post_config'
@@ -75,8 +77,9 @@
7577
'command' => 'bundle install --deployment',
7678
'unless' => 'bundle check',
7779
'cwd' => '/opt/dashboard',
80+
'user' => 'www-data',
7881
'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'],
79-
'environment' => ['HOME=/root','RAILS_ENV=production'],
82+
'environment' => ['HOME=/var/www','RAILS_ENV=production'],
8083
'require' => 'Vcsrepo[/opt/dashboard]',
8184
'timeout' => '900',
8285
'tag' => 'post_config'
@@ -85,8 +88,9 @@
8588
'command' => 'bundle exec rake assets:precompile',
8689
'creates' => "/opt/dashboard/tmp/cache",
8790
'cwd' => '/opt/dashboard',
91+
'user' => 'www-data',
8892
'path' => ['/usr/bin','/bin','/usr/sbin','/sbin'],
89-
'environment' => ['HOME=/root','RAILS_ENV=production'],
93+
'environment' => ['HOME=/var/www','RAILS_ENV=production'],
9094
'require' => 'Exec[puppet_dashboard_bundle_install]',
9195
'timeout' => '900',
9296
'tag' => 'post_config'

spec/classes/init_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
'install_dir' => '/usr/share/puppet-dashboard',
8484
'apache_user' => 'www-data',
8585
'port' => '80',
86+
8687
'require' => [
8788
'Class[Puppetdashboard::Config]',
8889
'Anchor[post_config_exec]',

0 commit comments

Comments
 (0)