IBM Spectrum Scale (GPFS) GUI Ansible Role
======================================
Highly-customizable Ansible role for installing and configuring IBM Spectrum Scale (GPFS) GUI nodes.
Features
--------
- **Install GUI and zimon packages**
- **Configure Performance Monitoring and collectors**
- **Install and configure Call Home**
- **Dual/HA GUI Nodes**
- **Create Local Users for GUI**
- **Change Password Policy for GUI Users**
- **Configure Active Directory and Map roles to LDAP Groups**
- **Configure E-Mail Notifications**
- **Configure E-Mail Receptions**
- **Configure SNMP Notification**
- **Request HTTPs Certifcate from Hasicorp Vault**
- **Create local Admin User with password from Hasicorp Vault**
The following installation methods are available:
- **Install from (existing) YUM repository**
- **Install from local installation package (accessible on Ansible control machine)**
Future plans:
- **Upgrade, Change and Disable services.**
- **Adding nodes to Performance sensors**
Installation
------
Installation
```
$ ansible-playbook -i hosts playbook.yml
or ./ansible.sh
```
Requirements
-------------
As there's no public repository available, you'll need to download Spectrum Scale (GPFS) packages from the IBM website. Visit https://www.ibm.com/support/fixcentral and search for 'IBM Spectrum Scale (Software defined storage)'.
Local Spectrum Scale Repo
-------
To created a local repo on a web server:
```
cd /your/webserver/folder
# Download the Spectrum Scale install files. get directlink or copy it into your server
wget ------Spectrum Scale Binary -----
sh ./Spectrum_Scale_Data_Management-5.0.X.X-x86_64-Linux-install --dir ./SpectrumScaleRpms/5.0.X.X/ --silent
yum install -y createrepo
cd SpectrumScaleRpms/5.0.X.X/
createrepo .
```
Role Variables
--------------
Default variables are defined in defaults/main.yml in every rolse. You'll also find detailed documentation in that file. Define your own host variables in your inventory to override the defaults.
Defining the variable scale_version is mandatory.
- Furthermore, you'll need to configure an installation method by defining one of the following variables:
- `scale_install_repository_url:` this needs to pointed to `zimon_rpms` folder, as orginal library from download cant find the correct packages.
Role Dependencies
----
core role needs to be executed first. but we can also execute only gui role if core cluster is already exists.
Example Playbook
----------------
The simplest possible playbook to install Spectrum Scale on a node with GUI:
```
---
- hosts: scale01.example.com
vars:
- scale_version: 5.0.4.0
- scale_install_localpkg_path: /path/to/Spectrum_Scale_Standard-5.0.4.0-x86_64-Linux-install
roles:
- core/precheck
- core/node
- core/cluster
- gui/precheck
- gui/node
- gui/cluster
```
This will install all required packages and create a single-node Spectrum Scale cluster with GUI.
In reality you'll most probably want to install Spectrum Scale on a number of nodes, and you'll also want to consider the node roles in order to achieve high-availability. The cluster will be configured with all hosts in the current play:
```
# host_vars/scale01:
---
scale_storage:
- filesystem: gpfs01
blockSize: 4M
defaultMetadataReplicas: 2
defaultDataReplicas: 2
numNodes: 16
automaticMountOption: true
defaultMountPoint: /mnt/gpfs01
disks:
- device: /dev/sdb
nsd: nsd_1
servers: scale01
failureGroup: 10
usage: metadataOnly
pool: system
- device: /dev/sdc
nsd: nsd_2
servers: scale01
failureGroup: 10
usage: dataOnly
pool: data
scale_nodeclass:
- class1
scale_config:
- nodeclass: class1
params:
- pagepool: 2G
- autoload: yes
- ignorePrefetchLunCount: yes
scale_cluster_gui: true
```
```
# host_vars/scale02:
---
scale_storage:
- filesystem: gpfs01
disks:
- device: /dev/sdb
nsd: nsd_3
servers: scale02
failureGroup: 20
usage: metadataOnly
pool: system
- device: /dev/sdc
nsd: nsd_4
servers: scale02
failureGroup: 20
usage: dataOnly
pool: data
scale_cluster_gui: true ##Dual/HA GUI
```
- For more information check out man pages and https://www.ibm.com/support/knowledgecenter/en/STXKQY/ibmspectrumscale_welcome.html
All the variable below can be added to **host_vars/host:** on the node you want to be GUI node.
For the Second GUI node, you only needs to have `scale_cluster_gui: true`
Spetrum Scale Local GUI Users
-------
##### Spectrum Scale GUI Admin.
- This is to be able to access the Spectrum Scale GUI. Change the role for the user do the Permission that is sufficient. (See list of roles below)
- Default password policy is length of 6 Character.
- For Secure environment, Store you password in Ansible Vault or HasiCorp Vault. Se option for HasiCorp below
- FYI: All of the Parameters here is mandatory.
```
scale_gui_admin_user: "admin"
scale_gui_admin_password: "Admin@GUI"
scale_gui_admin_role: "SecurityAdmin,SystemAdmin"
```
##### Spectrum Scale GUI user.
- Extra Users can be created.
- Change the Role for the user to the Permission that is sufficient.
- All of the Parameters is mandatory.
```
scale_gui_user_username: 'SEC'
scale_gui_user_password: 'Storage@Scale1'
scale_gui_user_role: 'SystemAdmin'
```
##### HasiCorp Integration - Create Admin user with password from Vault.
- HasiCorp - Create local Admin user with password from vault
- The Secret is writen to vault `secret/private/{{ computed.name | default(AdminGUI) }}/gui"`
```
scale_gui_admin_hc_vault: false
scale_gui_admin_hc_vault_user: "admin"
scale_gui_admin_hc_vault_role: "SecurityAdmin,SystemAdmin"
```
##### Specifies a role name for the group. Role name is not case-sensitive. Available system-defined roles are:
- **Administrator** - Manages all functions on the system except those deals with managing users, user groups, and authentication.
- **SecurityAdmin** - Manages all functions on the system, including managing users, user groups, and user authentication.
- **SystemAdmin** - Manages clusters, nodes, alert logs, and authentication.
- **StorageAdmin** - Manages disks, file systems, pools, filesets, and ILM policies.
- **SnapAdmin** - Manages snapshots for file systems and filesets.
- **DataAccess** - Controls access to data. For example, managing access control lists.
- **Monitor** - Monitors objects and system configuration but cannot configure, modify, or manage the system or its resources.
- **ProtocolAdmin** - Manages object storage and data export definitions of SMB and NFS protocols.
- **UserAdmin** - Manages access for GUI users. Users who are part of this group have edit permissions only in the Access pages of the GUI.
----------------------------------------------------------------------------------------------
GUI Users Password Policy Parameters
-------
Add and Change what you need in your inventory files and rest wil use default
If you only want to change max age of password.
Add
```
scale_gui_password_policy_change: true
scale_gui_password_policy:
maxAge: '90'
```
For all functions:
```
scale_gui_password_policy_change: ## To enable Change of Password Policy
scale_gui_password_policy:
minLength: '6' ## Minimum password length
maxAge: '90' ## Maximum password age
minAge: '0' ## Minimum password age
remember: '3' ## Remember old passwords
minUpperChars: '0' ## Minimum upper case characters
minLowerChars: '0' ## Minimum lower case characters
minSpecialChars: '0' ## Minimum special case characters
minDigits: '0' ## Minimum digits
maxRepeat: '0' ## Maximum number of repeat characters
minDiff: '1' ## Minimum different characters with respect to old password
re
没有合适的资源?快使用搜索试试~ 我知道了~
ibm-spectrum-scale-install-infra:Spectrum Scale安装和配置
共171个文件
yml:123个
j2:11个
py:10个
需积分: 42 9 下载量 68 浏览量
2021-01-31
08:19:16
上传
评论
收藏 183KB ZIP 举报
温馨提示
使用Ansible角色的IBM Spectrum Scale(GPFS)部署 具有多个角色的Ansible项目,用于安装和配置IBM Spectrum Scale(GPFS)。 目录 产品特点 基础架构最低测试配置 预先构建的基础架构(使用静态清单文件) 动态库存文件 最低测试的操作系统 x86_64,PPC64和PPC64LE上的RHEL 7 x86_64和PPC64LE上的RHEL 8 通用先决条件 禁用SELinux( scale_prepare_disable_selinux: true ),默认情况下为false 禁用防火墙( scale_prepare_disable_firewall: true ),默认情况下为true。 禁用防火墙端口 安装并启动NTP 创建/ etc / hosts映射 打开防火墙端口 生成SSH密钥 用户必须设置基本操作系统存储库 核心频谱规模前提条件 安装yum-utils软件包 安装gcc-c ++,kernel-devel,make 安装elfutils,elfutils-devel(特定于RHEL8) 核心频
资源详情
资源评论
资源推荐
收起资源包目录
ibm-spectrum-scale-install-infra:Spectrum Scale安装和配置 (171个子文件)
.empty 0B
.empty 0B
hosts 474B
hosts 197B
inventory 11B
inventory 11B
inventory 11B
inventory 11B
inventory 11B
StanzaFile.j2 876B
StanzaFile.j2 800B
NewNodeFile.j2 292B
NewNodeFile.j2 292B
ChangeFile.j2 280B
ChangeFile.j2 280B
AddNodeStanza.j2 136B
AddNodeFile.j2 134B
AddNodeFile.j2 134B
NodeClass.j2 128B
NodeClass.j2 128B
scale_clusterdefinition.json 824B
add-node.json 197B
remove-node.json 101B
LICENSE 11KB
README.md 19KB
README.md 18KB
README.md 7KB
CONTRIBUTING.md 5KB
bug_report.md 647B
feature_request.md 612B
ibm_spectrumscale_node.py 37KB
ibm_spectrumscale_utils.py 24KB
ibm_spectrumscale_cluster_utils.py 22KB
ibm_spectrumscale_filesystem_utils.py 17KB
ibm_spectrumscale_filesystem.py 11KB
ibm_spectrumscale_cluster.py 8KB
ibm_spectrumscale_disk_utils.py 8KB
ibm_spectrumscale_nsd_utils.py 6KB
ibm_spectrumscale_df_utils.py 5KB
ibm_spectrumscale_zimon_utils.py 2KB
__init.py__ 0B
ansible.sh 182B
node-remove-test.yaml 5KB
cluster-get-test.yaml 2KB
node-get-test.yaml 1KB
node-add-test.yaml 1KB
filesystem-test.yaml 968B
node-status-test.yaml 582B
storage.yml 13KB
install_local_pkg.yml 7KB
cloud_playbook.yml 7KB
ldap.yml 6KB
install_remote_pkg.yml 6KB
main.yml 6KB
install_dir_pkg.yml 6KB
install_local_pkg.yml 6KB
cluster.yml 6KB
configure.yml 5KB
install_local_pkg.yml 5KB
main.yml 5KB
install_local_pkg.yml 5KB
install.yml 5KB
main.yml 4KB
install_remote_pkg.yml 4KB
config.yml 4KB
install_dir_pkg.yml 3KB
check.yml 3KB
main.yml 3KB
main.yml 3KB
hasi_vault_certificate.yml 3KB
check.yml 3KB
upgrade.yml 3KB
install_dir_pkg.yml 3KB
prepare.yml 3KB
configure.yml 3KB
email.yml 3KB
inventory_check.yml 3KB
install_license_pkg.yml 2KB
build.yml 2KB
install.yml 2KB
cluster_start.yml 2KB
install.yml 2KB
install.yml 2KB
set_json_variables.yml 2KB
finalize.yml 2KB
finalize.yml 2KB
main.yml 2KB
main.yml 2KB
users.yml 2KB
main.yml 2KB
snmp.yml 2KB
main.yml 1KB
main.yml 1KB
main.yml 1KB
removenode.yml 1KB
install_license_repository.yml 1KB
hasi_vault_user.yml 1KB
install_repository.yml 1KB
main.yml 1KB
configure.yml 1KB
共 171 条
- 1
- 2
Jeckaijew
- 粉丝: 36
- 资源: 4532
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0