Hi all,

I was wondering if you could assist with this import, and advise why it is
possibly not working;

<class 'Cheetah.Parser.ParseError'>:

Long-form placeholders - ${}, $(), $[], etc. are not valid inside
expressions. Use them in top-level $placeholders only.
Line 303, column 45

Line|Cheetah Code
----|-------------------------------------------------------------
300 |sed -i 's/\#PermitEmptyPasswords no/PermitEmptyPasswords no/'
${sshd_config} # CIS 5.2.9
301 |sed -i 's/\#PermitUserEnvironment no/PermitUserEnvironment no/'
${sshd_config} # CIS 5.2.10
302 |
303 |line_num=$(grep -n "^\# Ciphers and keying" ${sshd_config} | cut -d:
-f1)
                                                 ^
304 |sed -i '${line_num} a MACs hmac-sha1-...@openssh.com,
umac-64-...@openssh.com,umac-128-...@openssh.com,
hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,
hmac-ripemd160-...@openssh.com,hmac-sha1,umac...@openssh.com,
umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160'
${sshd_config}  # CIS 5.2.12
305 |sed -i '${line_num} a Ciphers aes128-ctr,aes192-ctr,aes256-ctr'
${sshd_config}  # CIS 5.2.11
306 |

I have attached the kickstart for you to review if needed

Thanks

Ray

Attachment: kickstart.ks
Description: Binary data

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to