OpenStack-Ansible自动化部署,openstack-ansible


参考官方 Deployment Guide

Overview

Installation Requirements

检查linux kernal verison
cat /proc/version 
OR
uname -r
检查linux版本
lsb_release -a
……
查看磁盘容量
df -h
修改locale [资料](wiki.ubuntu.com.cn/修改locale)

Prepare the deployment host

configure NTP to synchronize ubuntu NTP

cd /etc/ntp.conf
service ntp start 
service ntp restart
service ntp stop
是否运行 pgrep ntpd
检查服务器时间 date

静态IP地址 资料

configure SSH keys 资料

eval `ssh-agent` //启动ssh-agent服务
ssh-add
sudo vim /etc/ssh/ssh_config 
    ForwardAgent yes

查看是否启动ssh服务&重启(包括ssh-agent) 资料

ps -e|grep ssh

Prepare target hosts

/etc/modules 资料

Error:sudo echo 'bonding'>>/etc/modules 
Fix: echo 'bonding'|sudo tee /etc/modules

deploying SSH keys

public key file on deployment host
/root/.ssh/ authorized_keys
/root/.ssh/ id_rsa.pub 公钥
/root/.ssh/id_rsa 私钥

root 权限问题

Error: sudo cd /root/.ssh
Fix:
    sudo -i 提升权限
    cd /root/.ssh
    ....
    exit 退回到原本权限

相关内容

    暂无相关文章