OwnCloud is software to create and use a storage server online and file sharing. Your files are on a server that you control and hosted in France for Cloudwatt .
Another interesting point to share your data with people you don’t have to create a account. Feel free to share with or without password, ditto for authorizing or not the file repository.
ownCloud uses the WebDAV protocol to access the server seamlessly via a “network drive” on Linux, Windows or Mac. There are also sync software for many platforms (Linux, Mac, Windows, Android, etc.) to keep a local copy of your files and work offline. ownCloud does not stop with simple file sharing. It can be used to manage your calendar, contacts, bookmarks and even your music. It integrates business services online sharing becoming a central access point for OpenStack Swift or other ownCloud server. A system of plugins (apps) allow you to install and / or develop other applications.
The project come from KDE. It is developed entirely in PHP and autonome. it can be installed on many web servers without requiring too specific functionalities such as Java or own extensions to a web server.
These should be routine by now:
By default, the stack deploys on an instance of type “Standard 1” (n1.cw.standard-1). A variety of other instance types exist to suit your various needs, allowing you to pay only for the services you need. Instances are charged by the minute and capped at their monthly price (you can find more details on the Pricing page on the Cloudwatt website).
Stack parameters, of course, are yours to tweak at your fancy.
If you do not like command lines, you can go directly to the “run it thru the console” section by clicking here
Once you have cloned the github, you will find in the bundle-trusty-OwnCloud/
repository:
blueprint-coreos-owncloud.heat.yml
: HEAT orchestration template. It will be use to deploy the necessary infrastructure.stack-start.sh
: Stack launching script. This is a small script that will save you some copy-paste.stack-get-url.sh
: Flotting IP recovery script.Have your Cloudwatt credentials in hand and click HERE. If you are not logged in yet, you will go thru the authentication screen then the script download will start. Thanks to it, you will be able to initiate the shell accesses towards the Cloudwatt APIs.
Source the downloaded file in your shell. Your password will be requested.
$ source COMPUTE-[...]-openrc.sh
Please enter your OpenStack Password:
Once this done, the Openstack command line tools can interact with your Cloudwatt user account.
With the blueprint-coreos-owncloud.heat.yml
file, you will find at the top a section named parameters
. The sole mandatory parameter to adjust is the one called keypair_name
. Its default
value must contain a valid keypair with regards to your Cloudwatt user account.You will also enter the root password account of your database ` mysql . This is within this same file that you can adjust the instance size by playing with the
flavor` parameter.
heat_template_version: 2013-05-23
description: Blueprint CoreOS OwnCloud
parameters:
keypair_name:
description: Keypair to inject in instance
label: SSH Keypair
type: string
flavor_name:
default: n1.cw.standard-1
description: Flavor to use for the deployed instance
type: string
label: Instance Type (Flavor)
constraints:
- allowed_values:
- n1.cw.standard-1
- n1.cw.standard-2
- n1.cw.standard-4
- n1.cw.standard-8
- n1.cw.standard-12
- n1.cw.standard-16
sqlpass:
description: password root sql
type: string
hidden: true
[...]
In a shell, run the script stack-start.sh
with his name in parameter:
./stack-start.sh stack_name
+--------------------------------------+-----------------+--------------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+-----------------+--------------------+----------------------+
| ee873a3a-a306-4127-8647-4bc80469cec4 | OwnCloud | CREATE_IN_PROGRESS | 2015-11-25T11:03:51Z |
+--------------------------------------+-----------------+--------------------+----------------------+
Within 5 minutes the stack will be fully operational. (Use watch
to see the status in real-time)
$ watch heat resource-list OwnCloud
+------------------+-----------------------------------------------------+---------------------------------+-----------------+----------------------+
| resource_name | physical_resource_id | resource_type | resource_status | updated_time |
+------------------+-----------------------------------------------------+---------------------------------+-----------------+----------------------+
| floating_ip | 44dd841f-8570-4f02-a8cc-f21a125cc8aa | OS::Neutron::FloatingIP | CREATE_COMPLETE | 2015-11-25T11:03:51Z |
| security_group | efead2a2-c91b-470e-a234-58746da6ac22 | OS::Neutron::SecurityGroup | CREATE_COMPLETE | 2015-11-25T11:03:52Z |
| network | 7e142d1b-f660-498d-961a-b03d0aee5cff | OS::Neutron::Net | CREATE_COMPLETE | 2015-11-25T11:03:56Z |
| subnet | 442b31bf-0d3e-406b-8d5f-7b1b6181a381 | OS::Neutron::Subnet | CREATE_COMPLETE | 2015-11-25T11:03:57Z |
| server | f5b22d22-1cfe-41bb-9e30-4d089285e5e5 | OS::Nova::Server | CREATE_COMPLETE | 2015-11-25T11:04:00Z |
| floating_ip_link | 44dd841f-8570-4f02-a8cc-f21a125cc8aa-`floating IP` | OS::Nova::FloatingIPAssociation | CREATE_COMPLETE | 2015-11-25T11:04:30Z |
+------------------+-----------------------------------------------------+-------------------------------+-----------------+----------------------
The start-stack.sh
script takes care of running the API necessary requests to execute the normal heat template which:
We do indeed! Using the console, you can deploy a OwnCloud server:
blueprint-coreos-owncloud.heat.yml
The stack will be automatically generated (you can see its progress by clicking on its name). When all modules become green, the creation will be complete. You can then go to the “Instances” menu to find the floating IP, or simply refresh the current page and check the Overview tab for a handy link.
If you’ve reached this point, you’re already done! Go enjoy OwnCloud!
… Good! Go to the Apps page on the Cloudwatt website, choose the apps, press DEPLOY and follow the simple steps… 2 minutes later, a green button appears… ACCESS: you have your owncloud server!
Once all this makes you can connect on your server in SSH by using your keypair beforehand downloaded on your compute,
You are now in possession of your own cloud server , you can enter via the URL ` http:// ip-floatingip`. Your full URL will be present in your stack overview in horizon Cloudwatt console.
At your first connexion Owncloud will ask you to give the database informations, and a user account.
The default account is : user : admin
, password: admin
. Database is a mysql used here , now complete the fields as below,
An advise: change your admin password at the first login
You can now download the android application and sync your data with your owncloud, this one being hosted in France in a safe environment, you can completely trust on this product.
Swift is an object HA storage and distributed. Swift used to store a lot of data efficiently, safely, and cheaply at Cloudwatt. Owncloud gives you the opportunity to create a folder directly connected to our infrastructure via OpenStack Swift component.
Here’s how:
Folder
button at the top left of the screen,+
button,Disable
External Storage Support
Admin
part of your Owncloud via the menu at the top right of your screen,Storage Externe
Owncloud
, and then set the storage type OpenStack Object Storage
FR1
* Bucket: container name
* Username: Cloudwatt user
* Password: password OpenStack
* Tenant name: Name of your Cloudwatt tenant
* Identity Endpoint URL: https://identity.fr1.cloudwatt.com/v2.0
* Maximum time: timeout http request, not needed
The goal of this tutorial is to accelerate your start. At this point you are the master of the stack.
You now have an SSH access point on your virtual machine through the floating-IP and your private keypair (default user name cloud
).
You have access to the web interface via the address specifiedin your output stack in horizon console.
Here are some news sites to learn more:
Have fun. Hack in peace.
Cloudwatt 2016 - Copyright - Terms of use - Version Française
Photos: Nasa The Commons