ayohrling / local_security_policy

Apache License 2.0
6 stars 28 forks source link

Failed to apply catalog: Could not parse line. #37

Open NH2PSCode opened 6 years ago

NH2PSCode commented 6 years ago

If the legal notice has been set by the puppetlabs-MOTD module and the text contains \n spacing, the ayohrling-local_security_policy module reports an error that it could not parse the line.

Examples from the registry: "legalnoticetext"="LEGAL NOTICE This is a private computer system containing confidential information. Any unauthorized attempt to access or use this computer system or any information on it by employees or other persons may result in termination of employment, civil fines, and criminal penalties.

This system must be used for authorized business purposes only.    
"

Puppet code: content => "LEGAL NOTICE This is a private computer system containing confidential information. Any unauthorized attempt to access or use this computer system or any information on it by employees or other persons may result in termination of employment, civil fines, and criminal penalties.

This system must be used for authorized business purposes only.    
",

The above fails.

While this is not the complete message, this does work: "legalnoticetext"="LEGAL NOTICE This is a private computer system containing confidential information. Any unauthorized attempt to access or use this computer system or any information"

Puppet code: content => 'LEGAL NOTICE This is a private computer system containing confidential information. Any unauthorized attempt to access or use this computer system or any information',