thehyve/puppet-i2b2

View on GitHub
manifests/axis2_password.pp

Summary

Maintainability
Test Coverage
class i2b2::axis2_password(
  $password        = $i2b2::params::axis_admin_password,
  $exploded_war_dir = $i2b2::params::exploded_war_dir,
) inherits i2b2::params {

  require ::i2b2::cells::hive

  augeas { 'replace-axis-password' :
    incl    => "$exploded_war_dir/WEB-INF/conf/axis2.xml",
    lens    => 'Xml.lns',
    context => "/files/$exploded_war_dir/WEB-INF/conf/axis2.xml/axisconfig",
    changes => "set parameter[./#attribute/name='password']/#text $password"
  } ~> Service['i2b2']
}