Skip to content

Commit ecf11e5

Browse files
committed
Update to boxen::env_script
1 parent 255acda commit ecf11e5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

manifests/init.pp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@
5555
enable => false
5656
}
5757

58+
boxen::env_script { 'postgresql':
59+
content => template('postgresql/env.sh.erb'),
60+
priority => 'lower',
61+
}
62+
5863
file { "${boxen::config::envdir}/postgresql.sh":
59-
content => template('postgresql/env.sh.erb'),
60-
require => File[$boxen::config::envdir]
64+
ensure => absent,
6165
}
6266

6367
$nc = "nc -z localhost ${postgresql::config::port}"

spec/classes/postgresql_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
})
5555

5656
should contain_file('/test/boxen/env.d/postgresql.sh').with({
57-
:content => File.read('spec/fixtures/postgresql.sh'),
58-
:require => 'File[/test/boxen/env.d]'
57+
:ensure => :absent,
5958
})
6059

6160
should contain_exec('wait-for-postgresql').with({

spec/fixtures/Puppetfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod 'boxen', '3.0.2', :github_tarball => 'boxen/puppet-boxen'
1+
mod 'boxen', '3.3.4', :github_tarball => 'boxen/puppet-boxen'
22
mod 'homebrew', '1.4.1', :github_tarball => "boxen/puppet-homebrew"
33
mod 'respository', '2.2.0', :github_tarball => "boxen/puppet-repository"
44
mod 'stdlib', '4.1.0', :github_tarball => "puppetlabs/puppetlabs-stdlib"

0 commit comments

Comments
 (0)