Comments (18)
这个仅指inventory的主机管理,因为ansible官方UI的主机管理太过复杂,所以直接提供了hosts文件的编辑功能。这个不是运维意义上的资产管理,写的有些大了,已更改为 ”主机管理界面“
from ansible_ui.
使用setup模块取值 写进db 可行吗 简易的 查看资产的 然后增加个刷新按键 手动更新硬件信息 如果有变化的话 可行吗
from ansible_ui.
使用setup模块查看主机信息,并写进db,进行硬件信息的维护,这个是可行的。
不过如果是把ansible_ui 系统作为资产管理系统的话,觉得不是很适合。一来,资产管理的作用是资产盘点和审查用的,本身是以硬件信息为基础的,如果主机IP为标识,IP变了的话,那么资产应该还是原来那个资产,如果以主板序列号为标识,那遇到换主板的情况,资产也应该还是原来的资产,这样,需要考虑的情况就比较复杂,另外,周期性的检查和更新也是需要考虑的;二来,资产管理还涉及另一方面,就是资产归属,这个通常也是需要手工去维护的。
from ansible_ui.
如果是想做比较完善的资产管理,可以考虑glpi或者cmdbuild,尤其glpi,界面上显得更为专业(朴素),估计更讨老板喜欢,还可以通过agent实现自动信息更新。
from ansible_ui.
为什么我部署任务后一直是pending状态。
在debug日志里有看到
INFO /home/ansible/envansible/bin/ansible-playbook -i /home/ansible/ansible_ui/projects/test/inventories/hosts /home/ansible/ansible_ui/projects/test/.tmp/393a961e-6410-11e4-a723-842b2b6f19ac.yml --private-key /home/ansible/ansible_ui/cretential/root/id_dsa
但是一直不执行
from ansible_ui.
我的也是一直pending状态
谁能解决下。
from ansible_ui.
看看后台celery进程的状态是否正常来自我的华为手机-------- 原始邮件 --------主题:Re: [ansible_ui] 资产管理界面 这个还木有做吧? (#2)发件人:bagmdgiveme 收件人:alaxli/ansible_ui 抄送:alex_li 我的也是一直pending状态
谁能解决下。
—Reply to this email directly or view it on GitHub.
from ansible_ui.
from ansible_ui.
celery进程没起来,应有 manage.py celery worker -B -l info 进程来自我的华为手机-------- 原始邮件 --------主题:Re: [ansible_ui] 资产管理界面 这个还木有做吧? (#2)发件人:bagmdgiveme 收件人:alaxli/ansible_ui 抄送:alex_li
—Reply to this email directly or view it on GitHub.
from ansible_ui.
ansible_ui资产管理优点不是很明显吧?
是环境变量问题吗??
ansible的环境变量怎么设置呢。
from ansible_ui.
有例子没,搞个例子,看下,研究研究
from ansible_ui.
之前的问题就是环境变量的问题,已解决,
现在有新问题。
from ansible_ui.
状态:failed
stdout
ERROR: tasks is not a legal parameter in an Ansible task or handler
from ansible_ui.
[root@cenos playbooks]# cat ping2.yml
- hosts: all
remote_user: root
#gather_facts: False
tasks:- name: echo hi
shell: echo "hi"
handlers:- include: ./ping2.yml
- name: echo hi
这个yml用ansible-playbook ping2.yml 执行是没有问题的。
from ansible_ui.
[root@cenos playbooks]# ansible-playbook ping2.yml
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
fatal: [192.168.106.42] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.106.43] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.106.44] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
ok: [192.168.194.65]
ok: [10.6.1.32]
TASK: [echo hi] ***************************************************************
changed: [192.168.194.65]
changed: [10.6.1.32]
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/ping2.retry
10.6.1.32 : ok=2 changed=1 unreachable=0 failed=0
192.168.106.42 : ok=0 changed=0 unreachable=1 failed=0
192.168.106.43 : ok=0 changed=0 unreachable=1 failed=0
192.168.106.44 : ok=0 changed=0 unreachable=1 failed=0
192.168.194.65 : ok=2 changed=1 unreachable=0 failed=0
from ansible_ui.
可以查看下失败的机器上相应的账号中,是否有ansible_ui中配置的用户公钥, ansible_ui 会使用配置的公钥,直接执行使用的是机器上的密钥,这点有可能不同
from ansible_ui.
打算将python manage.py runserver改为nginx+uwsgi, 但是没改成功, 折腾了一下午. 再接在励了. 你们有整合到nginx吗?
from ansible_ui.
已增加nginx+uwsgi的配置,包含 ansible_uwsgi.ini , ansible.wsgi, nginx-conf/nginx_ansible.conf
from ansible_ui.
Related Issues (20)
- 部署遇到问题,求教 HOT 22
- Unknown command: 'schemamigration' HOT 5
- 部署秘钥 显示一直是wait..... HOT 6
- 执行 python manage.py migrate ansible 报错 HOT 8
- 部署密钥一直提示please wait HOT 6
- 亲 能否在requirements.txt中把你需求的版本指定一下 HOT 5
- 亲, 安装的时候报了一个异常错误 HOT 1
- 这个数据库只能装在本地吗?
- 部署密钥报错
- 请问下,怎么添加新用户?
- ansible_ui 能安装在ubuntu12.04上吗? HOT 1
- Python2.7的哪个小版本 HOT 1
- 初始化数据库报错,寻求帮助 HOT 5
- 求解答,安装成功后下发任务一直运行状态是pending,求教是什么问题呢? HOT 4
- 亲测可用的requirements.txt(带版本号) HOT 4
- 持续集成的在哪里呢?
- 部署完成后,发布任务,状态显示error HOT 1
- 怎么新建任务模板呀?
- 部署密钥出现问题 HOT 1
- 是否支持ansible-playbook调用.yml文件方式来执行任务
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible_ui.