[Puppet Users] Help using puppetlabs-mysql

2011-10-31 Thread treydock
I'm working to begin managing MySQL with the puppetlabs-mysql provided
module, but am not able to get very far with the README documentation.

So far, simply trying to add the server module and define the
root_password is failing like so,


err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Invalid parameter root_password at /etc/puppet/manifests/
nodes.pp:882 on node puppetnode1.tld

The definition looks like this,


node 'puppetnode1.tld' {

class { 'mysql::server':
root_password   = 'test'
}

database_user { 'treydock@localhost':
password_hash   = mysql_password('pass')
}
database_grant { 'treydock@localhost/*':
privileges  = ['ALL'],
}

mysql::db { 'zabbix':
user= 'zabbix',
password= 'zabbix',
host= 'localhost',
grant   = ['ALL'],
}

}

The database_user and _grant thus far haven't actually done anything.
I'm assuming it's because mysql::server isn't working or being
applied.

There's likely something very obvious I'm missing.  This is also my
first time using parameterized classes.

Thanks
- Trey

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Help using puppetlabs-mysql

2011-10-31 Thread Dan Bode
you are running into a documentation issue. All of the configuration was
moved to a new parameter called: config_hash. I can submit a patch

On Mon, Oct 31, 2011 at 10:01 AM, treydock treyd...@gmail.com wrote:

 I'm working to begin managing MySQL with the puppetlabs-mysql provided
 module, but am not able to get very far with the README documentation.

 So far, simply trying to add the server module and define the
 root_password is failing like so,


 err: Could not retrieve catalog from remote server: Error 400 on
 SERVER: Invalid parameter root_password at /etc/puppet/manifests/
 nodes.pp:882 on node puppetnode1.tld

 The definition looks like this,


 node 'puppetnode1.tld' {

class { 'mysql::server':
root_password   = 'test'
}


should be changed to:


 class { 'mysql::server':
   config_hash = { root_password   = 'test'}
   }


database_user { 'treydock@localhost':
password_hash   = mysql_password('pass')
}

   database_grant { 'treydock@localhost/*':
privileges  = ['ALL'],
}

mysql::db { 'zabbix':
user= 'zabbix',
password= 'zabbix',
host= 'localhost',
grant   = ['ALL'],
}

 }

 The database_user and _grant thus far haven't actually done anything.
 I'm assuming it's because mysql::server isn't working or being
 applied.

 There's likely something very obvious I'm missing.  This is also my
 first time using parameterized classes.

 Thanks
 - Trey

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.