ansible-tower圖形化的任務(wù)搭建

ansible-tower

1)公司中實(shí)現(xiàn)運(yùn)維自動(dòng)化的架構(gòu)中主要用到ansible,ansible腳本在部署服務(wù)器指令行中顯得不太直觀。Ansible-Tower(之前叫做awx)是將ansible的指令界面化,簡(jiǎn)明直觀,簡(jiǎn)單易用。

2)Ansibke-tower其實(shí)就是一個(gè)圖形化的任務(wù)調(diào)度,復(fù)雜服務(wù)部署,IT自動(dòng)化的一個(gè)管理平臺(tái),屬于發(fā)布配置管理系統(tǒng),支持Api及界面操作,Django編寫。

3)Ansible-tower可以通過界面從github拉取最新playbook實(shí)施服務(wù)部署,提高生產(chǎn)效率。當(dāng)然它也提供一個(gè)RESET API和命令行的CLI以供python腳本調(diào)用

官方網(wǎng)站:https://www.ansible.com/products/tower
中文指南:http://www.ansible.com.cn/docs/tower.html
官方安裝文檔:http://docs.ansible.com/ansible-tower/latest/html/quickinstall/index.html
官方源地址:http://releases.ansible.com/ansible-tower/setup-bundle/

ansible-tower安裝及配置

下載地址:
https://releases.ansible.com/ansible-tower/setup-bundle/

其中,el7是centos7,el8是centos8,在3.6.4版本后提供瀏覽器翻譯功能,建議下載使用3.6.4

cd /tmp
tar -zxvf ansible-tower-setup-bundle-3.6.4-1.el7.tar.gz
cd ansible-tower-setup-bundle-3.6.4-1
vim inventory
[tower]
localhost ansible_connection=local
 
[database]
 
[all:vars]
admin_password='tower'   #tower登錄密碼
 
pg_host=''
pg_port=''
 
pg_database='awx'
pg_username='awx'
pg_password='tower'
pg_sslmode='prefer'  # set to 'verify-full' for client-side enforced SSL
 
rabbitmq_username=tower
rabbitmq_password='tower'
rabbitmq_cookie=cookiemonster
 
# Isolated Tower nodes automatically generate an RSA key for authentication;
# To disable this behavior, set this value to false
# isolated_key_generation=true
 
 
# SSL-related variables
 
# If set, this will install a custom CA certificate to the system trust store.
# custom_ca_cert=/path/to/ca.crt
 
# Certificate and key to install in nginx for the web UI and API
# web_server_ssl_cert=/path/to/tower.cert
# web_server_ssl_key=/path/to/tower.key
 
# Use SSL for RabbitMQ inter-node communication.  Because RabbitMQ never
# communicates outside the cluster, a private CA and certificates will be
# created, and do not need to be supplied.
# rabbitmq_use_ssl=False
 
# Server-side SSL settings for PostgreSQL (when we are installing it).
# postgres_use_ssl=False
# postgres_ssl_cert=/path/to/pgsql.crt
# postgres_ssl_key=/path/to/pgsql.key
 

#開始安裝
 ./setup.sh

訪問訪問https://IP/#/login

1.png

2.png
3.png
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容