Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
virtinstaller
Commits
b2de1ab9
Commit
b2de1ab9
authored
Mar 09, 2016
by
Server Team
Browse files
random password generation
parent
930b36af
Changes
1
Hide whitespace changes
Inline
Side-by-side
virt-install-debian
View file @
b2de1ab9
#!/bin/bash
SERVER_NAME
=
"srv168"
PASSWORD
=
$(
echo
xxxx
)
NET_IPV4_MAC
=
"00:50:56:00:59:07"
NET_IPV4_ADDRESS
=
"46.4.110.203"
NET_IPV4_GATEWAY
=
"46.4.110.201"
...
...
@@ -14,6 +14,17 @@ HOST_NAME=$SERVER_NAME
# no customisation below this point
#######################################
PASSWORD
=
$(
makepasswd
--minchars
=
10
--maxchars
=
12
)
echo
"Generated random password"
echo
"ADD TO PASSWORD STORE/KEEP IN SAFE PLACE"
echo
$PASSORD
read
-p
"Are you reay to continue? "
-n
1
-r
if
[[
!
$REPLY
=
~ ^[Yy]
$
]]
then
exit
1
fi
# note on preseeding
# file must be injected in the root/intrd filesysetm
# if file is not named preseed.cfg the file name must be passed to the kerne like preseed/file=/some/whatever.cfg
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment