wavesoftware/puppet-xtreemfs

View on GitHub
manifests/internal/configure/directory.pp

Summary

Maintainability
Test Coverage
# INTERNAL PRIVATE CLASS: do not use directly!
class xtreemfs::internal::configure::directory (
  $properties,
) {
  include xtreemfs::internal::workflow

  $changes = properties_to_augeas($properties, [])
  $anchor  = 'xtreemfs::internal::configure::directory'

  $configfile = '/etc/xos/xtreemfs/dirconfig.properties'
  augeas { 'xtreemfs::configure::directory':
    context => "/files${configfile}",
    changes => $changes,
    incl    => $configfile,
    lens    => 'Properties.lns',
    require => Anchor[$xtreemfs::internal::workflow::packages],
    notify  => Anchor[$anchor],
  }

  anchor { $anchor:
    notify => Anchor[$xtreemfs::internal::workflow::configure],
  }
}