We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just noticed this when I was testing some Vagrant stuff and changed the virtual address:
keepalived::vrrp::instance { 'VI_50': interface => 'eth1', state => 'MASTER', virtual_router_id => '50', priority => '101', auth_type => 'PASS', auth_pass => 'secret', virtual_ipaddress => '10.0.0.1/29', }
change and run again:
keepalived::vrrp::instance { 'VI_50': interface => 'eth1', state => 'MASTER', virtual_router_id => '50', priority => '101', auth_type => 'PASS', auth_pass => 'secret', virtual_ipaddress => '10.0.0.2/29', }
File stays the same: /etc/keepalived/keepalived.conf
/etc/keepalived/keepalived.conf
# Managed by Puppet vrrp_instance VI_50 { interface eth1 state MASTER virtual_router_id 50 priority 101 authentication { auth_type PASS auth_pass secret } virtual_ipaddress { 10.0.0.1/29 dev eth1 } }
The text was updated successfully, but these errors were encountered:
When I use your aforementioned example I end up with the following error:
Detail: undefined method `each' for "10.0.0.1/29":String
To fix this make $virtual_ipaddress an array instead of a string:
keepalived::vrrp::instance { 'VI_50': ... virtual_ipaddress => ['10.0.0.1/29'], }
That way it works flawlessly on my vagrant box.
Sorry, something went wrong.
No branches or pull requests
Just noticed this when I was testing some Vagrant stuff and changed the virtual address:
change and run again:
File stays the same:
/etc/keepalived/keepalived.conf
The text was updated successfully, but these errors were encountered: