DIB: add missing ironic-python-agent-create-rescue-user.sh
And remove gitignore rules that prevented it from being added. Change-Id: If2a52d98ffd94eacc7b2166a4fe553850ba084d0
This commit is contained in:
parent
62e378b606
commit
18d161bdc3
5
.gitignore
vendored
5
.gitignore
vendored
@ -9,14 +9,9 @@
|
||||
dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
.installed.cfg
|
||||
lib
|
||||
lib64
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
echo "Adding rescue user with root privileges..."
|
||||
crypted_pass=$(</etc/ipa-rescue-config/ipa-rescue-password)
|
||||
useradd -m rescue -G wheel -p $crypted_pass
|
||||
echo "rescue ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/rescue
|
Loading…
x
Reference in New Issue
Block a user