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

Comparison of: String < Integer, is not possible #79

Closed
lkthomas opened this issue Aug 24, 2015 · 4 comments
Closed

Comparison of: String < Integer, is not possible #79

lkthomas opened this issue Aug 24, 2015 · 4 comments

Comments

@lkthomas
Copy link

Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Comparison of: String < Integer, is not possible. Caused by 'A String is not comparable to a non String'. at /etc/puppetlabs/code/environments/production/modules/keepalived/manifests/vrrp/instance.pp:171:43

Setup Keepalived for HAProxy failover

include ::keepalived

keepalived::vrrp::instance { 'VI_50':
    interface         => 'eth0',
    state             => 'MASTER',
    virtual_router_id => '50',
    priority          => '101',
    auth_type         => 'PASS',
    auth_pass         => 'secret',
    virtual_ipaddress => [ '10.0.0.22/24' ],
    track_interface   => ['eth0'], # optional, monitor these interfaces.
    track_script      => 'check_haproxy',
}

Anyone have idea why?

@lkthomas
Copy link
Author

Found problem, please change example, refer value should be done without quotes:
virtual_router_id => 50,
priority => 101,

@erikanderson
Copy link

I was having a similar issue, made PR #80

@erikanderson
Copy link

@arioch @lkthomas I created a new PR which implements a better solution #81

@erikanderson
Copy link

This can be closed, it was resolved by #82

@arioch arioch closed this as completed Nov 19, 2015
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

3 participants