Ian CB
10/02/2025, 7:31 AMbastelfreak
10/02/2025, 7:35 AMIan CB
10/02/2025, 7:41 AMIan CB
10/02/2025, 7:51 AMIan CB
10/02/2025, 8:55 AMIan CB
10/02/2025, 9:05 AMIan CB
10/02/2025, 9:23 AMjms1
10/02/2025, 5:05 PMpuppet-lint
against a single file, it's throwing an error because the module's .puppet-lint.rc
file contains an option to disable one of the plugins that come with PDK, and refusing to do anything ...
$ puppet-lint --help
puppet-lint: invalid option: --no-strict_indent-check
Did you mean? no-star-comments-check
puppet-lint: try 'puppet-lint --help' for more information
i'm assuming this is because the puppet-lint
executable i'm running is not the same one that pdk validate
runs internally ... is there a way to run the specific puppet-lint
executable that PDK uses, directly from the command line, so it knows how to find (and therefore disable) that plugin?bastelfreak
10/02/2025, 5:07 PMjms1
10/02/2025, 5:16 PMpdk-3.5.1
package from the super-secret secure web site (two-factor auth where email is the only option? hello, TOTP anybody? or passkey? or yubikey? somebody was being lazy) ... some of the erroneous error messages i was seeing yesterday are now gone, but a few remain: (starting a thread)Yury Bushmelev
10/03/2025, 12:07 AMYury Bushmelev
10/08/2025, 5:18 AMNeeloj
10/08/2025, 7:26 AMbastelfreak
10/08/2025, 7:30 AMJerry Way
10/08/2025, 6:48 PMexec { 'check_az_applicationmonitor_module':
command => 'powershell.exe -NoProfile -Command "if (-not (Get-Module -ListAvailable -Name az.applicationmonitor)) { exit 1 }"',
path => 'C:/Windows/System32/WindowsPowerShell/v1.0',
returns => [0],
logoutput => true,
}
Thanks
vchepkov
10/08/2025, 7:04 PMvchepkov
10/08/2025, 7:04 PMJerry Way
10/08/2025, 8:20 PMvchepkov
10/08/2025, 8:23 PMvchepkov
10/08/2025, 8:24 PMvchepkov
10/08/2025, 8:26 PMvchepkov
10/08/2025, 8:27 PMFacter.add(:az_applicationmonitor_installed) do
confine :kernel => 'windows'
setcode do
cmd = 'powershell.exe -NoProfile -Command "(Get-Module -ListAvailable -Name az.applicationmonitor) -ne $null"'
result = Facter::Core::Execution.execute(cmd, on_fail: false)
if result.strip == 'True'
true
else
false
end
end
end
vchepkov
10/08/2025, 8:28 PMvchepkov
10/08/2025, 8:28 PMif $facts['az_applicationmonitor_installed'] {
vchepkov
10/08/2025, 8:28 PMJerry Way
10/08/2025, 8:34 PMwhatsaranjit
10/08/2025, 8:35 PMexec
resource does have the unless
and onlyif
parameters. Run a different command to check if the main command should fire. Still not a great pattern.bastelfreak
10/08/2025, 8:42 PMbastelfreak
10/08/2025, 8:42 PMJerry Way
10/08/2025, 8:47 PM