From 9ba235f0cea7a763e71a635a6f9dffc71f60f511 Mon Sep 17 00:00:00 2001
From: Sam Betts <sam@code-smash.net>
Date: Tue, 25 Apr 2017 12:57:01 +0100
Subject: [PATCH] Ensure that /tftpboot/pxelinux.cfg is owned by Ironic

The pxelinux.cfg directory gets created but isn't owned by the correct
user. This patch ensures that the permissions are correctly updated.

Change-Id: Ifcb80018b72d40c5d4eccf059d1c3442b71be6f8
---
 ansible/roles/ironic/templates/ironic-pxe.json.j2 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ansible/roles/ironic/templates/ironic-pxe.json.j2 b/ansible/roles/ironic/templates/ironic-pxe.json.j2
index b6ebcb6e29..536d8fad77 100644
--- a/ansible/roles/ironic/templates/ironic-pxe.json.j2
+++ b/ansible/roles/ironic/templates/ironic-pxe.json.j2
@@ -21,5 +21,12 @@
             "owner": "root",
             "perm": "0644"
         }
+    ],
+    "permissions": [
+        {
+            "path": "/tftpboot/pxelinux.cfg",
+            "owner": "ironic:ironic",
+            "recurse": true
+        }
     ]
 }
-- 
GitLab