16 Star 91 Fork 13

Gitee 极速下载/pigsty

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Vonng/pigsty
克隆/下载
docker.yml 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File : docker.yml
# Desc : init docker on nodes
# Ctime : 2023-02-20
# Mtime : 2024-08-07
# Path : docker.yml
# Author : Ruohang Feng ([email protected])
# License : AGPLv3
#==============================================================#
- name: DOCKER INIT
hosts: all
gather_facts: no
become: yes
vars:
#docker_enabled: false # enable docker on this node? false by default
#docker_cgroups_driver: systemd # docker cgroup fs driver: cgroupfs,systemd
#docker_registry_mirrors: [ ] # docker registry mirror list
#docker_exporter_port: 9323 # docker metrics exporter port, 9323 by default
#docker_image_cache: /tmp/docker # docker image cache dir, `/tmp/docker` by default
roles:
- { role: node_id , tags: id } # get node identity (always)
- { role: docker , tags: docker ,when: docker_enabled is defined and docker_enabled|bool }
#---------------------------------------------------------------
# Usage
#---------------------------------------------------------------
# Set parameter `docker_enabled: true` on target nodes, then:
#
# ./docker.yml -l <group|host>
#
# docker images on /tmp/docker/*.tgz will be loaded automatically
# you can add registry mirror to `docker_registry_mirrors` to accelerate
#---------------------------------------------------------------
# Tasks
#---------------------------------------------------------------
# docker : setup docker on node to run containers (optional)
# - docker_install : install docker on nodes
# - docker_admin : add user to docker admin group
# - docker_config : generate docker daemon config
# - docker_launch : launch docker daemon systemd service
# - docker_register : register docker target to prometheus
# - docker_image : load docker images from /tmp/docker/*.tgz if exists
#---------------------------------------------------------------
...
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/pigsty.git
[email protected]:mirrors/pigsty.git
mirrors
pigsty
pigsty
dev

搜索帮助