2. 配置文件¶
配置文件中模块的详细解释和使用用途。
2.1. ftp¶
ftp模块用来指定FTP服务器,我们把需要安装的虚拟机都挂载在FTP上,所以audep可以通过ftp 服务把虚拟机下载下来。
[ftp]
user=ftpuser
passwd=ftppassword
Note
user
:FTP用户名passwd
:FTP密码
2.2. server¶
server模块指代一个服务器,这个服务器有如下作用:
- 从FTP服务器下载虚拟机
- 执行ovftool命令,与超融合集群服务器相互通信,安装虚拟机
[server]
host=192.168.33.39
user=ubuntu
passwd=18fc2f8e53c021a965cd9628
Note
host
:服务器主机地址user
:服务器登录用户名passwd
:服务器登录密码
2.3. mc_server¶
mc_server(machine server)模块是默认从FTP下载下来的虚拟机的主机地址,用户名与密码。我们 定义这个模块是为了方便通过ssh进入到该虚拟机中自动化修改配置。
[mc_server]
host=192.168.71.180
user=mcuser
passwd=mcpasswd
Note
host
:服务器主机地址user
:服务器登录用户名passwd
:服务器登录密码
2.4. vsphere¶
vsphere模块是超融合服务器安装完成后的一些认证信息和存储信息。我们的虚拟机都会通过ovftool 命令自动部署到vsphere中。
[vsphere]
host=192.168.1.11
user=administrator@vsphere.local
passwd=vspherepasword
data-storage=bigdata_datastore
data-center=Datacenter
cluster=cluster1
Note
host
:vsphere主机地址user
:vsphere登录用户名passwd
:vsphere登录密码data-storage
:虚拟机存储的地方data-center
:vsphere数据中心,一般都是Datacentercluster
:虚拟机所在的集群名称
2.5. network¶
网络模块代表分配给这个超融合集群里面服务器的IP地址段。
[network]
address_range=180 ~ 190
address_exclude=180,181
netmask=255.255.255.255
gateway=192.168.1.1
dns-nameservers=8.8.8.8
Note
address_range
:IP地址段区间,使用 “~” 符号代表区间address_exclude
:去掉IP地址段区间中某些已经被使用过的地址,使用 ”,” 符号分隔netmask
:网络的子网掩码gateway
:网络的网关dns-nameservers
:网络的DNS服务器
2.6. dependency¶
这个模块代表audep命令完成超融合集群安装所需要的一些依赖。
[dependency]
ovftool=ftp://122.122.122.122/super/VMware-ovftool-4.2.0.bundle
Note
ovftool
:需要检查是否已经安装了ovftool
2.7. mc_bigdata¶
mc_bigdata模块代表超融合集群中所有的与大数据相关虚拟机信息。
[mc_bigdata]
elasticsearch=ftp://122.122.122.122/super/bigdata/Elasticsearch.ovf, autoes7
hdfs_1=ftp://122.122.122.122/super/bigdata/HDFS_1.ovf
hdfs_2=ftp://122.122.122.122/super/bigdata/HDFS_2.ovf
kafka=ftp://122.122.122.122/super/bigdata/Kafka.ovf,audepkafka2
lrs=ftp://122.122.122.122/super/bigdata/LRS.ovf
spark_master=ftp://122.122.122.122/super/bigdata/Spark_master.ovf
spark_slave=ftp://122.122.122.122/super/bigdata/Spark_slave.ovf
Note
下面我们以”kafka=ftp://122.122.122.122/super/bigdata/Kafka.ovf,audepkafka2”来解释:
kafka
:名称ftp://122.122.122.122/super/bigdata/Kafka.ovf
:虚拟机下载地址audepkafka2
:虚拟机名称(使用”,”)与下载地址分隔。如果没有提供则默认使用文件名作为虚拟机名称