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

add sudo support to scriptfile #121

Closed
gschueler opened this issue Jun 23, 2012 · 1 comment · May be fixed by carlosrfranco/rundeck#5
Closed

add sudo support to scriptfile #121

gschueler opened this issue Jun 23, 2012 · 1 comment · May be fixed by carlosrfranco/rundeck#5

Comments

@gschueler
Copy link
Member

The following command employing a scriptfile will execute as the resource model's target user matching the tag criteria:

dispatch -L -p wsgc -I tags=pb+devint -s /local/path/to/rerun.bin -- stubbs: add-module -m foo --description bar

This command does this as a sudo user where sudo-command-enabled support has been added in resource model:

dispatch -L -p wsgc -I tags=pb+devint -- sudo -u tomcat /tmp/rerun.bin stubbs: add-module -m foo --description bar

It would be great to see a blending of the two (NOTE the following communicates the intent, option syntax not the key here):

dispatch -u tomcat -L -p wsgc -I tags=pb+devint -s /local/path/to/rerun.bin -- stubbs: add-module -m foo --description bar

where "-u tomcat" instructs the dispatcher to implicitly execute the scriptfile as a sudo to tomcat.

original LH ticket

Original Creator: Charles Scott

@gschueler
Copy link
Member Author

closing as duplicate of #343

with note that dispatch support is NTH

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

Successfully merging a pull request may close this issue.

1 participant