Skip to content

Commit

Permalink
(profile::ccs::file_transfer) handle /home/ipa being absent
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmorris committed Mar 23, 2024
1 parent a432427 commit cc79e0d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions site/profile/manifests/ccs/file_transfer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@
String $pkgurl_user = $profile::ccs::common::pkgurl_user,
String $pkgurl_pass = $profile::ccs::common::pkgurl_pass,
) {
$parent = "${dirname($directory)}"

file { $parent:
ensure => directory,
owner => $user,
group => $group,
mode => '0755',
}

## We expect that s3daemon will become the default (and only) method
## some time soonish.
if $s3daemon {
Expand Down Expand Up @@ -180,10 +189,11 @@
} # s3daemon

file { $directory:
ensure => directory,
owner => $user,
group => $group,
mode => '0755',
ensure => directory,
owner => $user,
group => $group,
mode => '0755',
require => File[$parent],
}

file { "${directory}/${secret_file}":
Expand Down

0 comments on commit cc79e0d

Please sign in to comment.