- aliases::option {
- "root":
- ensure => "$environment\@ares\.domain\.com";
- }
- Gives
- define option ($ensure) {
- replace { "aliases_option_$name":
- file => "/etc/aliases",
- pattern => "^$name: (?!$ensure).*",
- replacement => "$name: $ensure",
- notify => Exec["newaliases"],
- }
- }
- =>
- Jul 12 08:47:07 hydrogen puppetmasterd[16872]: Unrecognised escape sequence '\@' in file /etc/puppet/modules/../manifests/../manifests/classes/aliases.pp at line 5
- Jul 12 08:47:07 hydrogen puppetmasterd[16872]: Unrecognised escape sequence '\.' in file /etc/puppet/modules/../manifests/../manifests/classes/aliases.pp at line 5
- Jul 12 08:47:07 hydrogen puppetmasterd[16872]: Unrecognised escape sequence '\.' in file /etc/puppet/modules/../manifests/../manifests/classes/aliases.pp at line 5
- If I escape it, I get the following errors, but the code works.
- If I dont escape the email address, I get no errors, but the output is root: staging.domain.com, not staging@ares.domain.com
Posted by Anonymous on Mon 12th Jul 10:49 (modification of post by view diff)
download | new post
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.