-
Notifications
You must be signed in to change notification settings - Fork 18
/
provision-proxmox-templates.yml
210 lines (208 loc) · 9.03 KB
/
provision-proxmox-templates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
- name: Add Provisionee host
hosts: scalper
tasks:
- add_host:
name: provisionee
tags:
- always
- name: Provision Netsoc Cloud templates
hosts: scalper, provisionee
gather_facts: no
any_errors_fatal: true
roles:
- role: proxmox-templates
vars:
proxmox_host: scalper
provisionee_host: provisionee
templates:
- lxc:
name: "ubuntu.container.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image: "ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description:
title: "Ubuntu Server 20.04.1 LTS"
subtitle: "An easy to use server distro"
description: |
Ubuntu is a Linux distribution based on Debian mostly composed of free and open-source software.
Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots.
All the editions can run on the computer alone, or in a virtual machine
logo_url: https://raw.githubusercontent.com/UCCNetsoc/cloud/master/ui/public/img/templates/ubuntu.png
wake_on_request: no
unprivileged: yes
cores: 1
memory: 512
swap: 512
disks:
rootfs:
size: 10
net:
net0: "name=eth0,ip=dhcp,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
features: "fuse=1,nesting=1,keyctl=1"
tasks: "./netsoc-cloud/templates/ubuntu.yml"
- lxc:
name: "ubuntu-docker.container.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image: "ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description:
title: "Docker (on Ubuntu 20.04)"
subtitle: "Get started using your own containers in seconds"
description: |
Docker is a Linux container management toolkit with a “social” aspect, letting users publish container images and consume those published by others.
Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
logo_url: https://raw.githubusercontent.com/UCCNetsoc/cloud/master/ui/public/img/templates/docker.png
wake_on_request: no
unprivileged: yes
cores: 2
memory: 512
swap: 512
disks:
rootfs:
size: 10
net:
net0: "name=eth0,ip=dhcp,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
features: "fuse=1,nesting=1,keyctl=1"
tasks: "./netsoc-cloud/templates/ubuntu-docker.yml"
- lxc:
name: "ubuntu-linuxtools.container.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image: "ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description:
title: "Linux Tools (on Ubuntu Server 20.04)"
subtitle: "Docker, Git and support for most programming languages"
description: |
Build to your heart's desires with this fully equipped machine:
* Docker
* Git, Mercurial
* Emacs, Nano, Vim, Neovim
* Tmux, Screen
* Make, Maven, Gradle
* C/C++ (clang, gcc)
* Python, pip, Jupyter/IPython
* Java
* PHP (composer)
* Ruby
* NodeJS, NPM, NVM
* Go
* Rust
logo_url: https://raw.githubusercontent.com/UCCNetsoc/cloud/master/ui/public/img/templates/linux-tools.png
wake_on_request: no
unprivileged: yes
cores: 2
memory: 512
swap: 512
disks:
rootfs:
size: 10
net:
net0: "name=eth0,ip=dhcp,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
features: "fuse=1,nesting=1,keyctl=1"
tasks: "./netsoc-cloud/templates/ubuntu-linuxtools.yml"
- lxc:
name: "ubuntu-wordpress.container.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image: "ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description:
title: "WordPress"
subtitle: "The most popular blog and CMS system"
description: |
WordPress is a free and open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database.
logo_url: https://raw.githubusercontent.com/UCCNetsoc/cloud/master/ui/public/img/templates/wordpress.png
wake_on_request: no
unprivileged: yes
cores: 1
memory: 512
swap: 512
disks:
rootfs:
size: 10
net:
net0: "name=eth0,ip=dhcp,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
features: "fuse=1,nesting=1,keyctl=1"
tasks: "./netsoc-cloud/templates/ubuntu-wordpress.yml"
- lxc:
name: "ubuntu-ghostcms.container.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image: "ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description:
title: "GhostCMS"
subtitle: "The world's most popular modern professional publishing platform"
description: |
Used by Apple, SkyNews, Buffer, OpenAI, and thousands more.
logo_url: https://raw.githubusercontent.com/UCCNetsoc/cloud/master/ui/public/img/templates/ghost.png
wake_on_request: no
unprivileged: yes
cores: 1
memory: 512
swap: 512
disks:
rootfs:
size: 10
net:
net0: "name=eth0,ip=dhcp,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
features: "fuse=1,nesting=1,keyctl=1"
tasks: "./netsoc-cloud/templates/ubuntu-ghostcms.yml"
- lxc:
name: "ubuntu-foundry.container.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image: "ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description:
title: "FoundryVTT"
subtitle: "Popular online Virtual Table Top"
description: |
Play DND and other Tabletop RPGs using the hugely customisable FoundryVTT
logo_url: https://foundryvtt.com/static/assets/icons/fvtt.png
wake_on_request: no
unprivileged: yes
cores: 2
memory: 512
swap: 512
disks:
rootfs:
size: 10
net:
net0: "name=eth0,ip=dhcp,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
features: "fuse=1,nesting=1,keyctl=1"
tasks: "./netsoc-cloud/templates/ubuntu-foundry.yml"
- vm:
name: "ubuntu.vps.template.netsoc.cloud"
storage: netsoc-cloud
template:
storage: netsoc-cloud
image_url: https://cloud-images.ubuntu.com/releases/focal/release-20200921.1/ubuntu-20.04-server-cloudimg-amd64.img
image_hash: sha256:d18a9d2b890d3c1401e70a281cae44b61816aa669c4936f7a99c168e572ec8cb
description:
title: "Ubuntu Server 20.04.1 LTS"
subtitle: "An easy to use server distro"
description: |
Ubuntu is a Linux distribution based on Debian mostly composed of free and open-source software.
Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots.
All the editions can run on the computer alone, or in a virtual machine
logo_url: https://raw.githubusercontent.com/UCCNetsoc/cloud/master/ui/public/img/templates/ubuntu.png
wake_on_request: no
cores: 1
memory: 1024
disks:
boot:
size: 10
net:
net0: "model=virtio,tag={{ vlan.dhcp }},bridge={{ vmbr }},firewall=1"
cloudinit:
storage: "netsoc-cloud"
vars_files:
- vars/network.yml
- vars/secrets_mapping.yml
- vars/secrets.yml
tags:
- always