thebinary.lxd
ansible-role-lxd 
这是一个在Ubuntu上安装LXD并执行基础配置的Ansible角色,具体按照入门指南进行。
需求
- 部署此角色的主机必须是Ubuntu
角色变量
变量 | 描述 | 默认值 | 可能的值 |
---|---|---|---|
lxd_allow_remote | 允许通过https API从远程lxc客户端进行操作 | false | true |
lxd_https_listen_address | API的绑定地址 | [::] | lxd API绑定地址 |
lxd_trust_password | 供远程lxc客户端使用的信任密码 | 4trustlxd123 | 字符串 |
lxd_lxc_path | lxd安装后lxc二进制文件的路径 | /usr/bin/lxc | 除非安装路径被更改,否则请勿修改此项 |
依赖
无
示例剧本
安装lxd
# example1.yml
# 安装lxd的示例剧本
- hosts: lxd0
roles:
- { role: thebinary.lxd }
安装lxd并配置以允许使用远程lxc客户端进行操作
# example2.yml
# 安装lxd并配置以支持远程操作的示例剧本
- hosts: lxd1
roles:
- { role: thebinary.lxd, lxd_allow_remote: true }
- hosts: lxd2
roles:
- { role: thebinary.lxd, lxd_allow_remote: true, lxd_trust_password: "somepassword" }
许可证
MIT
作者信息
thebinary binary4bytes@gmail.com
关于项目
Installs LXD on Ubuntu and performs base configuration as given in get started guide
安装
ansible-galaxy install thebinary.lxd
许可证
mit
下载
189
拥有者