aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/site/julius.ces.int.pdp7.net.pp
blob: 9f84a7b0f5affe9dc32da2f460c48dc8e08c3339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
node 'julius.ces.int.pdp7.net' {
  class {'dns_dhcp':}
  ->
  file {'/etc/dnsmasq.d/static.conf':
    content => @(EOT)
    host-record=router,router.ces.int.pdp7.net,10.17.19.1
    host-record=tplink,tplink.ces.int.pdp7.net,10.17.19.2
    host-record=case.ces.int.pdp7.net,case,10.17.19.3
    host-record=julius.ces.int.pdp7.net,julius,10.17.19.4
    | EOT
    ,
  }

  Package[$ipa_client_package]
  ->
  service {['sssd-pac.socket', 'sssd-sudo.socket', 'sssd-nss.socket', 'sssd-ssh.socket', 'sssd-pam.socket']:
    ensure => stopped,
    enable => mask,
  }
  ~>
  Exec['/usr/bin/systemctl reset-failed']
}