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

Set auto_connect_to_master to False for sshminion #1718

Conversation

maximenoel8
Copy link
Contributor

@maximenoel8 maximenoel8 commented Oct 3, 2024

What does this PR change?

In our BV testing, for the sshminion, we don't set auto_connect_to_master variable to false so all the sshminion are set to auto connect to master.
BUT when we do our test, the sshminion are not visible. Indeed the server_configuration['hostname'] is not settable ( no declare in variables.tf ) for sshminion so the minion run without proper configuration and with that we delete venv-salt-minion before bootstrapping.

Because server_configuration is not an available variable for sshminion, we can't configure the auto connect to master.

Set the default variable auto_connect_to_master to false for now. We may need to either add server_configuration to sshminion or remove auto_connect_to_master.

…nect to master. This value should be false by default.
@maximenoel8 maximenoel8 self-assigned this Oct 3, 2024
@maximenoel8 maximenoel8 requested review from a team and meaksh October 3, 2024 02:16
Copy link
Contributor

@Bischoff Bischoff left a comment

Choose a reason for hiding this comment

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

The clean solution is to add server_configuration to sshminion.

You can't remove auto_connect_to_master as this functionality is used by developers (or at least, it was in Silvio times).

@maximenoel8 maximenoel8 merged commit d12fffa into uyuni-project:master Oct 3, 2024
2 checks passed
@maximenoel8 maximenoel8 deleted the auto_connect_master_sshminion_default_value_false branch October 3, 2024 08:14
@@ -15,7 +15,7 @@ variable "product_version" {

variable "auto_connect_to_master" {
description = "whether this minion should automatically connect to the Salt Master upon deployment"
default = true
default = false
Copy link
Member

Choose a reason for hiding this comment

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

Why change the default? our CI can set the variable to everything it's wanted in there. Changing the default means each developer that want to setup a fast environment will need to set the flag or manually onboard. That is going in a different direction of what was in place for Sumaform.

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.

5 participants