-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nodepool: set instance hostname via sudo
Grant passwordless sudo to the jenkins user. Setup hostname Get rid of sudo rule via the ready script. Later on we will run puppet as well to have the instance fully ready. Bug: T111377 Change-Id: I9aaa5900c6367216b17efd95e587c343ceb78497
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -x | ||
set -o pipefail | ||
|
||
|
||
# Get rid of jenkins sudo | ||
rm -fv /etc/sudoers.d/jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters