Slackbot
12/01/2022, 7:24 PMnatemccurdy
12/01/2022, 7:32 PMdefine foo::bar (
$some_param = lookup('foo::some_hiera_data'),
) {
include foo::some_class
notify { 'example':
message => "A variable from another class: ${foo::some_class::hello}",
}
}smortex
12/01/2022, 8:49 PMfile() return is a String, we can split it to have an Array[String] for each elf, then map that array to build an Array[Array[Integer]] for each elf carry, then reduce it into an Array[Integer] for the sum of each elf carry, and so on.
This avoid the difficulty of thinking with counters which value change.
Also, a bolt project (bolt apply) or a simple manifest (puppet apply) can probably help you to run the program more easily.smortex
12/01/2022, 8:49 PMfile() return is a String, we can split it to have an Array[String] for each elf, then map that array to build an Array[Array[Integer]] for each elf carry, then reduce it into an Array[Integer] for the sum of each elf carry, and so on.
This avoid the difficulty of thinking with counters which value change.
Also, a bolt project (bolt apply) or a simple manifest (puppet apply) can probably help you to run the program more easily.smortex
12/01/2022, 8:50 PMfile() return is a String, we can split() it to have an Array[String] for each elf, then map() that array to build an Array[Array[Integer]] for each elf carry, then reduce() it into an Array[Integer] for the sum of each elf carry, and so on.
This avoid the difficulty of thinking with counters which value change.
Also, a bolt project (bolt apply) or a simple manifest (puppet apply) can probably help you to run the program more easily.smortex
12/01/2022, 8:51 PMsum() function 🙃Dr Bunsen Honeydew
12/01/2022, 9:45 PMSteve Handy
12/01/2022, 11:04 PMSlackbot
12/01/2022, 11:16 PMLumiere
12/01/2022, 11:20 PMLumiere
12/01/2022, 11:20 PMLumiere
12/01/2022, 11:21 PMSteve Handy
12/02/2022, 12:19 AMnatemccurdy
12/02/2022, 1:00 AMWe recommend always using type signatures for class and defined type parameters.
P. Aiello
12/02/2022, 8:48 AMSlackbot
12/02/2022, 10:59 AMsh6624gsj8
12/02/2022, 10:59 AMtest_java_ks { "${module_name}:/etc/pki/test/truststore.p12":
ensure => present,
certificate => '/etc/pki/test/fqdn_cert.crt',
password => 'somepass',
storetype => 'pkcs12',
trustcacerts => 'true',
}
I am only trying to change my ensure from present to latest -
However , I am not sure why do I get ensure changed 'present' to 'latest' on a the file when it is already the latest. I understand that it triggers in the first run , but not sure why I get it on each execution .
Some logs from debug mode :-
Debug: /Stage[main]/Java/Anchor[java::begin:]/before: before to Package[java]
Debug: /Stage[main]/Java/Package[java]/before: before to Class[Java::Config]
Debug: /Stage[main]/Java::Config/before: before to Anchor[java::end]
Debug: /Stage[main]/Main/File[/etc/pki/test/truststore.p12]/require: require to Test_java_ks[fqdn_cert:/etc/pki/test/truststore.p12]
Debug: /Stage[main]/Main/File[/etc/pki/test/truststore.p12]/before: before to File[/etc/pki/test/keystore.p12]
Debug: /Stage[main]/Main/File[/etc/pki/test/keystore.p12]/require: require to Test_java_ks[fqdn_cert:/etc/pki/test/keystore.p12]
Debug: /Stage[main]/Main/Test_java_ks[:/etc/pki/test/truststore.p12]/before: before to Test_java_ks[fqdn_cert:/etc/pki/test/truststore.p12]
Debug: /Stage[main]/Main/Test_java_ks[:/etc/pki/test/keystore.p12]/before: before to Test_java_ks[fqdn_cert:/etc/pki/test/keystore.p12]
Debug: Prefetching yum resources for package
Debug: Executing: '/usr/bin/rpm --version'
Debug: Executing '/usr/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'
Debug: Executing: 'keytool -list -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -v -printcert -file /etc/pki/test/fqdn_cert.crt -storetype pkcs12'
Debug: Executing: 'keytool -list -v -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -list -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -delete -alias -keystore /etc/pki/test/truststore.p12'
Debug: Executing: 'keytool -importcert -noprompt -alias -file /etc/pki/test/fqdn_cert.crt -keystore /etc/pki/test/truststore.p12 -storetype pkcs12 -trustcacerts'
Notice: /Stage[main]/Main/Ahub_java_ks[:/etc/pki/shared_service/truststore.p12]/ensure: ensure changed 'present' to 'latest'sh6624gsj8
12/02/2022, 11:00 AMtest_java_ks { "${module_name}:/etc/pki/test/truststore.p12":
ensure => present,
certificate => '/etc/pki/test/fqdn_cert.crt',
password => 'somepass',
storetype => 'pkcs12',
trustcacerts => 'true',
}
I am only trying to change my ensure from present to latest -
However , I am not sure why do I get ensure changed 'present' to 'latest' on a the file when it is already the latest. I understand that it triggers in the first run , but not sure why I get it on each execution .
Some logs from debug mode :-
Debug: /Stage[main]/Java/Anchor[java::begin:]/before: before to Package[java]
Debug: /Stage[main]/Java/Package[java]/before: before to Class[Java::Config]
Debug: /Stage[main]/Java::Config/before: before to Anchor[java::end]
Debug: /Stage[main]/Main/File[/etc/pki/test/truststore.p12]/require: require to Test_java_ks[fqdn_cert:/etc/pki/test/truststore.p12]
Debug: /Stage[main]/Main/File[/etc/pki/test/truststore.p12]/before: before to File[/etc/pki/test/keystore.p12]
Debug: /Stage[main]/Main/File[/etc/pki/test/keystore.p12]/require: require to Test_java_ks[fqdn_cert:/etc/pki/test/keystore.p12]
Debug: /Stage[main]/Main/Test_java_ks[:/etc/pki/test/truststore.p12]/before: before to Test_java_ks[fqdn_cert:/etc/pki/test/truststore.p12]
Debug: /Stage[main]/Main/Test_java_ks[:/etc/pki/test/keystore.p12]/before: before to Test_java_ks[fqdn_cert:/etc/pki/test/keystore.p12]
Debug: Prefetching yum resources for package
Debug: Executing: '/usr/bin/rpm --version'
Debug: Executing '/usr/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'
Debug: Executing: 'keytool -list -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -v -printcert -file /etc/pki/test/fqdn_cert.crt -storetype pkcs12'
Debug: Executing: 'keytool -list -v -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -list -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -delete -alias -keystore /etc/pki/test/truststore.p12'
Debug: Executing: 'keytool -importcert -noprompt -alias -file /etc/pki/test/fqdn_cert.crt -keystore /etc/pki/test/truststore.p12 -storetype pkcs12 -trustcacerts'
Notice: /Stage[main]/Main/Ahub_java_ks[:/etc/pki/shared_service/truststore.p12]/ensure: ensure changed 'present' to 'latest'
Could you someone please help me clarify this ?sh6624gsj8
12/02/2022, 11:00 AMtest_java_ks { "${module_name}:/etc/pki/test/truststore.p12":
ensure => present,
certificate => '/etc/pki/test/fqdn_cert.crt',
password => 'somepass',
storetype => 'pkcs12',
trustcacerts => 'true',
}
I am only trying to change my ensure from present to latest -
However , I am not sure why do I get ensure changed '`present`' to '`latest`' on a the file when it is already the latest. I understand that it triggers in the first run , but not sure why I get it on each execution .
Some logs from debug mode :-
Debug: /Stage[main]/Java/Anchor[java::begin:]/before: before to Package[java]
Debug: /Stage[main]/Java/Package[java]/before: before to Class[Java::Config]
Debug: /Stage[main]/Java::Config/before: before to Anchor[java::end]
Debug: /Stage[main]/Main/File[/etc/pki/test/truststore.p12]/require: require to Test_java_ks[fqdn_cert:/etc/pki/test/truststore.p12]
Debug: /Stage[main]/Main/File[/etc/pki/test/truststore.p12]/before: before to File[/etc/pki/test/keystore.p12]
Debug: /Stage[main]/Main/File[/etc/pki/test/keystore.p12]/require: require to Test_java_ks[fqdn_cert:/etc/pki/test/keystore.p12]
Debug: /Stage[main]/Main/Test_java_ks[:/etc/pki/test/truststore.p12]/before: before to Test_java_ks[fqdn_cert:/etc/pki/test/truststore.p12]
Debug: /Stage[main]/Main/Test_java_ks[:/etc/pki/test/keystore.p12]/before: before to Test_java_ks[fqdn_cert:/etc/pki/test/keystore.p12]
Debug: Prefetching yum resources for package
Debug: Executing: '/usr/bin/rpm --version'
Debug: Executing '/usr/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'
Debug: Executing: 'keytool -list -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -v -printcert -file /etc/pki/test/fqdn_cert.crt -storetype pkcs12'
Debug: Executing: 'keytool -list -v -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -list -keystore /etc/pki/test/truststore.p12 -alias -storetype pkcs12'
Debug: Executing: 'keytool -delete -alias -keystore /etc/pki/test/truststore.p12'
Debug: Executing: 'keytool -importcert -noprompt -alias -file /etc/pki/test/fqdn_cert.crt -keystore /etc/pki/test/truststore.p12 -storetype pkcs12 -trustcacerts'
Notice: /Stage[main]/Main/Ahub_java_ks[:/etc/pki/shared_service/truststore.p12]/ensure: ensure changed 'present' to 'latest'
Could you someone please help me clarify this ?Slackbot
12/02/2022, 2:28 PMYury Bushmelev
12/02/2022, 3:03 PMP. Aiello
12/02/2022, 3:46 PMSlackbot
12/02/2022, 5:00 PMsmortex
12/02/2022, 5:51 PMSlackbot
12/02/2022, 6:49 PMSlackbot
12/02/2022, 7:59 PMnmaludy
12/02/2022, 8:02 PMnmaludy
12/02/2022, 8:02 PMP. Aiello
12/02/2022, 8:58 PMnmaludy
12/03/2022, 4:30 AM