Andries Malan
09/07/2022, 7:38 PMSlackbot
09/07/2022, 8:03 PMglee
09/07/2022, 10:13 PMfoo.bar.baz.quix
? and it is a hash with key keytab_base64
? Does the below work?
aliased_key: "%{alias(\"foo.bar.baz.quix\".keytab_base64)}"
Corey Hickey
09/08/2022, 12:19 AMSlackbot
09/08/2022, 7:23 AMPavlos Parissis
09/08/2022, 7:39 AMpackage
to only upgrade a package if it is already installed? I am porting code from Ansible and we set https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html#parameter-only_upgradeto to true
and supply a list of packages. So the playbook upgrades packages on VMs that already exist and on others it does not do anything. Can I mimic that behavior with puppet?Craig Gumbley
09/08/2022, 9:17 AMOptional[Variant[Stdlib::Absolutepath, Boolean[False]]] $vhost_enable_dir = $apache::params::vhost_enable_dir,
to
Boolean
and set the default to true
then fix the code path so that it actually behaves like a toggle?Craig Gumbley
09/08/2022, 9:18 AMCraig Gumbley
09/08/2022, 9:20 AMDr Bunsen Honeydew
09/08/2022, 11:45 AMfe80
09/08/2022, 2:40 PM# 'spec_overrides' from sync.yml will appear below this line
RSpec.configure do |c|
c.before :each do
Puppet::Functions.create_function(:'synapps::metadatas') do
dispatch :metadatas do
param 'String', :asset_id
end
def metadatas(asset_id)
{}
end
end
end
end
This is a custom function using an external apiSlackbot
09/08/2022, 3:10 PMhelindbe
09/08/2022, 3:17 PMSlackbot
09/08/2022, 3:33 PMSlackbot
09/08/2022, 5:25 PMvchepkov
09/08/2022, 5:30 PMSlackbot
09/08/2022, 5:32 PMDr Bunsen Honeydew
09/08/2022, 8:45 PMNeeloj
09/09/2022, 7:24 AMFailed to determine runinterval, defaulting to 1800 seconds
In C\ProgramData\PuppetLabs\puppet\etc\puppet.conf runinterval=10m
Does anyone know why ?
thanks in advanceSlackbot
09/09/2022, 7:26 AMYury Bushmelev
09/09/2022, 7:26 AMNeeloj
09/09/2022, 7:40 AMPS C:\Users\admin> puppet config print runinterval
600
PS C:\Users\admin> puppet config set --section main runinterval 10m
PS C:\Users\admin> puppet config print runinterval
600
ANd when I restart the service in Services I still see the error in Windows Event-logs
Failed to determine loglevel, defaulting to notice
Failed to determine runinterval, defaulting to 1800 seconds
Neeloj
09/09/2022, 8:24 AMC:/ProgramData/PuppetLabs/puppet/etc/puppet.conf
Thats what make me crazy! I dont know why!Neeloj
09/09/2022, 8:26 AMsc stop puppet && sc start puppet --logtofile --debug --trace
Neeloj
09/09/2022, 8:38 AMsc stop puppet && sc start puppet --logtofile --debug --trace
Neeloj
09/09/2022, 8:38 AMsc stop puppet && sc start puppet --logtofile --debug --trace
Slackbot
09/09/2022, 8:50 AMPavlos Parissis
09/09/2022, 8:50 AMroot@puppetserver-003:~# facter --debug --verbose --trace --custom-dir=./my_facts foo_bar
[2022-09-09 08:49:08.415095 ] INFO Facter - executed with command line: --debug --verbose --trace --custom-dir=./my_facts foo_bar
root@puppetserver-003:~# ls ./my_facts
foo_bar.rb
root@puppetserver-003:~# cat ./my_facts/foo_bar.rb
# foo_bar.rb
Facter.add('foo_bar') do
setcode do
Facter::Core::Execution.execute('/bin/uname --hardware-platform')
end
end
Pavlos Parissis
09/09/2022, 8:53 AMstrace -e trace=openat facter --debug --verbose --trace --custom-dir=./my_facts foo_bar 2>&1 |grep foo_bar
Slackbot
09/09/2022, 8:53 AM