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 { "/etc/mysql/my.cnf":
> source => "puppet:///modules/mysql-server/my.cnf",
> owner => "mysql", group => "mysql",
> mode => 644,
> notify => Service["mysql"],
> }
>
> Essentially, I want the client to store the my.cnf file to /etc/mysq/
> my.cnf
>
> However i keep getting this error:
> err: /Stage[main]/Mysql-server/File[/etc/mysql/my.cnf]/ensure: change
> from absent to file failed: Could not set 'file on ensure: No such
> file or directory - /etc/mysql/my.cnf.puppettmp_9888 at /etc/puppet/
> modules/mysql-server/manifests/init.pp:15
>
>
>
> i tried setting source => "puppet:///modules/mysql-server/files/
> my.cnf",
>
>
> But that did not make a difference. Please help.
> Does /etc/mysql exist on the client machine? -- Jacob Helwig
signature.asc
Description: Digital signature
