Skip to content

Commit

Permalink
Update ks.pkrtpl.hcl for rhel/variants (#48)
Browse files Browse the repository at this point in the history
Whoops. Added`%end` back to the end of `ks.pkrtpl.hcl`.
  • Loading branch information
Ryan Johnson authored Sep 24, 2021
1 parent 3e450fc commit 0d458d8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion builds/linux/almalinux-8/http/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ reboot
%post
yum install -y sudo open-vm-tools perl
echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username}
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
%end
3 changes: 2 additions & 1 deletion builds/linux/centos-linux-8/http/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ reboot
%post
yum install -y sudo open-vm-tools perl
echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username}
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
%end
3 changes: 2 additions & 1 deletion builds/linux/centos-stream-8/http/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ reboot
%post
yum install -y sudo open-vm-tools perl
echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username}
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
%end
3 changes: 2 additions & 1 deletion builds/linux/redhat-linux-8/http/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ reboot
%post
yum install -y sudo open-vm-tools perl
echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username}
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
%end
3 changes: 2 additions & 1 deletion builds/linux/rocky-linux-8/http/ks.pkrtpl.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ reboot
%post
yum install -y sudo open-vm-tools perl
echo "${build_username} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${build_username}
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
%end

0 comments on commit 0d458d8

Please sign in to comment.