Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use incl/lens in myqsl::config #47

Merged
merged 1 commit into from

1 participant

@raphink
Owner

No description provided.

@raphink raphink merged commit 14f9479 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2012
  1. @raphink
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 5 deletions.
  1. +6 −5 manifests/config.pp
View
11 manifests/config.pp
@@ -40,22 +40,23 @@
case $ensure {
present: {
- $changes = "set ${real_key} ${value}"
+ $changes = "set target[.='${section}']/${real_key} ${value}"
}
absent: {
- $changes = "rm ${real_key}"
+ $changes = "rm target[.='${section}']/${real_key}"
}
default: { err ( "unknown ensure value ${ensure}" ) }
}
augeas { "my.cnf/${section}/${name}":
- context => "${mysql::params::mycnfctx}/target[.='${section}']",
+ incl => $mysql::params::mycnf,
+ lens => 'MySQL.lns',
changes => [
- "set ${mysql::params::mycnfctx}/target[.='${section}'] ${section}",
+ "set target[.='${section}'] ${section}",
$changes,
- "rm ${mysql::params::mycnfctx}/target[count(*)=0]",
+ "rm target[count(*)=0]",
],
require => [ File["${mysql::params::mycnf}"],
File["${mysql::params::data_dir}"] ],
Something went wrong with that request. Please try again.