mirror of https://github.com/easzlab/kubeasz.git
minor changes
parent
51caf57b1e
commit
566a374c99
|
@ -59,6 +59,11 @@ Ubuntu 16.04,首先需要安装 `nfs-common` 包
|
||||||
``` bash
|
``` bash
|
||||||
apt install nfs-common
|
apt install nfs-common
|
||||||
```
|
```
|
||||||
|
CentOS 7, 需要安装 `nfs-utils` 包
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
yum install nfs-utils
|
||||||
|
```
|
||||||
|
|
||||||
使用 mount 命令来挂载其他机器共享的 NFS 目录。可以在终端提示符后输入以下类似的命令:
|
使用 mount 命令来挂载其他机器共享的 NFS 目录。可以在终端提示符后输入以下类似的命令:
|
||||||
|
|
||||||
|
|
|
@ -30,21 +30,7 @@
|
||||||
shell: systemctl daemon-reload && systemctl enable docker && systemctl restart docker
|
shell: systemctl daemon-reload && systemctl enable docker && systemctl restart docker
|
||||||
|
|
||||||
## 可选 ------安装docker查询镜像 tag的小工具----
|
## 可选 ------安装docker查询镜像 tag的小工具----
|
||||||
# 先拉取下节点的ansible setup信息,起到缓存效果,否则后续when 判断可能失败
|
# 先要安装轻量JSON处理程序‘jq’,已在 prepare 节点安装
|
||||||
- name: 缓存ansilbe setup信息
|
|
||||||
setup: gather_subset=min
|
|
||||||
tags: docker-tag
|
|
||||||
|
|
||||||
- name: apt安装轻量JSON处理程序
|
|
||||||
apt: name=jq state=latest
|
|
||||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
|
||||||
tags: docker-tag
|
|
||||||
|
|
||||||
- name: yum安装轻量JSON处理程序
|
|
||||||
yum: name=jq state=latest
|
|
||||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
|
||||||
tags: docker-tag
|
|
||||||
|
|
||||||
- name: 下载 docker-tag
|
- name: 下载 docker-tag
|
||||||
copy: src=docker-tag dest={{ bin_dir }}/docker-tag mode=0755
|
copy: src=docker-tag dest={{ bin_dir }}/docker-tag mode=0755
|
||||||
tags: docker-tag
|
tags: docker-tag
|
||||||
|
|
|
@ -44,6 +44,14 @@
|
||||||
- lxcfs
|
- lxcfs
|
||||||
- lxc-common
|
- lxc-common
|
||||||
|
|
||||||
|
# Ubuntu 安装基础软件包
|
||||||
|
- name: 安装 ubuntu基础软件
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
|
apt: name={{ item }} state=latest
|
||||||
|
with_items:
|
||||||
|
- jq # 轻量JSON处理程序,安装docker查询镜像需要
|
||||||
|
- nfs-common # 挂载nfs 共享文件需要 (创建基于 nfs的PV 需要)
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: 删除centos默认安装
|
- name: 删除centos默认安装
|
||||||
yum: name={{ item }} state=absent
|
yum: name={{ item }} state=absent
|
||||||
|
@ -52,12 +60,11 @@
|
||||||
- python-firewall
|
- python-firewall
|
||||||
- firewalld-filesystem
|
- firewalld-filesystem
|
||||||
- name: 安装基础软件包
|
- name: 安装基础软件包
|
||||||
yum: name={{ item }} state=installed
|
yum: name={{ item }} state=latest
|
||||||
with_items:
|
with_items:
|
||||||
- vim
|
- jq # 轻量JSON处理程序,安装docker查询镜像需要
|
||||||
- git
|
|
||||||
- wget
|
|
||||||
- psmisc # 安装psmisc 才能使用命令killall,它在keepalive的监测脚本中使用到
|
- psmisc # 安装psmisc 才能使用命令killall,它在keepalive的监测脚本中使用到
|
||||||
|
- nfs-utils # 挂载nfs 共享文件需要 (创建基于 nfs的PV 需要)
|
||||||
- net-tools
|
- net-tools
|
||||||
- bash-completion
|
- bash-completion
|
||||||
- name: 临时关闭 selinux
|
- name: 临时关闭 selinux
|
||||||
|
|
Loading…
Reference in New Issue