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
ec5c5f35
Commit
ec5c5f35
authored
Aug 21, 2020
by
Ryan Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add var for image building
parent
b21cf43e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
ansible/roles/folding-client/defaults/main.yml
ansible/roles/folding-client/defaults/main.yml
+2
-0
ansible/roles/folding-client/tasks/config.yml
ansible/roles/folding-client/tasks/config.yml
+2
-1
ansible/roles/folding-client/tasks/main.yml
ansible/roles/folding-client/tasks/main.yml
+1
-1
ansible/roles/folding-client/tasks/misc.yml
ansible/roles/folding-client/tasks/misc.yml
+1
-0
ansible/roles/folding-client/templates/config.xml.j2
ansible/roles/folding-client/templates/config.xml.j2
+10
-1
No files found.
ansible/roles/folding-client/defaults/main.yml
View file @
ec5c5f35
...
...
@@ -19,3 +19,5 @@ fah_manager: ""
apply_updates
:
"
false"
make_image
:
"
false"
ansible/roles/folding-client/tasks/config.yml
View file @
ec5c5f35
...
...
@@ -57,6 +57,7 @@
when
:
-
"
'meta-terrafold_group_gpu_nodes'
in
group_names"
-
gridd_logs.stdout is not regex("License (acquired|renewed) successfully")
-
not make_image
-
name
:
Ensure FAHClient is enabled and running
sysvinit
:
...
...
@@ -64,4 +65,4 @@
state
:
"
started"
enabled
:
"
yes"
pattern
:
"
/usr/bin/FAHClient"
when
:
not make_image
ansible/roles/folding-client/tasks/main.yml
View file @
ec5c5f35
...
...
@@ -12,7 +12,7 @@
name
:
"
UTC"
#- { import_tasks: storage.yml, tags: ['storage'] }
-
{
import_tasks
:
update.yml
,
tags
:
[
'
update'
],
when
:
apply_updates|bool
}
-
{
import_tasks
:
update.yml
,
tags
:
[
'
update'
],
when
:
apply_updates|bool
or make_image
}
-
{
import_tasks
:
install.yml
,
tags
:
[
'
install'
]
}
-
{
import_tasks
:
config.yml
,
tags
:
[
'
config'
]
}
-
{
import_tasks
:
misc.yml
,
tags
:
[
'
misc'
]
}
...
...
ansible/roles/folding-client/tasks/misc.yml
View file @
ec5c5f35
...
...
@@ -5,4 +5,5 @@
src
:
/var/lib/fahclient/log.txt
dest
:
/home/centos/log.txt
state
:
link
when
:
not make_image
ansible/roles/folding-client/templates/config.xml.j2
View file @
ec5c5f35
...
...
@@ -3,6 +3,14 @@
so we try to match what it will write to maintain idempotence.
Also see: /usr/share/doc/fahclient/sample-config.xml
#}
{% if make_image}
{# empty config if building an image #}
<config>
<fold-anon v='false'/>
</config>
{% else %}
<config>
<!-- Slot Control -->
<smp v='true'/>
...
...
@@ -15,4 +23,5 @@
{% if 'meta-terrafold_group_gpu_nodes' in group_names %}
<slot id='1' type='GPU'/>
{% endif %}
</config>
\ No newline at end of file
</config>
{% endif %}
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