zuazo / owncloud-cookbook Goto Github PK
View Code? Open in Web Editor NEWChef cookbook to install and configure ownCloud.
Home Page: https://supermarket.chef.io/cookbooks/owncloud
License: Apache License 2.0
Chef cookbook to install and configure ownCloud.
Home Page: https://supermarket.chef.io/cookbooks/owncloud
License: Apache License 2.0
According to berkshelf/berkshelf#856
I replaced in Vagrantfile
config.ssh.max_tries = 40
config.ssh.timeout = 120
with
config.vm.boot_timeout = 120
PS: Thanks for the cookbook so far, I haven't send you a PR, because I am fairly new to Vagrant & Co.
It would be really great to have a config parameter (like data_dir
) to add trusted_domains
.
See https://github.com/owncloud/core/blob/master/config/config.sample.php#L63
It would be awesome if ownCloud could be installed from git repositories.
We, the ownCloud QA team, would like to use this cookbook for setting up our testing vms. However, this requires some improvements like the ability to use different webservers or install ownCloud from different sources.
Code only used for testing will be in another cookbook, see https://github.com/owncloud/acceptance-testing for more information.
I'm trying to setup an dev vm for ownCloud. I would like to mount the /var/www/owncloud in the vm as /workspace/chat/app. But there is some strange behaviour:
the CSS files of any owncloud app aren't loaded however the CSS files of core are loaded.
But it get strangers: when I try the same configuration without the ownCloud cookbook but with a simple shell script my configuration works.
I tested the cookbook with centos and precise32. I tried to mount /workspace/chat/app to /workpace and then create a symbolic link between /var/www. I tried to mount --bind /var/www & /workspace on the guest, but nothing works.
My configuration can be viewed here.
Thanks in advance
On first vagrant up
I get this error:
[default] Box 'opscode-ubuntu-12.04' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
Progress: 5% (Rate: 1095k/s, Estimated time remaining: 0:06:44)
I can bring up the machine afterwards, but I thought it should be addressed.
It would be great if this cookbook could setup ownCloud in an lighttpd-environment.
We, the ownCloud QA team, would like to use this cookbook for setting up our testing vms. However, this requires some improvements like the ability to use different webservers or install ownCloud from different sources.
Code only used for testing will be in another cookbook, see https://github.com/owncloud/acceptance-testing for more information.
Centos 7 is out for some time now. WIth Centos 7 a new version of apache is released which isn't full compatibly with the older version. Here you can find more information about this: http://httpd.apache.org/docs/2.4/upgrading.html
The following configuration should be changed (if centos 7): https://github.com/onddo/owncloud-cookbook/blob/master/templates/default/apache_vhost.erb#L14-L15
As in the link above this should be changed in:
2.2 configuration:
Order deny,allow
Deny from all
2.4 configuration:
Require all denied
Thanks!
The latest owncloud wants PHP 5.4.0. This cookbook installs 5.3.10 on Ubuntu 12.04.
If you use the default recipe with the latest you'll only see this on page load:
This version of ownCloud requires at least PHP 5.4.0
<br/>
You are currently running 5.3.10-1ubuntu3.16. Please update your PHP version.
Anyone using this for 6.0? Works?
Hi
Can I ask you why commit 0756e6f was made? I can't resolve the dependencies of this cookbook anymore. I'm using librarian-chef:
[Librarian] Ruby Version: 2.1.3
[Librarian] Ruby Platform: x86_64-linux-gnu
[Librarian] Rubygems Version: 2.2.2
[Librarian] Librarian Version: 0.1.2
[Librarian] Librarian Adapter: chef
[Librarian] Librarian Adapter Version: 0.0.4
[Librarian] Project: /home/tobia/Workspace/Chat/vagrant
[Librarian] Specfile: Cheffile
[Librarian] Lockfile: Cheffile.lock
[Librarian] Git: /usr/bin/git
[Librarian] Git Version: 2.1.4
[Librarian] Git Environment Variables:
[Librarian] (empty)
[Librarian] Pre-Cached Sources:
[Librarian] [:site, "https://supermarket.getchef.com/api/v1", {}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/database", {:ref=>"v2.1.8"}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/mysql_chef_gem", {:ref=>"v0.0.2"}]
[Librarian] [:git, "https://github.com/LEDfan/chef-php-recipes", {}]
[Librarian] Post-Cached Sources:
[Librarian] [:site, "https://supermarket.getchef.com/api/v1", {}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/database", {:ref=>"v2.1.8"}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/mysql_chef_gem", {:ref=>"v0.0.2"}]
[Librarian] [:git, "https://github.com/LEDfan/chef-php-recipes", {}]
[Librarian] [:git, "https://github.com/onddo/owncloud-cookbook", {:ref=>"master"}]
[Librarian] [:git, "https://github.com/LEDfan/chef-php-recipes", {:ref=>"master"}]
[Librarian] Analyzing spec and lock:
[Librarian] Removed:
[Librarian] ExplicitRemoved:
[Librarian] Added:
[Librarian] NonMatchingAdded:
[Librarian] Changed:
[Librarian] owncloud
[Librarian] DeepKeep:
[Librarian] database
[Librarian] git
[Librarian] mysql_chef_gem
[Librarian] php-recipes
[Librarian] phpunit
[Librarian] ShallowStrip:
[Librarian] owncloud
[Librarian] Resolving owncloud (>= 0) <https://github.com/onddo/owncloud-cookbook#master>
[Librarian] Checking manifests
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --> origin
[Librarian] --> origin/HEAD -> origin/master
[Librarian] --> origin/master
[Librarian] --> 0756e6f83f3dc6423f07b82812556b1d96422d20
[Librarian] --> 0756e6f83f3dc6423f07b82812556b1d96422d20
[Librarian] Checking owncloud/0.5.0 <https://github.com/onddo/owncloud-cookbook#master>
[Librarian] Conflict between openssl (~> 4.0.0) <(no source specified)> and openssl (~> 2.0) <(no source specified)>
[Librarian] Backtracking from owncloud/0.5.0 <https://github.com/onddo/owncloud-cookbook#master>
[Librarian] Failed to resolve owncloud (>= 0) <https://github.com/onddo/owncloud-cookbook#master>
Could not resolve the dependencies.
Thanks!
See these issues: owncloud/client#965 owncloud/core#4783
I am looking for a way to disable it...
Hey. Again thanks for this awesome cookbook ๐
In some situations settings the permissions of a directory is impossible. (Even as root). This is e.g. the case when you have mounted /var/www
as a NFS share. (with vagrant)
This isn't really a problem since Apache & nginx are running as the same user who mounted the NFS share. (user vagrant
and group vagrant
). So the web server has write permission in this situation.
But because Chef fails and an exception is thrown, the cookbook can't finish.
Would it be possible to create an attribute skip_permissions
? This would be really great!
Thanks in advance!
It would be great if this cookbook could setup ownCloud in an nginx-environment.
We, the ownCloud QA team, would like to use this cookbook for setting up our testing vms. However, this requires some improvements like the ability to use different webservers or install ownCloud from different sources.
Code only used for testing will be in another cookbook, see https://github.com/owncloud/acceptance-testing for more information.
This is how I solved it, but I am not sure if this is the 100% perfect way:
In _apache.rb
or _nginx.rb
remove the certificate generation and replace it with file paths.
ssl_key_path, ssl_cert_path = generate_certificate
ssl_key_path = '/path/to/private.key'
ssl_cert_path = '/path/to/cert.pem'
Why do you not install owncloud through the opensuse build service, which is the preferred method from the owncloud documentation?
The update process is easier and you can install it through apt, yum,...
I'd suggest to change (add an "n")
config.vm.hostname = "owcloud"
to
config.vm.hostname = "owncloud.local"
or something similar, this would also help testing the ssl connection in the VM.
using ubuntu 13.10, chef 11.8.2 and ruby 1.8.7
I got these following errors so far:
nginx version number fails (outputs 1.4.1 (ubuntu) instead of just 1.4.1).
attributes/default.rb fails (there's a ',' before the closing ')' )
Error writting OwnCloud config: undefined method `write' for IO:Class
....
Hi
Since ownCloud 9.2 and Nextcloud 11 the minimum required PHP version is 5.6. (So 5.4 and 5.5 are dropped) See: https://doc.owncloud.org/server/9.2/admin_manual/installation/system_requirements.html#supported-platforms and https://rullzer.com/nextcloud-supported-php-versions.html#nextcloud-supported-php-versions
I'm happy to have a look at this first and find a solution, I'll let you know when I can't figure it out :)
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.