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

Added flag to determine if the config should be written to the target system #40

Merged
merged 5 commits into from Jun 9, 2021

Conversation

teclator
Copy link
Contributor

@teclator teclator commented Jun 9, 2021

Problem

During installation or autoinstallation, the proxy configuration is written to the the inst-sys and then we have to decide if we should copy or write these settings to the target system or not.

Solution

The decision is currently made in case that the proxy configuration is given through linuxrc but it is ignored in case we are using only AutoYaST. So, two main options came to my mind.

1. Maintain the current check and force the use of proxy linuxrc parameter in case of AutoYaST.

2. Add a flag which will determine if we should write the config to the target system or not

Originally I checked if the variables that exported as environment variables were empty or not but in case that the configuration is read then the defaults could already had set the no_domains variable.

In this PR we have gone for option 2

see yast/yast-installation#965 && yast/yast-network#1231 && yast/yast-autoinstallation#767

Added the to_target variable in order to determine if during the
installation the proxy settings should be written in the target
system or not (bsc#1185016)
@coveralls
Copy link

coveralls commented Jun 9, 2021

Coverage Status

Coverage increased (+0.3%) to 23.382% when pulling 6dca550 on proxy_settings into 86e9e7d on SLE-15-SP3.

@teclator teclator changed the title Added flag to determine if the config should be written to the target system [RFC] Added flag to determine if the config should be written to the target system Jun 9, 2021
@teclator
Copy link
Contributor Author

teclator commented Jun 9, 2021

About the rubocop failure, I could do some cleanup but not sure if it worth it taken in account the use of this module.

src/modules/Proxy.rb Outdated Show resolved Hide resolved
Co-authored-by: Martin Vidner <mvidner@suse.cz>
@teclator teclator changed the title [RFC] Added flag to determine if the config should be written to the target system Added flag to determine if the config should be written to the target system Jun 9, 2021
@teclator teclator merged commit 307109b into SLE-15-SP3 Jun 9, 2021
@teclator teclator deleted the proxy_settings branch June 9, 2021 19:01
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

4 participants