Skip to content

Commit d9a9dbd

Browse files
authored
Update compose.pp
1 parent 41e21a1 commit d9a9dbd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

manifests/compose.pp

+4-3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
$docker_compose_location = "${install_path}/${symlink_name}${file_extension}"
5858
$docker_compose_location_versioned = "${install_path}/docker-compose-${version}${file_extension}"
59+
$docker_plugins_path = '/usr/local/lib/docker/cli-plugins'
5960

6061
if $ensure == 'present' {
6162
if $raw_url != undef {
@@ -101,7 +102,7 @@
101102
ensure => directory,
102103
}
103104

104-
file { '/usr/local/lib/docker/cli-plugins':
105+
file { $docker_plugins_path:
105106
ensure => directory,
106107
require => File['/usr/local/lib/docker'],
107108
}
@@ -119,10 +120,10 @@
119120
require => File[$docker_compose_location_versioned],
120121
}
121122

122-
file { '/usr/local/lib/docker/cli-plugins/docker-compose':
123+
file { "${docker_plugins_path}/docker-compose":
123124
ensure => 'link',
124125
target => $docker_compose_location_versioned,
125-
require => File['/usr/local/lib/docker/cli-plugins'],
126+
require => File[$docker_plugins_path],
126127
}
127128
}
128129
} else {

0 commit comments

Comments
 (0)