migibert / orientdb-role Goto Github PK
View Code? Open in Web Editor NEWAnsible role to manage OrientDB servers
License: MIT License
Ansible role to manage OrientDB servers
License: MIT License
Getting this error:
TASK [migibert.orientdb : Download OrientDB tarball] ***********************************************************************************************************
task path: /root/.ansible/roles/migibert.orientdb/tasks/install.yml:1
fatal: [mysql03.vpc01.ibmcloud.onetrace.io]: FAILED! => {"changed": false, "dest": "/tmp/orientdb-3.0.23.tar.gz", "elapsed": 5, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "status_code": 404, "url": "http://www.orientechnologies.com/[email protected]&file=orientdb-community-3.0.23.tar.gz&os=linux"}
fatal: [mysql02.vpc01.ibmcloud.onetrace.io]: FAILED! => {"changed": false, "dest": "/tmp/orientdb-3.0.23.tar.gz", "elapsed": 5, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "status_code": 404, "url": "http://www.orientechnologies.com/[email protected]&file=orientdb-community-3.0.23.tar.gz&os=linux"}
fatal: [mysql01.vpc01.ibmcloud.onetrace.io]: FAILED! => {"changed": false, "dest": "/tmp/orientdb-3.0.23.tar.gz", "elapsed": 5, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "status_code": 404, "url": "http://www.orientechnologies.com/[email protected]&file=orientdb-community-3.0.23.tar.gz&os=linux"}
which appears to directly caused by Orient Technologies not running that old URL anymore.
Ugh, download URLs are ugly...
Version range | URL Format | Sample |
---|---|---|
up to 2.2.19 | download.php, but filenames change! | http://orientdb.com/[email protected]&file=orientdb-graphed-1.3.0.tar.gz&os=multi |
2.2.20 - 2.2.22 | bit.ly randomized url, redirects to download.php | https://bit.ly/2r1YBMi |
2.2.23 - 2.2.34 | bit.ly managed url, redirects to download.php | https://bit.ly/orientdb-ce-2-2-23 |
2.2.35+ | S3 bucket | https://s3.us-east-2.amazonaws.com/orientdb3/releases/2.2.35/orientdb-community-2.2.35.tar.gz |
Note: the bit.ly URLs for are the same for both 2.2.20 and 2.2.21. *sigh* I didn't bother checking to see which one got downloaded. Presumably it can be bypassed by using the download.php link directly.
Hi,
I found that orientdb_dir
and orientdb_path
don't play well together in terms of user customization.
I'd like to install OrientDB in /opt/orientdb
, but orientdb_path
doesn't change where the files are extracted - they are still extracted into /opt/orientdb-community-{{orientdb_version}}
.
I'd like to change things so the extraction takes orientdb_path
into account:
- name: Unarchive OrientDB tarball
unarchive:
copy: no
src: "/tmp/orientdb-{{orientdb_version}}.tar.gz"
dest: "/tmp"
- name: Move OrientDB files into the correct location
vars:
tmp_dir: /tmp/orientdb-community-{{orientdb_version}}
command: mv {{tmp_dir}} {{orientdb_path}} creates={{orientdb_path}} removes={{tmp_dir}}
I'm planning to make this change and submit a PR. Please let me know if you have any feedback.
I can't really add anything useful to this: orientechnologies/orientdb#8376
Just got bitten by the same problem. Some other night, I might fork the repo, figure out how to detect v2/v3 in Ansible, and convert from using templates to the ansible xml_module, or at least to pull in an appropriate set of templates for v2 vs. v3. But tonight is not that night, sorry.
Hi,
I want to use this role to install OrientDB 2.2.22, there the part of playbook I used:
vars:
orientdb_version: 2.2.22
orientdb_enable_distributed: true
orientdb_distributed:
hazelcast_network_port: 2434
hazelcast_group: orientdb
hazelcast_password: orientdb
multicast_enabled: False
tcp_enabled: True
tcp_members:
- 172.21.71.5
- 172.21.71.8
roles:
- { role: orientdb-role, tags: ["orientdb"] }
However the version 2.0.1 is still installed
The AWS URL for the orientdb in main.yml
throws
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AllAccessDisabled</Code>
<Message>All access to this object has been disabled</Message>
<RequestId>*********************</RequestId>
<HostId>
*****************************************************************************</HostId>
</Error>
I think the URL needs to be updated from
orientdb_url: https://s3.us-east-2.amazonaws.com/orientdb3/releases/{{orientdb_version}}/orientdb-{{orientdb_version}}.tar.gz
to
https://repo1.maven.org/maven2/com/orientechnologies/orientdb-community/{{orientdb_version}}/orientdb-community-{{orientdb_version}}.tar.gz
If this solution is accepted, Then a small edit to the oriented_path
is also required from
orientdb_path: '{{orientdb_dir}}/orientdb-{{orientdb_version}}'
to
orientdb_path: '{{orientdb_dir}}/orientdb-community-{{orientdb_version}}'
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.