LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2015, 03:49 PM   #1
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Rep: Reputation: Disabled
Puppet - mysql module not pulling “my.cnf” from fileserver


Trying to deploy mySQL puppet. Using "Puppetlabs-MySQL" module.

My puppetmaster'd pp has

node 'jira.oracle' { class {'mysql::server':} }

class mysql::server {

package { "mysql-server": ensure => installed }
package { "mysql": ensure => installed }

service { "mysqld":
enable => true,
ensure => running,
require => Package["mysql-server"],
}

file { "/var/lib/mysql/my.cnf":
owner => "mysql", group => "mysql",
source => "puppet:///fs/my.cnf",
notify => Service["mysqld"],
require => Package["mysql-server"],
}

file { "/etc/my.cnf":
require => File["/var/lib/mysql/my.cnf"],
ensure => "/var/lib/mysql/my.cnf",
}

exec { "set-mysql-password":
unless => "mysqladmin -uroot -p$mysql_password status",
path => ["/bin", "/usr/bin"],
command => "mysqladmin -uroot password $mysql_password",
require => Service["mysqld"],
}
}

and fileserver.conf has

# MOUNT POINTS
[fs]
path /etc/puppet/environments/production/modules
allow *

But agent is still not pulling "my.cnf" from puppet master with errors:

"Error: /Stage[main]/Mysql::Server/File[/var/lib/mysql/my.cnf]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///fs/my.cnf
Notice: /Stage[main]/Mysql::Server/File[/etc/my.cnf]: Dependency File[/var/lib/mysql/my.cnf] has failures: true
Warning: /Stage[main]/Mysql::Server/File[/etc/my.cnf]: Skipping because of failed dependencies
Notice: /Stage[main]/Mysql::Server/Service[mysqld]: Dependency File[/var/lib/mysql/my.cnf] has failures: true
Warning: /Stage[main]/Mysql::Server/Service[mysqld]: Skipping because of failed dependencies
Notice: /Stage[main]/Mysql::Server/Exec[set-mysql-password]: Dependency File[/var/lib/mysql/my.cnf] has failures: true
Warning: /Stage[main]/Mysql::Server/Exec[set-mysql-password]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.51 seconds"

Help appreciated. Thank you.
 
Old 05-13-2015, 05:18 PM   #2
john aka jondi
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Rep: Reputation: 0
Please take a look at this url...

https://ask.puppetlabs.com/question/...ind-this-file/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Puppet - JIRA module not connecting to mySQL sndlt Linux - Server 0 05-13-2015 12:45 AM
Why is mysql automatically logging me in without .my.cnf or my.cnf sections? alunduil Linux - Server 11 05-19-2010 11:52 AM
mySQL my.cnf question.. DropHit Linux - Software 2 04-15-2010 02:16 PM
how to config the mysql my.cnf? treotan Linux - General 1 09-14-2005 11:05 AM
MySQL server & my.cnf hct224 Linux - Newbie 0 04-02-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration