日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【网址收藏】主流Ansible Web UI的部署与使用:Tower AWX Semaphore TiOps

發布時間:2025/1/21 编程问答 16 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【网址收藏】主流Ansible Web UI的部署与使用:Tower AWX Semaphore TiOps 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#安裝mariadb-server yum install mariadb-server #啟動mariadb systemctl start mariadb #查看mariadb狀態,如果是running,說明安裝完成了 systemctl status mariadb #查看mariadb版本,默認yum直接安裝是5.5 mysql -V mysql Ver 15.1 Distrib 5.5.65-MariaDB, for Linux (x86_64) using readline 5.# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. #默認安裝完沒有密碼,直接按enter即可 Enter current password for root (enter for none): OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. #輸入y,設置root密碼 Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success!By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. #輸入y,刪除anonymous users Remove anonymous users? [Y/n] y ... Success!Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. #輸入y,因為本次測試,應用和數據庫在一臺機器上,所以可以關閉root遠程登錄權限 Disallow root login remotely? [Y/n] y ... Success!By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. #輸入y,刪除test數據庫 Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success!Reloading the privilege tables will ensure that all changes made so far will take effect immediately. #輸入y,刷新數據庫權限 Reload privilege tables now? [Y/n] y ... Success!Cleaning up...All done! If you've completed all of the above steps, your MariaDB installation should now be secure.Thanks for using MariaDB! #完成mariadb初始化yum install git #git version,查看git版本 git version 1.8.3.1 #安裝ansible sudo yum -y install epel-release sudo yum -y install ansible # ansible --version ansible 2.9.10 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]wget https://github.com/ansible-semaphore/semaphore/releases/download/v2.5.1/semaphore_2.5.1_linux_amd64.rpm # rpm -ivh semaphore_2.5.1_linux_amd64.rpm 準備中... ################################# [100%] 正在升級/安裝...1:semaphore-2.5.1-1 ################################# [100%] # semaphore -version v2.5.1Hello! You will now be guided through a setup to:1. Set up configuration for a MySQL/MariaDB database 2. Set up a path for your playbooks (auto-created) 3. Run database Migrations 4. Set up initial semaphore user & password> DB Hostname (default 127.0.0.1:3306):127.0.0.1:3306 > DB User (default root):root > DB Password: password > DB Name (default semaphore):semaphore > Playbook path (default /tmp/semaphore): > Web root URL (optional, example http://localhost:8010/): http://10.20.3.152:8081 > Enable email alerts (y/n, default n):n > Enable telegram alerts (y/n, default n):n > Enable LDAP authentication (y/n, default n):n Generated configuration: {"mysql": {"host": "127.0.0.1:3306","user": "root","pass": "password","name": "semaphore"},"port": "","tmp_path": "/tmp/semaphore","cookie_hash": "nsXTGAjAwG0oU6pkqVmPT/KpURAki3UiMOoO2RBzvhk=","cookie_encryption": "aKac+rNKJU1kf0IcjC8FDFrGGQZgWkVE+R8d7YH9OLE=","email_sender": "","email_host": "","email_port": "","web_host": "http://10.20.3.152:8081","ldap_binddn": "","ldap_bindpassword": "","ldap_server": "","ldap_searchdn": "","ldap_searchfilter": "","ldap_mappings": {"dn": "","mail": "","uid": "","cn": ""},"telegram_chat": "","telegram_token": "","concurrency_mode": "","max_parallel_tasks": 0,"email_alert": false,"telegram_alert": false,"ldap_enable": false,"ldap_needtls": false } #配置確認,沒問題按y即可 > Is this correct? (yes/no): y > Config output directory (default /root):/root Configuration written to /root/config.json.. Pinging db..Running DB Migrations.. Checking DB migrations Creating migrations table Executing migration v0.0.0 (at 2020-09-02 10:11:26.686649426 +0800 CST m=+63.197184158)... [11/11] Executing migration v1.0.0 (at 2020-09-02 10:11:26.723548351 +0800 CST m=+63.234083061)... [7/7] Executing migration v1.1.0 (at 2020-09-02 10:11:26.75702072 +0800 CST m=+63.267555438)... [1/1] Executing migration v1.2.0 (at 2020-09-02 10:11:26.762418051 +0800 CST m=+63.272952743)... [1/1] Executing migration v1.3.0 (at 2020-09-02 10:11:26.765752117 +0800 CST m=+63.276286844)... [3/3] Executing migration v1.4.0 (at 2020-09-02 10:11:26.779036757 +0800 CST m=+63.289571477)... [2/2] Executing migration v1.5.0 (at 2020-09-02 10:11:26.786357184 +0800 CST m=+63.296891945)... [1/1] Executing migration v0.1.0 (at 2020-09-02 10:11:26.789554596 +0800 CST m=+63.300089308)... [6/6] Executing migration v1.6.0 (at 2020-09-02 10:11:26.805381148 +0800 CST m=+63.315915870)... [4/4] Executing migration v1.7.0 (at 2020-09-02 10:11:26.8229443 +0800 CST m=+63.333479005)... [1/1] Executing migration v1.8.0 (at 2020-09-02 10:11:26.828252977 +0800 CST m=+63.338787701)... [2/2] Executing migration v1.9.0 (at 2020-09-02 10:11:26.833757379 +0800 CST m=+63.344292109)... [2/2] Executing migration v2.2.1 (at 2020-09-02 10:11:26.838939884 +0800 CST m=+63.349474603)... [2/2] Executing migration v2.3.0 (at 2020-09-02 10:11:26.846996333 +0800 CST m=+63.357531046)... [3/3] Executing migration v2.3.1 (at 2020-09-02 10:11:26.859823289 +0800 CST m=+63.370358007)... [1/1] Executing migration v2.3.2 (at 2020-09-02 10:11:26.864990001 +0800 CST m=+63.375524716)... [1/1] Executing migration v2.4.0 (at 2020-09-02 10:11:26.870065072 +0800 CST m=+63.380599806)... [1/1] Executing migration v2.5.0 (at 2020-09-02 10:11:26.873969073 +0800 CST m=+63.384503770)... [1/1] Migrations Finished #看到如上信息,表示配置,下面開始設置第一個賬號和密碼 > Username: yunwei@tyun.cn > Email: yunwei@tyun.cn WARN[0494] sql: no rows in result set level=Warn > Your name: yunwei > Password: password You are all setup yunwei! Re-launch this program pointing to the configuration file./semaphore -config /root/config.jsonTo run as daemon:nohup ./semaphore -config /root/config.json &You can login with yunwei@tyun.cn or yunwei@tyun.cn. #配置完成

https://blog.csdn.net/NewTyun/article/details/109664826#t3

總結

以上是生活随笔為你收集整理的【网址收藏】主流Ansible Web UI的部署与使用:Tower AWX Semaphore TiOps的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。