Hi,
On Wed, 2012-01-04 at 11:51 +0000, John Hawkes-Reed wrote:
> Hello.
>
> In testing a potential upgrade from 2.6.7 -> 2.7.9 I ran across the following
> 'interesting' behaviour:
>
> The relevant section of manifest (postfixconf::generic) looks like this:
>
> file { "/etc/aliases":
> mode => 444,
> source => [
> "puppet:///modules/postfixconf/$hostname-aliases","puppet:///modules/postfixconf/aliases"
> ],
change the first string to:
"puppet:///modules/postfixconf/${hostname}-aliases"
> owner => root,
> group => root,
> ensure => file,
> before => Exec["newaliases"],
> }
>
> ... And the result of a 'puppet agent --test --debug --noop ... is this:
>
> notice: /Stage[main]/Postfixconf::Generic/File[/etc/aliases]/ensure:
> current_value absent, should be directory (noop)
> info: /Stage[main]/Postfixconf::Generic/File[/etc/aliases]: Scheduling
> refresh of Exec[newaliases]
> notice: /Stage[main]/Postfixconf::Generic/Exec[newaliases]: Would have
> triggered 'refresh' from 1 events
The problem is that in 2.7.x '-' is a valid character in variable names.
So your "postfixconf/$hostname-aliases" string was interpolated to
"postfixconf/" which is a directory.
This is tracked in bugs:
https://projects.puppetlabs.com/issues/10146
https://projects.puppetlabs.com/issues/5268
--
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.