Saad Illahi
07/17/2023, 6:41 PMCVQuesty
07/17/2023, 6:43 PMSlackbot
07/17/2023, 6:45 PMSlackbot
07/17/2023, 7:41 PMTheMeier
07/18/2023, 8:25 AMDunatotatos
07/18/2023, 8:51 AMpdk
creates the type and provider with SimpleProvider
, which is fine. The delete
method gets a context and a name as parameters, but no should
, and there is no way to find which port and protocol should be removed. Is there another solution than forcing this information to be stored in the name of the resource?
Second issue I have with SimpleProvider is the syntax to use to confine the provider. How to use the equivalent of :command
and :confine
that we have in a low-level implementation?Dr Bunsen Honeydew
07/18/2023, 1:45 PMSlackbot
07/18/2023, 2:12 PMSlackbot
07/18/2023, 3:18 PMDr Bunsen Honeydew
07/18/2023, 4:45 PMnatemccurdy
07/18/2023, 10:35 PMunless '<http://docker.io|docker.io>' in $facts['installed_packages'] {
# do something
}
natemccurdy
07/18/2023, 10:37 PMin
expression in parenthesis, it works too.
For example:
# This works because of the parenthesis. The ! negates the expression in parenthesis.
if ! ('<http://docker.io|docker.io>' in $facts['installed_packages']) {
# do something
}
natemccurdy
07/18/2023, 10:39 PM! '<http://docker.io|docker.io>'
then in $facts['installed_packages']
And ! 'some_string'
evaluates to false
, so Puppet was actually running:
if false in $facts['installed_packages']
natemccurdy
07/18/2023, 10:40 PMAndy Fry
07/19/2023, 12:04 AMedwin
07/19/2023, 11:20 AMCVQuesty
07/19/2023, 1:50 PMvchepkov
07/19/2023, 1:50 PMvchepkov
07/19/2023, 1:50 PMCVQuesty
07/19/2023, 1:51 PMLumiere
07/19/2023, 1:51 PMCVQuesty
07/19/2023, 1:51 PMLumiere
07/19/2023, 1:52 PMbastelfreak
07/19/2023, 1:52 PMCVQuesty
07/19/2023, 1:52 PMvchepkov
07/19/2023, 1:52 PMLumiere
07/19/2023, 1:53 PMPourya
07/19/2023, 2:07 PM# puppet lookup classes --node <http://mynodename.mydomain.com|mynodename.mydomain.com>
---
- role_puppetserver
However on the same node when I run puppet agent -t
I get
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'classes' failed: The second element of the merge has wrong type, expects a value of type Scalar or Array, got Undef (file: /etc/puppetlabs/code/environments/prod/manifests/site.pp, line: 11, column: 1) on node <http://mynodename.mydomain.com|mynodename.mydomain.com>
Scott Macmillan
07/19/2023, 2:15 PM