Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
arbutus-nt
TerraFold
Commits
f392f386
Commit
f392f386
authored
Aug 21, 2020
by
Ryan Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new template method
parent
ec5c5f35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
ansible/template.yml
ansible/template.yml
+11
-19
No files found.
ansible/template.yml
View file @
f392f386
---
# For initial image configuration.
# extra setup for GPU nodes if applicable
#- hosts: template
# roles:
# - nvidia-gpu-setup
# become: yes
# become_user: root
# NOTE: when making an image from a template VM, need to remove
# the initial slot config from config.xml so that
# slot auto config (incl. for GPUs) works.
# i.e. config.xml should be:
# <config>
#
# <fold-anon v='false'/>
#
# </config>
# Prepare an image by doing a subset of config on a template node.
# Then, save a snapshot of it and instantiate all other VMs from that.
-
hosts
:
template
roles
:
-
nvidia-gpu-setup
vars
:
make_image
:
true
become
:
yes
become_user
:
root
-
hosts
:
template
roles
:
-
folding-client
vars
:
apply_updates
:
true
make_image
:
true
become
:
yes
become_user
:
root
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment