[jenkins-ci PATCH 1/5] guests: Add .j2 extension to existing templates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



By convention, Jinja2 templates should use the .j2 extension.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 guests/tasks/users.yml                             | 2 +-
 guests/templates/{bash_profile => bash_profile.j2} | 0
 guests/templates/{bashrc => bashrc.j2}             | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename guests/templates/{bash_profile => bash_profile.j2} (100%)
 rename guests/templates/{bashrc => bashrc.j2} (100%)

diff --git a/guests/tasks/users.yml b/guests/tasks/users.yml
index 033ca2a..7b37842 100644
--- a/guests/tasks/users.yml
+++ b/guests/tasks/users.yml
@@ -98,7 +98,7 @@
 
 - name: '{{ flavor }}: Create shell profile'
   template:
-    src: templates/{{ item }}
+    src: templates/{{ item }}.j2
     dest: /home/{{ flavor }}/.{{ item }}
     owner: '{{ flavor }}'
     group: '{{ flavor }}'
diff --git a/guests/templates/bash_profile b/guests/templates/bash_profile.j2
similarity index 100%
rename from guests/templates/bash_profile
rename to guests/templates/bash_profile.j2
diff --git a/guests/templates/bashrc b/guests/templates/bashrc.j2
similarity index 100%
rename from guests/templates/bashrc
rename to guests/templates/bashrc.j2
-- 
2.17.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux