Issue #23313 has been updated by James Patterson.
File works.pp added
File broken.pp added
This problem seems to be related to classes. Attached is a way to reproduce it.
To use:
puppet apply --no-daemonize --verbose --debug works.pp
semanage fcontext -d '/apps/conf.d(/.*)?'; restorecon -Rv /apps/conf.d/; ls
-laZ /apps/conf.d/
puppet apply --no-daemonize --verbose --debug broken.pp
semanage fcontext -d '/apps/conf.d(/.*)?'; restorecon -Rv /apps/conf.d/; ls
-laZ /apps/conf.d/
/apps/conf.d/ should have the type httpd_config_t
----------------------------------------
Bug #23313: "file" type is enforcing a type I did not set.
https://projects.puppetlabs.com/issues/23313#change-100254
* Author: James Patterson
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version: 3.3.0
* Keywords:
* Branch:
----------------------------------------
If I do not specify an seltype for a directory, Puppet will now reset the
seltype for that directory to default_t.
The previous behaviour was not to touch the type if an seltype was not given.
This change has caused our environment to break since we follow Red Hat's
recommendation of using semanage fcontext to manage file contexts, and
restorecon to apply them (from within Puppet, of course).
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.