Thanks for the response.
I am assuming that the following code in the github example is the input:
class { 'hash_resources':
resources => {
'file': {
'/tmp/foo': {
'ensure' => 'present',
'content' => 'test',
},
'/tmp/bar': {
'ensure' => 'present',
'content' => 'test',
}
}
}
}
and that the code below on the github link is the output as it would appear
in the foreman yaml file. If so, when I paste this exact code into the
'Smart Class Parameter' in Foreman. I get invalid syntax on any keytype.
Assuming it did work, would I put this code (modified for my use of course)
under 'ports' of the 'Smart Class Parameters' for my module?
In the hash_resources example, they are passing two different files with
the same parameters. For my firewall case, I want different ports all with
the same type of parameters. I am guessing but would my code look similar
to this?
class { 'firewalld':
ports => {
'firewalld_port': {
'ensure' => 'present',
'zone' => 'public',
'port:' => '161',
'protocol:' => 'udp',
}
'firewalld_port': {
'ensure' => 'present',
'zone' => 'public',
'port:' => '80',
'protocol:' => 'tcp',
}
}
}
So what keytype do I use? And what is wrong with my input?
Thanks again
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.