Skip to content

Having a $ in the value of myorigin is always giving a error #449

@kobyon

Description

@kobyon

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:
  • Ruby: unknown
  • Distribution: any
  • Module version: 6.0.0

How to reproduce (e.g Puppet code you use)

Set the value myorigin value to '$mydomain' in hiera:

postfix::myorigin: '$mydomain'

What are you seeing

See output log for full ouput.
The option is updated, but a error is generated

What behaviour did you expect instead

File to be updated and no errors generated

Output log

Info: Refreshing CA certificate
Info: CA certificate is unmodified, using existing CA certificate
Info: Refreshing CRL
Info: CRL is unmodified, using existing CRL
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Notice: Requesting catalog from puppet:8140 (127.0.1.1)
Notice: Catalog compiled by REDACTED
Info: Caching catalog for REDACTED
Info: Applying configuration version '1774623353'
Notice: Augeas[manage postfix 'myorigin'](provider=augeas): 
--- /etc/postfix/main.cf	2026-03-27 15:16:38.071425017 +0100
+++ /etc/postfix/main.cf.augnew	2026-03-27 15:56:02.203646068 +0100
@@ -44,7 +44,7 @@
 recipient_delimiter = +
 inet_interfaces = all
 inet_protocols = all
-myorigin = test
+myorigin = $mydomain
 virtual_alias_maps = hash:/etc/postfix/virtual
 transport_maps = hash:/etc/postfix/transport
 smtp_sasl_auth_enable = yes

Notice: /Stage[main]/Postfix::Files/Postfix::Config[myorigin]/Augeas[manage postfix 'myorigin']/returns: executed successfully (corrective)
Info: Postfix::Config[myorigin]: Scheduling refresh of Class[Postfix::Service]
Info: Class[Postfix::Files]: Scheduling refresh of Class[Postfix::Service]
Error: /Stage[main]/Postfix::Satellite/Postfix::Virtual[@$mydomain]/Augeas[Postfix virtual - @$mydomain]: Could not evaluate: Save failed, see debug output for details
Info: Class[Postfix::Service]: Scheduling refresh of Exec[restart postfix after packages install]
Info: Class[Postfix::Service]: Scheduling refresh of Service[postfix]
Info: Class[Postfix::Service]: Scheduling refresh of Exec[newaliases]
Notice: /Stage[main]/Postfix::Service/Exec[restart postfix after packages install]: Triggered 'refresh' from 1 event
Notice: /Stage[main]/Postfix::Service/Service[postfix]: Triggered 'refresh' from 1 event
Notice: /Stage[main]/Postfix::Service/Exec[newaliases]: Triggered 'refresh' from 1 event
Notice: /Stage[main]/Postfix::Mta/Postfix::Hash[/etc/postfix/virtual]/Postfix::Map[/etc/postfix/virtual]/File[postfix map /etc/postfix/virtual]: Dependency Augeas[Postfix virtual - @$mydomain] has failures: true
Warning: /Stage[main]/Postfix::Mta/Postfix::Hash[/etc/postfix/virtual]/Postfix::Map[/etc/postfix/virtual]/File[postfix map /etc/postfix/virtual]: Skipping because of failed dependencies
Warning: /Stage[main]/Postfix::Mta/Postfix::Hash[/etc/postfix/virtual]/Postfix::Map[/etc/postfix/virtual]/File[postfix map /etc/postfix/virtual.db]: Skipping because of failed dependencies
Warning: /Stage[main]/Postfix::Mta/Postfix::Hash[/etc/postfix/virtual]/Postfix::Map[/etc/postfix/virtual]/Exec[generate /etc/postfix/virtual.db]: Skipping because of failed dependencies
Info: Stage[main]: Unscheduling all events on Stage[main]
Notice: Applied catalog in 8.54 seconds

Any additional information you'd like to impart

Setting the value ot aoything containing a $ will generate a error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions