Advertisement
yaplej

puppet allow node rules

Oct 25th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. node default{
  2. @@firewall { "200 Allow agent ${hostname} to connect to master":
  3. tag => "puppet_agent",
  4. chain => 'INPUT',
  5. proto => 'tcp',
  6. state => 'NEW',
  7. source => $ipaddress,
  8. dport => ['8140','61613'],
  9. action => 'accept',
  10. }
  11. }
  12. node 'puppet.domain.tld' {
  13. Firewall <<| tag == "puppet_agent" |>>
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement