[Puppet Users] file server not right directory?

2011-10-12 Thread John Bower
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,

Re: [Puppet Users] file server not right directory?

2011-10-12 Thread Jacob Helwig
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 {

Re: [Puppet Users] file server not right directory?

2011-10-12 Thread olympus stance
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,

Re: [Puppet Users] file server not right directory?

2011-10-12 Thread Nathan Clemons
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 =

Re: [Puppet Users] file server not right directory?

2011-10-12 Thread olympus stance
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],

Re: [Puppet Users] file server not right directory?

2011-10-12 Thread Aaron Grewell
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

Re: [Puppet Users] file server not right directory?

2011-10-12 Thread Jacob Helwig
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 =