tagging nodes in site.pp (tagmail)

34 views
Skip to first unread message

cko

unread,
Mar 27, 2014, 11:00:28 AM3/27/14
to puppet...@googlegroups.com
hi,

i want to be able to send reports via email for certain hosts. for example:

site.pp

node 'node1.localdomain' {
   tag 'webshop'
}
node 'node2.localdomain' {
   tag 'webshop'
}
node 'node3.localdomain' {
   tag 'foo''
}

tagmail.conf

webshop: devel...@company.domain


So only the changes applied to node1 and node2 would be e-mailed to the webshop team.

Is there a way to do this?





Martin Alfke

unread,
Mar 27, 2014, 11:19:41 AM3/27/14
to puppet...@googlegroups.com
Hi

On 27 Mar 2014, at 16:00, cko <der...@gmail.com> wrote:

> hi,
>
> i want to be able to send reports via email for certain hosts. for example:
>
> site.pp
>
> node 'node1.localdomain' {
> tag 'webshop'
> }
> node 'node2.localdomain' {
> tag 'webshop'
> }
> node 'node3.localdomain' {
> tag 'foo'’
> }

tag is a function.

you might want to use

tag(‘<name>’)

>
> tagmail.conf
>
> webshop: devel...@company.domain
>
>
> So only the changes applied to node1 and node2 would be e-mailed to the webshop team.
>
> Is there a way to do this?

hth,

Martin

>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/290e57bc-4158-46a3-a85c-527ed1617c2d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

cko

unread,
Mar 28, 2014, 3:41:53 AM3/28/14
to puppet...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages