Hello,
I'm trying to share a file between the client and the server.
On the server the file is located at: /etc/puppet/modules/mysql-server/
files/my.cnf
the code that references to this file is as follows:
file { /etc/mysql/my.cnf:
source = puppet:///modules/mysql-server/my.cnf,
On Wed, 12 Oct 2011 14:33:47 -0700, John Bower wrote:
Hello,
I'm trying to share a file between the client and the server.
On the server the file is located at: /etc/puppet/modules/mysql-server/
files/my.cnf
the code that references to this file is as follows:
file {
Hi Jacob,
My init.pp file is a symbolic link to the mysql-server.pp in the classes
directory. It looks like this:
---
class mysql-server {
package { mysql-server: ensure = installed }
package { mysql-client: ensure = installed }
service { mysql:
enable = false,
Try:
file { /etc/mysql:
ensure = directory,
mode = 0755,
owner = root,
group = root,
}
file { /etc/mysql/my.cnf:
source = puppet:///modules/mysql-server/my.cnf,
owner = mysql, group = mysql,
mode = 644,
notify = Service[mysql],
require =
Hello Nathan,
I tried that:
here is mysql-server.pp
---
class mysql-server {
package { mysql-server: ensure = installed }
package { mysql-client: ensure = installed }
service { mysql:
enable = true,
require = Package[mysql-server],
IIRC the mysql user gets created by the mysql rpm, so your file will have to
require Package['mysql-server'] and possibly mysql-client as well.
On Wed, Oct 12, 2011 at 3:09 PM, olympus stance olympus.sta...@gmail.comwrote:
Hello Nathan,
I tried that:
here is mysql-server.pp
On Wed, 12 Oct 2011 17:49:20 -0400, olympus stance wrote:
Hi Jacob,
My init.pp file is a symbolic link to the mysql-server.pp in the classes
directory. It looks like this:
---
class mysql-server {
package { mysql-server: ensure = installed }
package { mysql-client: ensure =