Skip to content

Check for full path for log-bin to stop puppet from managing directory “." #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2015
Merged

Conversation

NoodlesNZ
Copy link
Contributor

As reported by @larkit-ian in PR #596

group => $options['mysqld']['user'],

#Stop puppet from managing directory if just a filename/prefix is specified
if $logbindir != '.' {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm confused about this: when do we (anyone?) set logbindir to .? how do we know to set it to .?

@larkit-ian
Copy link

As I read it, if we don't specify an absolute path, then dirname($logbin) will set $logbindir to ".". In that case, we don't to have the file resource for that dir.

@JCotton1123
Copy link
Contributor

I am also currently running into this issue. We can please get this merged ASAP?

@NoodlesNZ it looks like you need to rebase your branch

@NoodlesNZ
Copy link
Contributor Author

I have rebased, but CI is taking a while.

igalic added a commit that referenced this pull request Feb 24, 2015
Check for full path for log-bin to stop puppet from managing directory “."
@igalic igalic merged commit e323f69 into puppetlabs:master Feb 24, 2015
@igalic
Copy link
Contributor

igalic commented Feb 24, 2015

i see now how this makes sense _

@NoodlesNZ
Copy link
Contributor Author

:) Thanks for the merge

mode => '0755',
owner => $options['mysqld']['user'],
group => $options['mysqld']['user'],
$logbindir = dirname($logbin)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to use mysql_dirname not dirname as the stdlib requirement is > 3.2.0.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issued #677 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants