VM creation OK!

This commit is contained in:
Denis Lambolez
2017-12-06 22:32:13 +01:00
parent aec00ed62f
commit c64a50bb5e
7 changed files with 46 additions and 52 deletions
Regular → Executable
+1 -4
View File
@@ -20,7 +20,7 @@
# | | |
# | | |
# =========================================================================================
set -xv
#set -xv
# Version
VERSION=ceph-install-1.0-120417
@@ -33,9 +33,6 @@ GUEST_USER_SSH_DIR="$GUEST_USER_DIR/.ssh"
GUEST_VAGRANT_SCRIPT_DIR="/vagrant/scripts"
GUEST_VAGRANT_SSH_DIR="/vagrant/.ssh"
GUEST_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)
PUBLIC_NETWORK=$(echo $GUEST_IP | awk -F '.' '{print $1"."$2"."$3".0/24"}')
mkdir -p "$GUEST_USER_DIR/ceph-cluster"
cd "$GUEST_USER_DIR/ceph-cluster"
#ceph-deploy new node-admin
Regular → Executable
-3
View File
@@ -42,9 +42,6 @@ fi
# Create user ceph-admin
useradd -m -s /bin/bash $CEPH_ADMIN_USER
# Clean-up previous provisioning
$CEPH_ADMIN_EXEC rm -f "$GUEST_USER_DIR/provision-ok"
# Make ceph-admin passwordless sudoer
echo "$CEPH_ADMIN_USER ALL = (root) NOPASSWD:ALL" | tee "/etc/sudoers.d/$CEPH_ADMIN_USER"
chmod 0440 "/etc/sudoers.d/$CEPH_ADMIN_USER"
Regular → Executable
View File
Regular → Executable
View File