Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Change in init.pp source_dir varaible #64

Open
wants to merge 32 commits into
base: fix-issue-13
Choose a base branch
from
Open

Conversation

wooziethe
Copy link

Error: Failed to apply catalog: Parameter source failed on File[mysql.dir]: Cannot use relative URLs '' at /etc/puppetlabs/code/environments/production/modules/mysql/manifests/init.pp:427

$source_dir = params_lookup( 'source_dir' ),

if $mysql::source_dir {
file { 'mysql.dir':
ensure => directory,
path => $mysql::config_dir,
require => Package['mysql'],
notify => $mysql::manage_service_autorestart,
source => $mysql::source_dir,
recurse => true,
purge => $mysql::bool_source_dir_purge,
replace => $mysql::manage_file_replace,
audit => $mysql::manage_audit,
}
}


$source_dir must be changed to false:
$source_dir = false,

Alex

alvagante and others added 30 commits September 10, 2014 17:41
Updates documentation from: 'mysql_username' to 'mysql_user'
simple hiera support / make the root.my.cnf template into a var
…tiengo-master

Conflicts:
	README.md
	manifests/init.pp
	manifests/password.pp
http://i.imgur.com/qaFUlGv.png?1

' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 45
' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 46
' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 47

https://github.com/example42/puppet-mysql/blob/master/manifests/queryfile.pp#L44-L46
Fixed the error by removing escape character.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants