Updated Branches: refs/heads/trunk fc1ea2b60 -> 1cea3394e
AMBARI-3510. Refactor hdp:directory implementation (dlysnichenko) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/1cea3394 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/1cea3394 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/1cea3394 Branch: refs/heads/trunk Commit: 1cea3394ed7a5430c345991ca84294174906a151 Parents: fc1ea2b Author: Lisnichenko Dmitro <[email protected]> Authored: Mon Oct 14 18:54:28 2013 +0300 Committer: Lisnichenko Dmitro <[email protected]> Committed: Mon Oct 14 18:54:28 2013 +0300 ---------------------------------------------------------------------- ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/1cea3394/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp b/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp index 66ff295..99cf29b 100644 --- a/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp +++ b/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp @@ -350,6 +350,7 @@ define hdp::directory( $mode = undef, $ensure = directory, $force = undef, + $links = 'follow', $service_state = 'running', $override_owner = false ) @@ -360,20 +361,23 @@ define hdp::directory( owner => $owner, group => $group, mode => $mode, + links => $links, force => $force } } elsif ($service_state != 'uninstalled') { if $override_owner == true { file { $name : - ensure => present, + ensure => $ensure, owner => $owner, group => $group, + links => $links, mode => $mode, force => $force } } else { file { $name : - ensure => present, + ensure => $ensure, + links => $links, mode => $mode, force => $force }
