Skip to content

Commit

Permalink
deploy foreman modules path only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 19, 2018
1 parent 9836977 commit e11037c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/server/config.pp
Expand Up @@ -124,10 +124,12 @@
mode => '0750',
}

# Create Foreman share dir which does not depend on Puppet version
exec { 'mkdir -p /usr/share/puppet/modules':
creates => '/usr/share/puppet/modules',
path => ['/usr/bin', '/bin'],
if ('/usr/share/puppet/modules' in $puppet::server::common_modules_path) {
# Create Foreman share dir which does not depend on Puppet version
exec { 'mkdir -p /usr/share/puppet/modules':
creates => '/usr/share/puppet/modules',
path => ['/usr/bin', '/bin'],
}
}

## SSL and CA configuration
Expand Down

0 comments on commit e11037c

Please sign in to comment.