First stage of conversion to Ubuntu 18.04 and Ceph Octopus
This commit is contained in:
parent
2fdc02686a
commit
15000a349a
|
@ -6,15 +6,13 @@ Vagrant.configure("2") do |config|
|
||||||
vagrant_root = File.dirname(__FILE__)
|
vagrant_root = File.dirname(__FILE__)
|
||||||
|
|
||||||
# Trigger the Vagrant pre-up script before uping the first VM only
|
# Trigger the Vagrant pre-up script before uping the first VM only
|
||||||
config.trigger.before :up, :vm => ["node-admin"], :append_to_path => ["#{vagrant_root}/scripts"] do
|
|
||||||
run "pre-up.sh"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Shell provisionner for all VMs
|
# Shell provisionner for all VMs
|
||||||
config.vm.provision "ceph-preflight", type: "shell", path: "scripts/provision.sh"
|
config.vm.provision "ceph-preflight", type: "shell", path: "scripts/provision.sh"
|
||||||
|
|
||||||
# All VMs are based on the same box
|
# All VMs are based on the same box
|
||||||
config.vm.box = "bento/ubuntu-16.04"
|
config.vm.box = "generic/ubuntu1804"
|
||||||
|
|
||||||
# Use nfs for shared folder
|
# Use nfs for shared folder
|
||||||
config.vm.synced_folder ".", "/vagrant",
|
config.vm.synced_folder ".", "/vagrant",
|
||||||
|
@ -42,6 +40,9 @@ Vagrant.configure("2") do |config|
|
||||||
config.vm.define "node-admin", primary: true do |admin|
|
config.vm.define "node-admin", primary: true do |admin|
|
||||||
admin.vm.hostname = "node-admin"
|
admin.vm.hostname = "node-admin"
|
||||||
admin.vm.provision "ceph-install", type: "shell", keep_color: true, path: "scripts/provision-admin.sh"
|
admin.vm.provision "ceph-install", type: "shell", keep_color: true, path: "scripts/provision-admin.sh"
|
||||||
|
admin.trigger.before :up do |trigger|
|
||||||
|
trigger.run = {path: "scripts/pre-up.sh"}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# osd1 VM with private cluster network
|
# osd1 VM with private cluster network
|
||||||
|
|
|
@ -49,6 +49,8 @@ ceph-deploy new $ADMIN_NODE
|
||||||
# Initialize cluster configuration
|
# Initialize cluster configuration
|
||||||
$OUTPUT_LOG "Initialize cluster configuration"
|
$OUTPUT_LOG "Initialize cluster configuration"
|
||||||
cat << CLUSTERCONFIG | tee -a ceph.conf
|
cat << CLUSTERCONFIG | tee -a ceph.conf
|
||||||
|
[global]
|
||||||
|
mon_inital_members = ceph-admin
|
||||||
public network = $PUBLIC_NETWORK
|
public network = $PUBLIC_NETWORK
|
||||||
cluster network = $CLUSTER_NETWORK
|
cluster network = $CLUSTER_NETWORK
|
||||||
|
|
||||||
|
@ -69,7 +71,7 @@ done
|
||||||
|
|
||||||
# Deploy ceph on all nodes
|
# Deploy ceph on all nodes
|
||||||
$OUTPUT_LOG "Deploy ceph on all nodes"
|
$OUTPUT_LOG "Deploy ceph on all nodes"
|
||||||
ceph-deploy install --release luminous $NODES
|
ceph-deploy install --release octopus $NODES
|
||||||
|
|
||||||
# Create initial monitor
|
# Create initial monitor
|
||||||
$OUTPUT_LOG "Create initial monitor"
|
$OUTPUT_LOG "Create initial monitor"
|
||||||
|
|
|
@ -41,10 +41,10 @@ export DEBIAN_FRONTEND=noninteractive
|
||||||
# Make sure we have the french locale
|
# Make sure we have the french locale
|
||||||
locale-gen fr_FR.UTF-8
|
locale-gen fr_FR.UTF-8
|
||||||
|
|
||||||
# Install ceph repository (luminous version)
|
# Install ceph repository (Octopus version)
|
||||||
$OUTPUT_LOG "Install ceph repository (luminous version)"
|
$OUTPUT_LOG "Install ceph repository (Octopus version)"
|
||||||
wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
||||||
echo deb https://download.ceph.com/debian-luminous/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/ceph.list
|
echo deb https://download.ceph.com/debian-octopus/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/ceph.list
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
# Install chrony for time synchronization, gdisk for GPT partitioning,
|
# Install chrony for time synchronization, gdisk for GPT partitioning,
|
||||||
|
|
Loading…
Reference in New Issue