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 ansible-lint CI #39

Merged
merged 7 commits into from
Sep 23, 2020
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
# targets: |
# playbook_1.yml
# playbook_2.yml
targets: "*.yml group_vars/*.yml "
targets: "*.yml inventory/group_vars/*.yml"
# [optional]
# Arguments to override a package and its version to be set explicitly.
# Must follow the example syntax.
override-deps: |
ansible==2.9
ansible-lint==4.2.0
#override-deps: |
# ansible==2.9
# ansible-lint==4.2.0
# [optional]
# Arguments to be passed to the ansible-lint

Expand Down
9 changes: 8 additions & 1 deletion stratum0-deploy-cvmfs-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

- name: create directories
file:
mode: "755"
path: "{{ item }}"
state: directory
with_list:
Expand All @@ -20,13 +21,17 @@
- "/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}/etc/cvmfs/domain.d"

- name: deploy public keys
copy: content="{{ item.key }}" dest="/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}{{ item.path }}"
copy:
content: "{{ item.key }}"
dest: "/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}{{ item.path }}"
mode: "755"
with_items: "{{ eessi_cvmfs_keys }}"

- name: create contacts file
copy:
content: "{{ eessi_email }}\n"
dest: "/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}/etc/cvmfs/contact/{{ eessi_cvmfs_config_repo.domain }}"
mode: "755"

- name: create domain configuration file
copy:
Expand All @@ -35,13 +40,15 @@
CVMFS_KEYS_DIR="/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}/etc/cvmfs/keys/{{ eessi_cvmfs_config_repo.domain }}"
CVMFS_USE_GEOAPI="{{ eessi_cvmfs_server_urls[0].use_geoapi | default(false) | ternary('yes', 'no') }}"
dest: "/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}/etc/cvmfs/domain.d/{{ eessi_cvmfs_config_repo.domain }}.conf"
mode: "755"

- name: create default CVMFS configuration file
copy:
content: |
# For reference see https://sft.its.cern.ch/jira/browse/CVM-878
CVMFS_LOW_SPEED_LIMIT=10000
dest: "/cvmfs/{{ eessi_cvmfs_config_repo.repository.repository }}/etc/cvmfs/default.conf"
mode: "755"

- name: publish CVMFS transaction
command: cvmfs_server publish "{{ eessi_cvmfs_config_repo.repository.repository }}"
Expand Down