Pastebin - Nopaste - Paste - easy sharing of text and codes

Posted by Anonymous on Mon 12th Jul 10:49 (modification of post by view diff)
download | new post

  1.         aliases::option {
  2.                 "root":
  3.                     ensure => "$environment\@ares\.domain\.com";
  4.         }
  5. Gives
  6.         define option ($ensure) {
  7.                 replace { "aliases_option_$name":
  8.                         file        => "/etc/aliases",
  9.                         pattern     => "^$name: (?!$ensure).*",
  10.                         replacement => "$name: $ensure",
  11.                         notify      => Exec["newaliases"],
  12.                 }
  13.         }
  14. =>
  15. Jul 12 08:47:07 hydrogen puppetmasterd[16872]: Unrecognised escape sequence '\@' in file /etc/puppet/modules/../manifests/../manifests/classes/aliases.pp at line 5
  16. Jul 12 08:47:07 hydrogen puppetmasterd[16872]: Unrecognised escape sequence '\.' in file /etc/puppet/modules/../manifests/../manifests/classes/aliases.pp at line 5
  17. Jul 12 08:47:07 hydrogen puppetmasterd[16872]: Unrecognised escape sequence '\.' in file /etc/puppet/modules/../manifests/../manifests/classes/aliases.pp at line 5
  18.  
  19.  
  20. If I escape it, I get the following errors, but the code works.
  21. If I dont escape the email address, I get no errors, but the output is root: staging.domain.com, not staging@ares.domain.com

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


I'm Human
Remember me



Captcha required for posting