aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/preseed_chef-admin.pem
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/cobbler/snippets/preseed_chef-admin.pem')
-rw-r--r--deploy/adapters/cobbler/snippets/preseed_chef-admin.pem8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/preseed_chef-admin.pem b/deploy/adapters/cobbler/snippets/preseed_chef-admin.pem
new file mode 100644
index 00000000..4d098bd8
--- /dev/null
+++ b/deploy/adapters/cobbler/snippets/preseed_chef-admin.pem
@@ -0,0 +1,8 @@
+#if $getVar('chef_admin_file', '') == ""
+ #set chef_admin_file = '/etc/chef-server/admin.pem'
+#end if
+#set f = $open($chef_admin_file)
+cat << EOL > /etc/chef/admin.pem
+#echo $f.read()
+EOL
+#silent $f.close()