By pasting that exactly into 'resources' on the 'Smart Class Parameter' tab for
the 'hash_resources' module I get this output on my nodes yaml.
classes:
hash_resources:
resources:
file:
"/tmp/foo":
ensure: present
content: test
"/tmp/bar":
ensure: present
content: test
So mine for one firewall rule should look like this:
classes:
firewalld:
ports:
firewalld_port:
ensure: present
zone: public
port: '161'
protocol: udp
and I'm not sure what it would look like for multiple entries. So I guess
I am asking, how does the hash_resources module know to pass information to
the firewalld module?
If the hash_resources entry module is configured correctly, then wouldn't
my yaml output match above?
On Monday, August 29, 2016 at 11:51:56 AM UTC-5, jvandewege wrote:
>
> On 29-8-2016 18:30, [email protected] <javascript:> wrote:
>
> 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',
> }
> }
> }}
>
>
> Wrong assumption :-)
>
> You need the yaml part and then withou the first two lines and properly
> indented.
> I tried it today and this is what I put into the parameter field:
> file:
> /tmp/foo:
> ensure: present
> content: test
> /tmp/bar:
> ensure: present
> content: test
>
> Greetz,
>
> Joop
>
>
--
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.