-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from migibert/lint
Linting
- Loading branch information
Showing
5 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,68 @@ | ||
- name: Download OrientDB tarball | ||
get_url: | ||
url: "{{orientdb_url}}" | ||
dest: "/tmp/orientdb-{{orientdb_version}}.tar.gz" | ||
url: "{{ orientdb_url }}" | ||
dest: "/tmp/orientdb-{{ orientdb_version }}.tar.gz" | ||
|
||
- stat: | ||
path: "{{orientdb_path}}" | ||
- name: Register orientdb_dir stat | ||
stat: | ||
path: "{{ orientdb_path }}" | ||
register: stat_orientdb_dir | ||
|
||
- stat: | ||
path: "{{orientdb_path}}/bin" | ||
- name: Register binary directory stat | ||
stat: | ||
path: "{{ orientdb_path }}/bin" | ||
register: stat_orientdb_bin_path | ||
|
||
- stat: | ||
path: "{{orientdb_path}}/config" | ||
- name: Register config directory stat | ||
stat: | ||
path: "{{ orientdb_path }}/config" | ||
register: stat_orientdb_config_path | ||
|
||
- name: Unarchive OrientDB tarball | ||
unarchive: | ||
copy: no | ||
src: "/tmp/orientdb-{{orientdb_version}}.tar.gz" | ||
dest: "{{orientdb_dir}}" | ||
src: "/tmp/orientdb-{{ orientdb_version }}.tar.gz" | ||
dest: "{{ orientdb_dir }}" | ||
when: > | ||
orientdb_force_install == True or | ||
stat_orientdb_dir.stat.exists == False or | ||
stat_orientdb_bin_path.stat.exists == False or | ||
stat_orientdb_config_path.stat.exists == False | ||
orientdb_force_install or | ||
not stat_orientdb_dir.stat.exists or | ||
not stat_orientdb_bin_path.stat.exists or | ||
not stat_orientdb_config_path.stat.exists | ||
- name: Make orientdb_user owns directory #Issue 234 with unarchive owner attribute | ||
file: | ||
path: "{{orientdb_path}}" | ||
owner: "{{orientdb_user}}" | ||
group: "{{orientdb_group}}" | ||
path: "{{ orientdb_path }}" | ||
owner: "{{ orientdb_user }}" | ||
group: "{{ orientdb_group }}" | ||
state: directory | ||
recurse: yes | ||
|
||
- name: Configure orientdb launch script | ||
|
||
template: | ||
src: orientdb-server.sh.j2 | ||
dest: "{{orientdb_path}}/bin/orientdb.sh" | ||
dest: "{{ orientdb_path }}/bin/orientdb.sh" | ||
|
||
- name: Configure orientdb server | ||
template: | ||
src: orientdb-server-config.xml.j2 | ||
dest: "{{orientdb_path}}/config/orientdb-server-config.xml" | ||
dest: "{{ orientdb_path }}/config/orientdb-server-config.xml" | ||
|
||
- name: Configure orientdb logger | ||
template: | ||
src: orientdb-server-log.properties.j2 | ||
dest: "{{orientdb_path}}/config/orientdb-server-log.properties" | ||
dest: "{{ orientdb_path }}/config/orientdb-server-log.properties" | ||
|
||
- name: Configure distributed DB | ||
template: | ||
src: default-distributed-db-config.j2 | ||
dest: "{{orientdb_path}}/config/default-distributed-db-config.json" | ||
dest: "{{ orientdb_path }}/config/default-distributed-db-config.json" | ||
|
||
- name: Configure hazelcast | ||
template: | ||
src: hazelcast.xml.j2 | ||
dest: "{{orientdb_path}}/config/hazelcast.xml" | ||
dest: "{{ orientdb_path }}/config/hazelcast.xml" | ||
|
||
- name: Configure automatic backup | ||
template: | ||
src: automatic-backup.json.j2 | ||
dest: "{{orientdb_path}}/config/automatic-backup.json" | ||
dest: "{{ orientdb_path }}/config/automatic-backup.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters