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

@ #17 | should install ansible through pip in guest mode #18

Conversation

hieptranquoc
Copy link
Contributor

@hieptranquoc
Copy link
Contributor Author

please check this PR! Thank you!

@hoatle hoatle self-assigned this Nov 20, 2018
Copy link
Member

@hoatle hoatle left a comment

Choose a reason for hiding this comment

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

@hieptranquoc pls check my comments

config.yaml Outdated Show resolved Hide resolved
@hieptranquoc hieptranquoc force-pushed the task/#17-should-install-ansible-through-pip branch from a1dd643 to d69e7af Compare November 20, 2018 16:54
@hieptranquoc
Copy link
Contributor Author

@hoatle I've updated. Please check this PR again. Thank you!

config.yaml Show resolved Hide resolved
Copy link
Member

@hoatle hoatle left a comment

Choose a reason for hiding this comment

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

@hieptranquoc pls check my comments, never forget backward compatibility changes.

@hieptranquoc hieptranquoc force-pushed the task/#17-should-install-ansible-through-pip branch from d69e7af to 05a3e99 Compare November 21, 2018 04:30
@hieptranquoc
Copy link
Contributor Author

@hoatle I've updated. Please check this PR again.!

Copy link
Member

@hoatle hoatle left a comment

Choose a reason for hiding this comment

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

@hieptranquoc pls check my comments


if certs_config['ansible']['mode'] == 'guest'
ansible_install_mode = certs_config['ansible']['install_mode']
ansible_install_mode = 'pip' unless TeracyDev::Util.exist?(certs_config['ansible']['install_mode'])
Copy link
Member

Choose a reason for hiding this comment

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

set the default "pip" for yaml config instead (to fix #12)

"_id" => "certs-ansible",
"type" => ansible_type,
"extra_vars" => extra_vars,
"install_mode" => ansible_install_mode,
Copy link
Member

Choose a reason for hiding this comment

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

set install_mode if ansible_install_mode is valid (not empty)

ansible_install_mode = 'pip' unless TeracyDev::Util.exist?(certs_config['ansible']['install_mode'])

ansible_install_version = certs_config['ansible']['version']
ansible_install_version = 'latest' unless TeracyDev::Util.exist?(certs_config['ansible']['version'])
Copy link
Member

Choose a reason for hiding this comment

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

don't set "latest" as default (similar to the related issue on teracy-dev-k8s)

"type" => ansible_type,
"extra_vars" => extra_vars,
"install_mode" => ansible_install_mode,
"version" => ansible_install_version
Copy link
Member

Choose a reason for hiding this comment

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

set this only if ansible_install_version is valid (not empty)

@hoatle
Copy link
Member

hoatle commented Nov 21, 2018

merged, I'm going to add more improvements later on.

@hoatle hoatle merged commit ff56310 into teracyhq-incubator:develop Nov 21, 2018
@ghost ghost removed the stag:under-review label Nov 21, 2018
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.

2 participants