Skip to content

Ensure idempotency between Puppet runs #741

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

Closed
wants to merge 1 commit into from
Closed

Conversation

EmilienM
Copy link
Contributor

@EmilienM EmilienM commented Aug 4, 2015

Running RHEL 7.1, puppetlabs-mysql is not idempotent.
After a second run, puppet tries to change the SElinux context:
/File[mysql-config-file]/seltype: seltype changed 'etc_t' to
'mysqld_etc_t'

Since packaging already manages SElinux labels, we should not let
Puppet doing it (default behavior).
This patch aims to set selinux_ignore_defaults to True for the
mysql-config-file File resource.

Thanks to that patch, Puppet will be indempotent between all runs on
RHEL platforms.

Running RHEL 7.1, puppetlabs-mysql is not idempotent.
After a second run, puppet tries to change the SElinux context:
/File[mysql-config-file]/seltype: seltype changed 'etc_t' to
'mysqld_etc_t'

Since packaging already manages SElinux labels, we should not let
Puppet doing it (default behavior).
This patch aims to set selinux_ignore_defaults to True for the
mysql-config-file File resource.

Thanks to that patch, Puppet will be indempotent between all runs on
RHEL platforms.
@hunner hunner closed this Aug 4, 2015
@hunner
Copy link
Contributor

hunner commented Aug 4, 2015

Could you please submit this from a branch on your own fork instead of from puppetlabs/* ? Thanks.

@EmilienM EmilienM deleted the idempotent-config branch August 4, 2015 17:32
@EmilienM
Copy link
Contributor Author

EmilienM commented Aug 4, 2015

@hunner sure, sorry for that.

@EmilienM
Copy link
Contributor Author

EmilienM commented Aug 4, 2015

done: #742

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

Successfully merging this pull request may close these issues.

2 participants