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

Support ONPARENT option for aliases #41

Closed
jarshwah opened this issue May 30, 2013 · 4 comments
Closed

Support ONPARENT option for aliases #41

jarshwah opened this issue May 30, 2013 · 4 comments

Comments

@jarshwah
Copy link

Fairly self-explanatory I guess. There's currently no support built in for the ONPARENT optiion of an interface alias. Useful for floating IP type vips that shouldn't automatically come up when the parent does.

@adrienthebo
Copy link
Member

Is this a redhat-centric option? Could you provide an example ifcfg-* file that shows what you would like to be created?

@jarshwah
Copy link
Author

I'm not sure if it's redhat specifically, but that's what I'm using.

cat /etc/sysconfig/network-scripts/ifcfg-eth0:rm

File managed by Puppet

DEVICE=eth0:rm
BOOTPROTO=none
ONPARENT=no
TYPE=Ethernet
IPADDR=THE IP ADDR
NETMASK=255.255.255.0
NM_CONTROLLED=no
USERCTL=yes

Useful for when an external program (not the OS) is in charge of managing whether or not the VIP should be up on this particular host.

@adrienthebo
Copy link
Member

The redhat provider supports the options property which allows you to pass in arbitrary configuration if you need.

network_config { 'eth0:rm'
  method => static,
  address => address,
  netmask => netmask,
  options => {
    'USERCTL' => 'yes',
    'ONPARENT' => 'no',
  }
}

Does this look like it would suit your needs?

@jarshwah
Copy link
Author

It would indeed, thanks for pointing me in the right direction.

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

No branches or pull requests

2 participants