| OLD | NEW |
| 1 class base ($zone='adblockplus.org') { | 1 class base ($zone='adblockplus.org') { |
| 2 | 2 |
| 3 include postfix, ssh, stdlib | |
| 4 | |
| 5 class {'logrotate': | 3 class {'logrotate': |
| 6 stage => 'runtime', | 4 stage => 'runtime', |
| 7 } | 5 } |
| 8 | 6 |
| 9 $servers = hiera('servers') | 7 $servers = hiera('servers') |
| 10 create_resources(base::explicit_host_record, $servers) | 8 create_resources(base::explicit_host_record, $servers) |
| 11 | 9 |
| 12 define explicit_host_record( | 10 define explicit_host_record( |
| 13 $ip, | 11 $ip, |
| 14 $ssh_public_key = undef, | 12 $ssh_public_key = undef, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 41 public_key => $public_key, | 39 public_key => $public_key, |
| 42 } | 40 } |
| 43 | 41 |
| 44 # Implicit realization behavior has been introduced by accident in a | 42 # Implicit realization behavior has been introduced by accident in a |
| 45 # previous version, hence it should be kept until class base is obsolete | 43 # previous version, hence it should be kept until class base is obsolete |
| 46 # and the obsolete records have been removed | 44 # and the obsolete records have been removed |
| 47 realize(Host[$title]) | 45 realize(Host[$title]) |
| 48 realize(Sshkey[$title]) | 46 realize(Sshkey[$title]) |
| 49 } | 47 } |
| 50 } | 48 } |
| OLD | NEW |