kolla-ansible命令大全

半兽人 发表于: 2023-02-20   最后更新时间: 2023-02-20 16:24:24  
{{totalSubscript}} 订阅, 845 游览

常用命令

# 部署
kolla-ansible -i ./multinode deploy

# 重新配置OpenStack服务
kolla-ansible -i ./multinode reconfigure

# 停止Kolla容器
kolla-ansible -i ./multinode stop --yes-i-really-really-mean-it

# 销毁Kolla容器、卷和主机配置
kolla-ansible -i ./multinode destroy --yes-i-really-really-mean-it
# --include-image 可以销毁Kolla images
# --include-dev   可以销毁dev模式的repo
# 部署前环境检测
kolla-ansible -i ./multinode prechecks

# 生成/etc/kolla/password.yml密码配置文件
kolla-genpwd

# 生成认证文件
kolla-ansible -i ./multinode post-deploy

# 恢复数据库
kolla-ansible -i ./multinode mariadb_recovery

# 拉取镜像
kolla-ansible -i ./multinode pull

日志&数据:

/var/lib/docker/volumes

kolla-ansible全部命令

$ kolla-ansible -h
Usage: /path/to/venv/bin/kolla-ansible COMMAND [options]

Options:
    --inventory, -i <inventory_path>   Specify path to ansible inventory file. Can be specified multiple times to pass multiple inventories.
    --playbook, -p <playbook_path>     Specify path to ansible playbook file
    --configdir <config_path>          Specify path to directory with globals.yml
    --key -k <key_path>                Specify path to ansible vault keyfile
    --help, -h                         Show this usage information
    --tags, -t <tags>                  Only run plays and tasks tagged with these values
    --skip-tags <tags>                 Only run plays and tasks whose tags do not match these values
    --extra, -e <ansible variables>    Set additional variables as key=value or YAML/JSON passed to ansible-playbook
    --passwords <passwords_path>       Specify path to the passwords file
    --limit <host>                     Specify host to run plays
    --forks <forks>                    Number of forks to run Ansible with
    --vault-id <@prompt or path>       Specify @prompt or password file (Ansible >=  2.4)
    --ask-vault-pass                   Ask for vault password
    --vault-password-file <path>       Specify password file for vault decrypt
    --check, -C                        Don't make any changes and try to predict some of the changes that may occur instead
    --diff, -D                         Show differences in ansible-playbook changed tasks
    --verbose, -v                      Increase verbosity of ansible-playbook
    --version                          Show version

Environment variables:
    EXTRA_OPTS                         Additional arguments to pass to ansible-playbook

Commands:
    install-deps         Install Ansible Galaxy dependencies
    prechecks            Do pre-deployment checks for hosts
    mariadb_recovery     Recover a completely stopped mariadb cluster
    mariadb_backup       Take a backup of MariaDB databases
                             --full (default)
                             --incremental
    monasca_cleanup      Remove unused containers for the Monasca service
    bootstrap-servers    Bootstrap servers with kolla deploy dependencies
    destroy              Destroy Kolla containers, volumes and host configuration
                             --include-images to also destroy Kolla images
                             --include-dev to also destroy dev mode repos
    deploy               Deploy and start all kolla containers
    deploy-bifrost       Deploy and start bifrost container
    deploy-servers       Enroll and deploy servers with bifrost
    deploy-containers    Only deploy and start containers (no config updates or bootstrapping)
    gather-facts         Gather Ansible facts
    post-deploy          Do post deploy on deploy node
    pull                 Pull all images for containers (only pulls, no running container changes)
    reconfigure          Reconfigure OpenStack service
    stop                 Stop Kolla containers
    certificates         Generate self-signed certificate for TLS *For Development Only*
    octavia-certificates Generate certificates for octavia deployment
    upgrade              Upgrades existing OpenStack Environment
    upgrade-bifrost      Upgrades an existing bifrost container
    genconfig            Generate configuration files for enabled OpenStack services
    prune-images         Prune orphaned Kolla images
    nova-libvirt-cleanup Clean up disabled nova_libvirt containers
更新于 2023-02-20
在线,5小时前登录

查看kolla-ansible更多相关的文章或提一个关于kolla-ansible的问题,也可以与我们一起分享文章