Skip to content
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

[liukke, asedge] - Fixed openssl.cnf becomes a directory instead of syml... #94

Merged
merged 2 commits into from
Sep 22, 2014

Conversation

Liukke
Copy link

@Liukke Liukke commented Sep 18, 2014

...ink. Change crl.pem to apply mode and group after being created.

The most recent version of this module is causing a failure of the exec that generates the crl.pem file on our CentOS 6.5 machines. We traced this back to the openssl.cnf symlink in the easy-rsa directory incorrectly being turned into an empty directory. It appears this is occuring because of the change to the File resource that adds the 'group' and 'recurse' attribute to all file resources.

I did a quick test of the result of setting 'recurse' to true on a file resource that has 'ensure' set to 'link'. It looks like this will result in an empty directory simply because 'recurse' is being set to true and ignores the fact that it should be a link. In order to deal with this, we moved the 'recurse' attribute to only the file resources that are actually intended to be directories.

After fixing the above issue, we ran into another snag on our system where the permissions for the crl.pem file were still incorrect after it was generated. When the client machine tried to connect using openvpn, the server would try to read this crl.pem, get a permission denied error, and fail. The permissions should fix themselves if puppet runs a second time for this module. However, we added a small change to allow the permissions to be consistent with the directories in a single run of puppet.

Let us know if you have any questions. Thanks!

e3 on barry.skarven.net added 2 commits September 18, 2014 15:58
@luxflux
Copy link
Contributor

luxflux commented Sep 22, 2014

Thanks for fixing this bug!

luxflux added a commit that referenced this pull request Sep 22, 2014
[liukke, asedge] - Fixed openssl.cnf becomes a directory instead of syml...
@luxflux luxflux merged commit e4c4558 into voxpupuli:master Sep 22, 2014
@Liukke Liukke deleted the BUG_fix_symlink_is_directory branch September 22, 2014 13:55
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