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

check fails on script_user #18

Open
ghost opened this issue Jul 24, 2019 · 2 comments
Open

check fails on script_user #18

ghost opened this issue Jul 24, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 24, 2019

script_user in global_defs block in config file fails to pass the test:

keepalived.conf:23:4: syntax error: unexpected STRING, expecting RB

@yuuki
Copy link
Owner

yuuki commented Jul 25, 2019

Would you show me an example of your failure case?

@ghost
Copy link
Author

ghost commented Jul 25, 2019

/go_projects/bin/gokc -f /root/go_projects/bin/keepalived.conf /go_projects/bin/keepalived.conf:11:4: syntax error: unexpected STRING, expecting RB

contents of global_defs block here:

global_defs { notification_email { ssay@#####.com #####@#####.com #####@#####.com } notification_email_from [email protected] smtp_server 192.168.110.164 smtp_connect_timeout 30 router_id c-haproxy001lv script_user root enable_script_security }
Line 11 is the script_user parameter. When I comment out this line, the check passes.

We ARE using the latest version of keepalived. I believe the script_user parameter was added not too long ago. Either way, I was able to add the parameter and compile a working gokc binary so I'm okay for now with my test cases. I'm somehow not able to build from source with my changes present, so it's only working by compiling on my personal. Sorry, new to this thing.

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

1 participant