Commit ec5c5f35 authored by Ryan Taylor's avatar Ryan Taylor

add var for image building

parent b21cf43e
......@@ -19,3 +19,5 @@ fah_manager: ""
apply_updates: "false"
make_image: "false"
......@@ -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
......@@ -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'] }
......
......@@ -5,4 +5,5 @@
src: /var/lib/fahclient/log.txt
dest: /home/centos/log.txt
state: link
when: not make_image
......@@ -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 %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment