Giter Club home page Giter Club logo

Comments (18)

alaxli avatar alaxli commented on August 23, 2024

这个仅指inventory的主机管理,因为ansible官方UI的主机管理太过复杂,所以直接提供了hosts文件的编辑功能。这个不是运维意义上的资产管理,写的有些大了,已更改为 ”主机管理界面“

from ansible_ui.

vTNT avatar vTNT commented on August 23, 2024

使用setup模块取值 写进db 可行吗 简易的 查看资产的 然后增加个刷新按键 手动更新硬件信息 如果有变化的话 可行吗

from ansible_ui.

alaxli avatar alaxli commented on August 23, 2024

使用setup模块查看主机信息,并写进db,进行硬件信息的维护,这个是可行的。
不过如果是把ansible_ui 系统作为资产管理系统的话,觉得不是很适合。一来,资产管理的作用是资产盘点和审查用的,本身是以硬件信息为基础的,如果主机IP为标识,IP变了的话,那么资产应该还是原来那个资产,如果以主板序列号为标识,那遇到换主板的情况,资产也应该还是原来的资产,这样,需要考虑的情况就比较复杂,另外,周期性的检查和更新也是需要考虑的;二来,资产管理还涉及另一方面,就是资产归属,这个通常也是需要手工去维护的。

from ansible_ui.

alaxli avatar alaxli commented on August 23, 2024

如果是想做比较完善的资产管理,可以考虑glpi或者cmdbuild,尤其glpi,界面上显得更为专业(朴素),估计更讨老板喜欢,还可以通过agent实现自动信息更新。

from ansible_ui.

liuyuyao888 avatar liuyuyao888 commented on August 23, 2024

为什么我部署任务后一直是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.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

我的也是一直pending状态
谁能解决下。

from ansible_ui.

alaxli avatar alaxli commented on August 23, 2024

看看后台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.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

image

from ansible_ui.

alaxli avatar alaxli commented on August 23, 2024

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.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

ansible_ui资产管理优点不是很明显吧?
是环境变量问题吗??
ansible的环境变量怎么设置呢。
image

from ansible_ui.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

有例子没,搞个例子,看下,研究研究

from ansible_ui.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

之前的问题就是环境变量的问题,已解决,
现在有新问题。

from ansible_ui.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

状态:failed
stdout

ERROR: tasks is not a legal parameter in an Ansible task or handler

from ansible_ui.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

[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

这个yml用ansible-playbook ping2.yml 执行是没有问题的。

from ansible_ui.

bagmdgiveme avatar bagmdgiveme commented on August 23, 2024

[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.

alaxli avatar alaxli commented on August 23, 2024

可以查看下失败的机器上相应的账号中,是否有ansible_ui中配置的用户公钥, ansible_ui 会使用配置的公钥,直接执行使用的是机器上的密钥,这点有可能不同

from ansible_ui.

neo515 avatar neo515 commented on August 23, 2024

打算将python manage.py runserver改为nginx+uwsgi, 但是没改成功, 折腾了一下午. 再接在励了. 你们有整合到nginx吗?

from ansible_ui.

alaxli avatar alaxli commented on August 23, 2024

已增加nginx+uwsgi的配置,包含 ansible_uwsgi.ini , ansible.wsgi, nginx-conf/nginx_ansible.conf

from ansible_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.