Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
user: name={{monasca_api_user}} system=yes group={{monasca_group}}

- name: create vertica dir
file: path={{monasca_jar_dir}}/vertica state=directory owner=root group=root mode=755
file: path={{monasca_jar_dir}}/vertica state=directory owner=root group=root mode=0755
when: database_type == 'vertica'

- name: check if vertica jar exists
Expand All @@ -21,7 +21,7 @@
when: database_type == 'vertica' and not status.stat.exists

- name: Ensure vertica jdbc permissions
file: path={{monasca_jar_dir}}/vertica/vertica_jdbc.jar mode=644
file: path={{monasca_jar_dir}}/vertica/vertica_jdbc.jar mode=0644
when: database_type == 'vertica'

- name: Detect if this is a systemd based system
Expand Down Expand Up @@ -65,7 +65,7 @@
when: (not use_systemd or firewalld is not defined or firewalld.rc != 0) and item.rc != 0

- name: create systemd config
template: dest={{api_systemd_service}} owner=root group=root mode=644 src=monasca-api.service.j2
template: dest={{api_systemd_service}} owner=root group=root mode=0644 src=monasca-api.service.j2
notify:
- restart monasca-api
when: use_systemd
Expand All @@ -74,22 +74,22 @@
when: use_systemd

- name: create upstart script from template
template: dest=/etc/init/monasca-api.conf owner=root group=root mode=744 src=monasca-api.conf.j2
template: dest=/etc/init/monasca-api.conf owner=root group=root mode=0744 src=monasca-api.conf.j2
notify:
- restart monasca-api
when: not use_systemd

- name: create monasca log dir
file: path={{monasca_log_dir}} state=directory owner=root group={{monasca_group}} mode=775
file: path={{monasca_log_dir}} state=directory owner=root group={{monasca_group}} mode=0775

- name: create api log dir
file: path={{api_log_dir}} state=directory owner=root group={{monasca_group}} mode=775
file: path={{api_log_dir}} state=directory owner=root group={{monasca_group}} mode=0775

- name: create conf_dir
file: path={{monasca_conf_dir}} state=directory owner=root group={{monasca_group}} mode=775
file: path={{monasca_conf_dir}} state=directory owner=root group={{monasca_group}} mode=0775

- name: create conf_file from template
template: dest={{api_conf_file}} owner={{monasca_api_user}} group={{monasca_group}} mode=640 src=api-config.yml.j2
template: dest={{api_conf_file}} owner={{monasca_api_user}} group={{monasca_group}} mode=0640 src=api-config.yml.j2
notify:
- restart monasca-api

Expand Down
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ©Copyright 2015 Hewlett-Packard Development Company, L.P.

- name: create jar dir
file: path={{monasca_jar_dir}} state=directory owner=root group=root mode=755
file: path={{monasca_jar_dir}} state=directory owner=root group=root mode=0755

- name: Fetch api jar
get_url: dest={{monasca_jar_dir}}/monasca-api.jar url="{{monasca_api_tarball_base_url}}/monasca-api-{{monasca_api_version}}-shaded.jar"
Expand Down