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

fixes #12823 - multi-network support for sysidcfg #2976

Closed
wants to merge 2 commits into from
Closed

fixes #12823 - multi-network support for sysidcfg #2976

wants to merge 2 commits into from

Conversation

nitinz
Copy link

@nitinz nitinz commented Dec 15, 2015

sysidcfg can be specified for separate network, adding a way to get that freedom in foreman solaris support

@theforeman-bot
Copy link
Member

There were the following issues with the commit message:

  • 78e9e6b must be in the format fixes #redmine_number - brief description.
  • 1c010fd must be in the format fixes #redmine_number - brief description.

If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project.

More guidelines are available on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

@nitinz
Copy link
Author

nitinz commented Dec 15, 2015

@domcleal domcleal changed the title multi-network support for sysidcfg fixes #12823 - multi-network support for sysidcfg Dec 15, 2015
@@ -89,6 +89,7 @@ def jumpstart_params(host, vendor)
server_ip = host.domain.resolver.getaddress(server_name).to_s
jpath = jumpstart_path host.medium, host.domain
ipath = interpolate_medium_vars(host.medium.media_dir, host.architecture.name, self)
network = host.subnet.network
Copy link
Contributor

Choose a reason for hiding this comment

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

This might have to look at host.provisioning_interface.subnet.network, as the provisioning interface may be different to the primary.

Also, the indentation is off by one character.

@domcleal
Copy link
Contributor

This looks like it'd be a backwards-incompatible change, do you agree? It appears that this would then need users to populate sysidcfg files for each subnet. We might have to think about a more configurable way if so.

If you could squash your commits (git rebase -i upstream/develop) and rename the commit to the fixes #12823 - multi-network support for sysidcfg then it'll fit our usual commit standards. More about this at http://theforeman.org/handbook.html#Codingstandards.

@nitinz
Copy link
Author

nitinz commented Dec 16, 2015

How about using a custom parameter which holds network value, that is when declared [either at host level or OS level] can be used [i.e. /export/jumpstart/sysidcfg/sysidcfg_primary/192.168.216.0], otherwise empty out the path, resulting it to use /export/jumpstart/sysidcfg/sysidcfg_primary/

@domcleal
Copy link
Contributor

We don't use or assume any parameters in the core app, they're only really for end users. It'd be more typical to add an attribute onto the operating system I suppose, or add a global setting.

@nitinz
Copy link
Author

nitinz commented Dec 17, 2015

I am clueless if how OS attribute or global setting would get populated with hosts network. As I see it, the setting or attr needs to be a value and can not be another variable holding a value.

@domcleal
Copy link
Contributor

I mean a boolean about whether to use the network in the sysidcfg path or not, which can then be populated in the host still. My understanding is that if the code went in like this, the paths of any existing sysidcfg files would have to change - users would have to create new ones?

@nitinz
Copy link
Author

nitinz commented Dec 21, 2015

I understand your concern. I will re-visit the problem altogether and file a separate pull request.

That would be for multiple sysidcfg files support.
http://docs.oracle.com/cd/E19253-01/817-5504/6mkv4nh2m/index.html

@nitinz nitinz closed this Dec 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants