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

vagrant up rundeck fails #31

Open
turnopil opened this issue Jun 13, 2018 · 2 comments
Open

vagrant up rundeck fails #31

turnopil opened this issue Jun 13, 2018 · 2 comments

Comments

@turnopil
Copy link

 rundeck: # 10 ACL Policy items for project anvils
    rundeck: anyone-node-allow.aclpolicy
    rundeck: anyone-resource-allow-read.aclpolicy
    rundeck: dev-jobs-allow-web_Restart.aclpolicy
    rundeck: dev-jobs-allow-web_Status.aclpolicy
    rundeck: dev-node-allow-www.aclpolicy
    rundeck: ops-jobs-allow-anvils.aclpolicy
    rundeck: ops-jobs-allow-db.aclpolicy
    rundeck: ops-jobs-deny-releng_Promote.aclpolicy
    rundeck: ops-node-allow-all.aclpolicy
    rundeck: releng-jobs-allow-release_Promote.aclpolicy
    rundeck: Running a adhoc command across the nodes tagged for anvils ...
    rundeck: /bin/rd: line 179:  -- ${node.description}: bad substitution
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

I just comment part of 170 line in add-project.sh and now its works fine
rd adhoc -p $PROJECT --follow --filter 'tags: anvils' -- whoami #\&\& echo " -- \${node.description}"

@camservo
Copy link

camservo commented Aug 7, 2018

Having the same issue. Running on Mac.

@mikeferrari8
Copy link

mikeferrari8 commented Sep 26, 2018

Had the same issue.

I had to make a couple changes to make things work for me.
I am running Centos 7, Vagrant 2.1.5

install-rundeck.sh
I had to change line 144 to match the output of a successful rundeck start, i think the message changed in newer versions of rundeck. Line 144 should looks like this.
if ! grep "Grails application running" /var/log/rundeck/service.log

add -project.sh
Line 170. I couldn't figure out the correct way to execute this command, it seems like the rd command options/syntax has changed over time. Because it's just a test, i figured it wouldn't hurt too much to skip it. As turnopil said above, i commented it out.
#rd adhoc -p $PROJECT --follow --filter 'tags: anvils' -- whoami \&\& echo " -- \${node.description}"

After that i ran vagrant up and everything seems fine.

Hope that helps.

Also: To help troubleshoot i figured out that the login to the vm is root:vagrant

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