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

module not working out of the box on centos 7 #11

Open
bne86 opened this issue Apr 28, 2015 · 4 comments
Open

module not working out of the box on centos 7 #11

bne86 opened this issue Apr 28, 2015 · 4 comments

Comments

@bne86
Copy link
Contributor

bne86 commented Apr 28, 2015

Hi,
thanks for this module!
Because of selinux it is not working, this is both a packaging but also a module problem (because the data path is configurable). One has to execute:
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/config'
restorecon '/var/www/html/owncloud/config'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/apps'
restorecon '/var/www/html/owncloud/apps'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/data'
restorecon '/var/www/html/owncloud/data'
not sure how to do his on puppet.

@shoekstra
Copy link
Owner

Hi,

Thanks for the feedback!

I'll take a look into this and get back to you, don't think I had any problems when testing with Centos but will double check and let you know.

I've moved the bit about the php-mysql dependency into a new issue so it can be dealt with separately.

@bne86
Copy link
Contributor Author

bne86 commented Apr 28, 2015

hi,
in my case, owncloud was not able to write to the config directory (to create a config out of the autoconfig.php). Issuing the first command ends up with owncloud showing that it is not able to manage apps.
Corresponding link: https://doc.owncloud.org/server/7.0/admin_manual/installation/selinux_configuration.html

@shoekstra
Copy link
Owner

This is an interesting one. Had a brief look and my vagrant boxes I used to test all have SELinux disabled. I haven't done SELinux with puppet before and looked for a module to do it but haven't settled on one yet.

I'll try spend some time in the next week or 2 to get this one fixed. Apologies for the delay in fixing, new job so limited time for this project at the moment.

@jplorier
Copy link

Hi,

I'm having trouble running the class on Centos as only Ubuntu seems to be defined in manifests.
(Error 400 on SERVER: CentOS not supported at)

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

No branches or pull requests

3 participants