camptocamp/puppet-mysql — Issue #23: Issues with my.cnf/replication
Author: rdegges
Created: 2011-10-17 01:10:56+00:00
State: open

Hi there,

I'm trying to use your puppet module on a fresh ubuntu-server 11.04 install. Here's my manifest:

```ruby
node "sql.blah.com" {
include augeas
include mysql::client
include mysql::server

mysql::database { "partyliner":
ensure => present,
}

mysql::rights { "create django user permissions":
ensure => present,
database => "partyliner",
user => "django",
password => "passwordhere",
}
}
```

What happens after several runs of ``puppetd --test`` on the box, is I get the following output:

```text
err: /Stage[main]/Mysql::Server/Augeas[my.cnf/replication]: Could not evaluate: missing string argument 2 for set
notice: /Stage[main]/Mysql::Server/Service[mysql]: Dependency Augeas[my.cnf/replication] has failures: true
warning: /Stage[main]/Mysql::Server/Service[mysql]: Skipping because of failed dependencies
notice: /Stage[main]/Mysql::Server/Exec[Initialize MySQL server root password]: Dependency Augeas[my.cnf/replication] has failures: true
warning: /Stage[main]/Mysql::Server/Exec[Initialize MySQL server root password]: Skipping because of failed dependencies
notice: /Stage[main]/Mysql::Server/File[/root/.my.cnf]: Dependency Augeas[my.cnf/replication] has failures: true
warning: /Stage[main]/Mysql::Server/File[/root/.my.cnf]: Skipping because of failed dependencies
notice: /Stage[main]/Mysql::Server/Exec[Generate my.cnf]: Dependency Augeas[my.cnf/replication] has failures: true
warning: /Stage[main]/Mysql::Server/Exec[Generate my.cnf]: Skipping because of failed dependencies
notice: /Stage[main]/Base/Exec[aptitude update]/returns: executed successfully
notice: /Stage[main]/Ntp/Service[ntp]/enable: enable changed 'false' to 'true'
notice: Finished catalog run in 9.86 seconds
```

I'm not very familiar with the augeas stuff, but it looks like the error is being generate in the puppet-mysql/manifests/classes/server.pp part, where it tries to generate the default (no replication) stuff. Could you give me any information as to what could be wrong? I saw several other issues which (may) be related in the tracker, but I'm not certain.

Thanks!