Skip to content

Commit

Permalink
Merge pull request voxpupuli#298 from pennycoders/master
Browse files Browse the repository at this point in the history
Fix cannot generate tempfile error
  • Loading branch information
James Fryman committed Apr 14, 2014
2 parents 488bd3e + 227035a commit fbc77c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pkg/
pkg/
Gemfile.lock
spec/fixtures/
/metadata.json
11 changes: 9 additions & 2 deletions manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@

## Create stubs for vHost File Fragment Pattern
if ($ssl_only != true) {
concat::fragment { "${vhost_sanitized}-${priority}-${location_sanitized}":

$tmpFile=md5("${vhost_sanitized}-${priority}-${location_sanitized}")

concat::fragment { "${tmpFile}":
ensure => present,
target => $config_file,
content => $content_real,
Expand All @@ -291,8 +294,12 @@

## Only create SSL Specific locations if $ssl is true.
if ($ssl == true) {

$ssl_priority = $priority + 300
concat::fragment {"${vhost_sanitized}-${ssl_priority}-${location_sanitized}-ssl":

$sslTmpFile=md5("${vhost_sanitized}-${ssl_priority}-${location_sanitized}-ssl")

concat::fragment {"${sslTmpFile}":
ensure => present,
target => $config_file,
content => $content_real,
Expand Down

0 comments on commit fbc77c2

Please sign in to comment.