Ask Your Question
0

Icinga2 Puppet host vars [closed]

asked 2017-07-03 23:52:01 -0600

bigfoot74 gravatar image

Hello,

I have a sprecific icinga2 puppet Problem. I try to add notifications to a Host. The Notifications should be added through the vars in icinga2::object::host. Like this:

  vars          => {
    'notification.mail.users' => [hiera('base::linux::motd::contact', 'admin@test.com')]
  },

After the puppet run it looks like this:

vars."notification.mail.users" = [ "admin@test.com", ]

And icnga2 cannot reload because of the "". Is there a way to remove the Quotes ?

Cheers,

  • Pascal
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by bigfoot74
close date 2017-07-04 01:00:53.137354

1 Answer

Sort by » oldest newest most voted
1

answered 2017-07-04 01:00:34 -0600

bigfoot74 gravatar image

I found the Answer :

vars          => {
        notification => {
        mail => {
        users => [hiera('base::linux::motd::contact', 'admin@test.com’)]
        },
        },
      },
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-07-03 23:52:01 -0600

Seen: 38 times

Last updated: Jul 04