about blog github

08 Jun 2023
aap tips

  • 通过api检验hub的健康状态
curl https://hub.test.com/api/galaxy/pulp/api/v3/status/
  • 查看postgres的状态
nc -vz psql.postgres.database.azure.com 5432
  • 通过api获取hub的role
curl -H "Authorization: Bearer xxxxxx" https://hub.test.com/api/galaxy/pulp/api/v3/roles/
  • hub api文档
https://docs.pulpproject.org/pulpcore/restapi.html
  • 查询hub端api
curl https://hub.test.com/api/galaxy/pulp/api/v3/
  • aap 2.3包含的组件版本
[controller v4.3](https://docs.ansible.com/automation-controller/4.3/)
hub v4.6
  • scale down aap
kubectl scale deployments --replicas=0 automation-hub-api automation-hub-content automation-hub-redis automation-hub-web automation-hub-worker -n ansible-automation-platform
  • 检查url是否可以访问
curl -Is https://controller.test.com/
  • 发布collection
ansible-galaxy collection publish ./damex-prometheus-1.2.0.tar.gz
  • collection位置
~/.ansible/collections/ansible_collections


LEo at 00:12

about blog github