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

ansible: fix some issues #380

Merged
merged 1 commit into from
Jun 10, 2021
Merged

Conversation

SeanHai
Copy link
Contributor

@SeanHai SeanHai commented Jun 4, 2021

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@SeanHai SeanHai force-pushed the curve_ansible branch 2 times, most recently from 550d0f4 to bca490f Compare June 7, 2021 06:20

- name: generate curve-monitor.sh
template: src=curve-monitor.sh.j2 dest={{ deploy_dir }}/curve-monitor.sh mode=0755
- name: install package without deb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it not installed via tar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it not installed via tar?

fixed all

@@ -0,0 +1,30 @@
---
#
# Copyright (c) 2020 NetEase Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date of copyright shoud be 2021.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date of copyright shoud be 2021.

fixed

@@ -25,6 +25,7 @@
hosts: client
gather_facts: no
any_errors_fatal: true
become: "{{ sudo_or_not | bool }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add sudo_or_not and other related fields inclient.ini file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add sudo_or_not and other related fields inclient.ini file.

this pr has included the field 'https://github.com/opencurve/curve/pull/370/files'

remote_dir_name: "{{ monitor_work_dir }}"
local_file_path: "{{ local_monitor_package_path }}/"
file_mode: 0777
include_tasks: copy_file_to_remote.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task genrate curve-monitor.sh lost.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task genrate curve-monitor.sh lost.

because the 'curve-monitor.sh' has included in debain and tar pacages, so don't need creat again.

template: src=snapshot-daemon.sh.j2 dest={{ deploy_dir }}/snapshot-daemon.sh mode=0755
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: redunrant ending whitespace.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: redunrant ending whitespace.

A black line is needed at end of file.

local_file_path: "{{ local_chunkserver_package_path }}/bin/"
file_mode: 0755
include_tasks: copy_file_to_remote.yml
- name: install package via tar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not install the same as
incluede_tasks: "install_tar_package.yml"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not install the same as
incluede_tasks: "install_tar_package.yml"?

because install via tar package do different things based on installed package name. So can not give a unified task.

@ilixiaocui ilixiaocui merged commit baf660d into opencurve:master Jun 10, 2021
ilixiaocui pushed a commit to ilixiaocui/curve that referenced this pull request Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants