Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mode arguments to be octal not decimal numbers #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
6 changes: 3 additions & 3 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
# ©Copyright 2015 Hewlett-Packard Development Company, L.P.

- name: create conf.d dir and custom plugin dirs
file: path="{{item}}" state=directory owner=root group=root mode=755
file: path="{{item}}" state=directory owner=root group=root mode=0755
with_items:
- "{{monasca_conf_dir}}/agent/conf.d"
- "{{monasca_agent_check_plugin_dir}}"
- "{{monasca_agent_detection_plugin_dir}}"

- name: Create additional plugins config
template: dest="{{monasca_conf_dir}}/agent/conf.d/{{item.key}}.yaml" src=plugin.yaml.j2 owner=root group=root mode=644
template: dest="{{monasca_conf_dir}}/agent/conf.d/{{item.key}}.yaml" src=plugin.yaml.j2 owner=root group=root mode=0644
with_dict: monasca_checks
notify: run monasca-setup

# Instead of running this directly by creating a file to run it changes such as user/pass will trigger a rerun. Also a user can run it manually
- name: Create reconfigure script
template: dest="{{agent_reconfigure_script}}" src=monasca-reconfigure.j2 owner=root group=root mode=750
template: dest="{{agent_reconfigure_script}}" src=monasca-reconfigure.j2 owner=root group=root mode=0750
notify: run monasca-setup

- meta: flush_handlers
Expand Down
4 changes: 2 additions & 2 deletions tasks/pip_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# ©Copyright 2015 Hewlett-Packard Development Company, L.P.

- name: Create pip conf dir if pip index URL specified
file: path={{ pip_conf_dir }} state=directory owner=root group=root mode=770
file: path={{ pip_conf_dir }} state=directory owner=root group=root mode=0770
when: pip_index_url is defined

- name: Use pip index URL if specified
template: dest="{{ pip_conf_dir }}/pip.conf" src=pip.conf.j2 backup=yes owner=root group=root mode=660
template: dest="{{ pip_conf_dir }}/pip.conf" src=pip.conf.j2 backup=yes owner=root group=root mode=0660
when: pip_index_url is defined