Compare commits
No commits in common. "5224ae00cd8d27fceb5bb95d7aa493a06e838d68" and "ad2dadb0b6bba828a33b7499e89404e088a3e7ec" have entirely different histories.
5224ae00cd
...
ad2dadb0b6
@ -1,14 +1,10 @@
|
||||
---
|
||||
|
||||
- name: Creation de .ssh
|
||||
file:
|
||||
path: /root/.ssh
|
||||
mode: 0700
|
||||
state: directory
|
||||
file: path=/root/.ssh mode=0700 state=directory
|
||||
|
||||
- name: Copie cle publiique depuis s-adm
|
||||
ansible.posix.authorized_key:
|
||||
user: root
|
||||
state: present
|
||||
key: http://s-adm.gsb.adm/id_rsa.pub
|
||||
- name: Copie cle public s-adm
|
||||
shell: curl 192.168.99.99/id_rsa.pub > ~/.ssh/authorized_keys
|
||||
|
||||
#- name: Copie cle public s-spec
|
||||
# shell: curl 192.168.99.10/id_rsa.pub >> ~/.ssh/authorized_keys
|
||||
|
@ -11,7 +11,7 @@ deletemode=0
|
||||
usage () {
|
||||
echo "$0 - version ${mkvmrelease} - Ova version ${ovarelease}"
|
||||
echo "$0 : creation VM et parametrage interfaces"
|
||||
echo "usage : $0 [-r] <s-adm|s-infra|r-int|r-ext|s-proxy|s-mon|s-appli|s-backup|s-itil|s-ncx|s-fog>"
|
||||
echo "usage : $0 [-r] <s-infra|r-int|r-ext|s-proxy|s-mon|s-appli|s-backup|s-itil|s-ncx|s-fog>"
|
||||
echo " option -r : efface vm existante avant creation nouvelle"
|
||||
exit 1
|
||||
}
|
||||
@ -33,6 +33,7 @@ create_vm () {
|
||||
}
|
||||
|
||||
setif () {
|
||||
|
||||
VBoxManage modifyvm "$1" --nic"${2}" intnet
|
||||
VBoxManage modifyvm "$1" --intnet"${2}" "$3"
|
||||
VBoxManage modifyvm "$1" --nictype"${2}" 82540EM
|
||||
@ -65,8 +66,6 @@ fi
|
||||
vm="$1"
|
||||
|
||||
create_vm "${vm}"
|
||||
if [[ "${vm}" == "s-adm" ]] ; then
|
||||
bash addint-s.adm
|
||||
if [[ "${vm}" == "s-infra" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-proxy" ]] ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user