| Puppet Version: Tested 7.19 and 6.28 OS Name/Version: OSX Monterey 12.5.1 Any attempt to declare an augeas resource results in an execution failure. Unable to test if this bug also impacts x86_64 Macs running Big Sur. Desired Behavior: Puppet successfully applies catalog with augeas resources on Big Sur. Actual Behavior:
test.pp
augeas { 'test_ssh': |
lens => 'Ssh.lns', |
incl => '/etc/ssh/ssh_config', |
context => '/files/etc/ssh/ssh_config', |
changes => [ |
'set Host testing.testville.nil' |
] |
}
|
Result:
Notice: Compiled catalog for -q9yrfj406y.local in environment production in 0.03 seconds |
Warning: Augeas[test_ssh](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output |
Error: /Stage[main]/Main/Augeas[test_ssh]: Could not evaluate: Save failed, see debug output for details |
Notice: Applied catalog in 0.01 seconds |
Relevant debug output:
Debug: Augeas[test_ssh](provider=augeas): /augeas/load/Xfm/error = /opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:115.2-123.51:Failed to compile comment_multiline |
/opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:116.20-.69:exception: Regular expression subtraction 'r1 - r2' failed |
As puppet was unable to make use of the augeas provider (ruby), I tested the following with the shipped ruby interpreter.
/opt/puppetlabs/puppet/bin/ruby test.rb
|
test.rb:
require 'augeas' |
|
Augeas::open do |aug| |
aug.set("/files/etc/ssh/ssh_config/Host", "testing.testville.nil") |
unless aug.save |
raise IOError, "Failed to save changes" |
end |
end |
Result:
Traceback (most recent call last): |
2: from test.rb:3:in `<main>' |
1: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:48:in `open' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:48:in `open3': unknown error - Failed to initialize Augeas (SystemCallError) |
|